Moxa DA-682A-C7-DPP [6/7] Configuring the ethernet interface

Moxa DA-682A-C7-DPP [6/7] Configuring the ethernet interface
- 6 -
Configuring the Ethernet Interface
Linux users should follow these steps:
If you use the console cable to configure network settings for the first
time, use the following commands to edit the interfaces file.
STEP 1: Take all network interfaces offline, before you reconfigure the
LAN settings using the following command:
MOXA:~# ifdown –a
STEP 2: Edit the network interfaces file.
You can use a text editor of your choice, but VI is the default text editor on
the DA-682A-DPP-LX.
MOXA:~#vi /etc/network/interfaces
STEP 3: Set the DA-682A-DPP for either dynamic IP addressing or static
addressing.
To set it for dynamic IP addressing, enter the following lines into
the network interfaces file:
# The primary network interface
auto eth0
iface eth0 inet dhcp
To set an interface for static IP addressing, use the following
configuration:
# The loopback network interface
auto lo
iface lo inet loopback
# The first LAN interface, LAN 1
auto eth0
iface eth0 inet static
address 192.168.3.127
netmask 255.255.255.0
broadcast 192.168.3.255
# The second LAN interface, LAN 2
auto eth1
iface eth1 inet static
address 192.168.4.127
netmask 255.255.255.0
broadcast 192.168.4.255
Each interface must be configured with separate entries in the
network/interfaces file. LAN1 corresponds to eth0, LAN 2
corresponds to eth1, and so forth for the remaining interfaces.
STEP 4: Exit the text editor.
Use the following command to exit VI:
:wq
STEP 5: After the interfaces file has been configured, use the following
commands to reinitialize the network interfaces and to activate the new
settings:
MOXA:~#sync; ifup –a

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

Скачать