Moxa DA-681-I-DPP-T-XPE [32/65] Changing the network settings

Moxa DA-681-I-DPP-T-XPE [32/65] Changing the network settings
DA-681 Linux Managing Communications
3-2
Changing the Network Settings
The DA-681-LX computer has6 Ethernet ports named LAN1 to LAN6. The LAN Port Expansion Module supports
an additional four 10/100 Mbps Ethernet ports named LAN5 to LAN8. The default IP addresses and netmasks
of the network interfaces are as follows:
Default IP Address Netmask
LAN 1 192.168.3.127 255.255.255.0
LAN 2 192.168.4.127 255.255.255.0
LAN 3 192.168.5.127 255.255.255.0
LAN 4 192.168.6.127 255.255.255.0
LAN 5 192.168.5.127 255.255.255.0
LAN 6 192.168.6.127 255.255.255.0
These network settings can be modified by changing the interfaces configuration file, or they can be adjusted
temporarily with the ifconfig command.
Changing theinterfacesConfiguration File
1. Type cd /etc/network to change directory.
MOXA:~# cd /etc/network
2. Type vi interfaces to edit the network configuration file with vi editor. You can configure the DA-681-LX’s
Ethernet ports for static or dynamic (DHCP) IP addresses.
MOXA:/etc/network# vi interfaces
Static IP Address
As shown in the example shown below, the default static IP addresses can be modified.
# The loopback network interface
auto lo eth0 eth1 eth2 eth3 eth4 eth5
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.3.127
netmask 255.255.255.0
broadcast 192.168.3.255
allow-hotplug eth1
iface eth1 inet static
address 192.168.4.127
netmask 255.255.255.0
broadcast 192.168.4.255
allow-hotplug eth2
iface eth2 inet static
address 192.168.5.127
netmask 255.255.255.0
broadcast 192.168.5.255

Содержание

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

Скачать