Laird WB45NBT
Reference Guide
Embedded Wireless Solutions Support Center:
http://ews-support.lairdtech.com
www.lairdtech.com/wi-fi
8
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0600
Use Case 6
Multiple host devices connected via Ethernet with a static IP on the WB’s Wi-Fi interface
Solution: NAT
The WB does IP NAT and port masquerading to forward traffic from Wi-Fi to each host device. Host device
interfaces to the WB, along with the corresponding WB interface, should be assigned non-routable
169.254.x.x IP addresses. The WB does a DHCP request on roam to support networks configured with
multiple subnets on the same SSID (determine if your customers do this).
Use Case 6 Example
Use Case 7
Multiple host devices connected via Ethernet with DHCP running or a static IP on each host device interface
to the WB
Solution: Use NAT instead
We recommend that you use a NAT-based configuration instead. The WB does not currently support this
use case in the standard release. If this use case is required, please contact Laird with complete details of
the use case for potential customized options.
Use Case 7 Example
WB Configurations – Use Case Examples
Each example configuration uses a combination of the sdc_cli command line utility, the ifrc command line utility, and
editing the /etc/network/interfaces file. These can be done once console access has been established with the WB as
described in the WB45NBT Quick Start Guide (available from the Documentation tab of the Laird
WB45NBT product page
).
These configurations are only examples for the WB’s configuration. Example host test device configurations are described
in the following section to complete early testing.
Note: Editing of the /etc/network/interfaces file should be done with
vi
. To learn how to use
vi
as an editor, there
are many online tutorials.
To begin editing, execute the following:
# vi /etc/network/interfaces
Note: The following examples describe how to enable Ethernet to Wi-Fi connectivity. In these cases, the Ethernet
interface is referred to as
eth0
. To enable USB Ethernet to Wi-Fi, substitute
eth0
with
usb0
and for PPP
Serial to Wi-Fi substitute
eth0
with
ppp0
. The Wi-Fi interface is
wlan0
in the examples.
Use Case 1 Example
A single host device with a DHCP client for Wi-Fi on the host device’s Ethernet or USB interface to the WB.
Enable the Ethernet interface and make sure it doesn’t use an IP configuration:
# sdc_cli iface set auto eth0 on
# sdc_cli iface set method eth0 manual
Enable the Wi-Fi interface and make sure it doesn’t use an IP configuration:
# sdc_cli iface set auto wlan0 on
# sdc_cli iface set method wlan0 manual
Enable bridging between Ethernet and Wi-Fi:
# sdc_cli iface set auto br0 on