Moxa Technologies W341 Manual De Usuario

Descargar
Página de 104
ThinkCore W311/321/341 Linux User’s Manual 
Getting Started
 
 
2-6
2.  Type #vi interfaces to edit the network configuration file with vi editor. You can 
configure the Ethernet ports of the W341 for static or dynamic (DHCP) IP addresses. 
Static IP addresses 
As shown in the table below, 4 network addresses must be modified: addressnetwork
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 
By default, the W311/321/341 are configured for “static” IP addresses. To configure one or 
both LAN ports to request an IP address dynamically, replace static with dhcp and then delete 
the address, network, netmask, and broadcast lines. 
Default Setting for LAN1 
Dynamic Setting using DHCP 
iface eth0 inet static 
 address 192.168.3.127 
 network: 192.168.3.0 
 netmask 255.255.255.0 
 broadcast 192.168.3.255 
iface eth0 inet dhcp 
 
3.  After the boot settings of the LAN interface have been modified, 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.
 
Modifying Network Settings over the Network 
IP settings can be activated over the network, but the new settings will not be saved to the flash 
ROM without modifying the file /etc/network/interfaces
For example, type the command #ifconfig eth0 192.168.1.1 to change the IP address of 
LAN1 to 192.168.1.1. 
 
Configuring the WLAN 
IEEE802.11a/b/g 
Use one of the following options to configure the WLAN for IEEE802.11a/b/g: 
1.  Using the config file to set up your wireless system 
 
The config file is /etc/wireless.conf. The config file is read by the OS when the 
W311/321/341 unit boots up. You may also use the load_wlan command to force your 
wireless to run the config file and set up your wireless LAN card after the W311/321/341 unit 
is already up and running. The /etc/wireless.conf file format is shown below: