Laird WB45NBT
Reference Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wi-fi
10
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0600
Enable NAT between Ethernet and Wi-Fi by editing /etc/network/inferfaces. The stanza starting with auto eth0 should
have an uncommented out post-cfg-do and pre-dcfg-do sections like the following:
## Wired
auto eth0
iface eth0 inet static
…
…
post-cfg-do /etc/network/wifi-nat.conf
pre-dcfg-do /etc/network/wifi-nat.conf
Use Case 4 Example
A single host device with a static IP on the WB’s Wi-Fi interface
Enable the Ethernet interface and configure a non-routable IP configuration:
# sdc_cli iface set auto eth0 on
# sdc_cli iface set method eth0 static
# sdc_cli iface set address eth0 169.254.0.1
# sdc_cli iface set netmask eth0 255.255.255.0
# sdc_cli iface set broadcast eth0 169.254.0.255
Enable the Wi-Fi interface with static IP support:
# sdc_cli iface set auto wlan0 on
# sdc_cli iface set method wlan0 static
# sdc_cli iface set address eth0 x.x.x.x
# sdc_cli iface set netmask eth0 x.x.x.x
# sdc_cli iface set broadcast eth0 x.x.x.x
# sdc_cli iface set nameserver eth0 x.x.x.x
Enable NAT between Ethernet and Wi-Fi by editing /etc/network/inferfaces. The stanza starting with auto eth0 should
have an uncommented out post-cfg-do and pre-dcfg-do sections like the following:
## Wired
auto eth0
iface eth0 inet static
…
…
post-cfg-do /etc/network/wifi-nat.conf
pre-dcfg-do /etc/network/wifi-nat.conf
Use Case 5 Example
Multiple host devices connected via Ethernet with DHCP running on the WB’s Wi-Fi interface
Enable the Ethernet interface and configure a non-routable IP configuration: