Moxa DA-710-XPE [27/73] Changing the interfaces configuration file

Moxa DA-710-XPE [27/73] Changing the interfaces configuration file
DA-710 Series Linux Managing Communications
3-2
Changing the Network Settings
The DA-710-LX computer has four basic Gigabit Ethernet ports named LAN1 to LAN4. 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
These network settings can be modified by changing the interfaces configuration file, or they can be adjusted
temporarily with the ifconfig command.
Changing the “interfaces” Configuration 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-710-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
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.127
netmask 255.255.255.0
broadcast 192.168.3.255
auto eth1
iface eth1 inet static
address 192.168.4.127
netmask 255.255.255.0
broadcast 192.168.4.255
auto eth2
iface eth2 inet static
address 192.168.5.127
netmask 255.255.255.0
broadcast 192.168.5.255

Содержание

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

Скачать