Moxa W321-LX [12/80] Temporarily modifying networking configurations

Moxa W341-LX [12/80] Temporarily modifying networking configurations
W321/341 Linux Getting Started
2-4
LAN is ethernet
WLAN is Wi-Fi interface
# embedded ethernet LAN1
iface eth0 inet static
address 192.168.3.127
network 192.168.3.0
netmask 255.255.255.0
broadcast 192.168.3.255
# embedded Wi-Fi interface
iface wlan0 inet static
address 192.168.4.127
network 192.168.4.0
netmask 255.255.255.0
broadcast 192.168.4.255
LAN is ethernet
WLAN is Wi-Fi interface
# embedded ethernet LAN1
iface eth0 inet dhcp
# embedded Wi-Fi interface
iface wlan0 inet dhcp
Please note that eth0 stands for the LAN port, while wlan0 stands for the wireless LAN port.
Static IP addresses
As shown in the table above, for static IP configurations 4 settings must be modified: address, network,
netmask, and broadcast. The default IP address for LAN1 is 192.168.3.127, with default netmask of
255.255.255.0.
Dynamic IP addresses
The W321/341 is configured by default for static IP addresses. To configure one or both LAN ports to
request an IP address dynamically, replace static with dhcp and then comment out the address, network,
netmask, and broadcast lines by adding a hash mark (#) in the very first space on each line
3. After the boot settings of the LAN interface have been modified, save the file by hitting
esc + w + enter
(in succession), close VI, and then issue the following command to activate the LAN settings immediately:
#/etc/init.d/networking restart
NOTE
After changing the IP settings, use the networking restart command to activate the new IP address.
Temporarily Modifying Networking Configurations
IP settings can be changed on-the-fly, but the new settings will not available on boot-up without modifying
the
/etc/network/interfaces configuration file.
For example, by typing the command
#ifconfig eth0 192.168.27.115
the IP address of LAN1 may be changed to 192.168.27.115. However, the change will only take effect after a
re-start of the interface, and will not remain in effect after the next system boot.
Configuring the WLAN
The W321/341 Wi-Fi connection can be configured using the configuration file or the wpa_supplicant
command.We strongly recommend you use wpa_supplicant to configure the wireless interface. Other
commands might have compatilibty issues.
You can list the available wireless network IDs by issuing the following command:
#iwpriv wlan0 get_site_survey

Содержание

Похожие устройства

Скачать
Случайные обсуждения