DA-660-8/16-LX User’s Manual
Getting Started
2-5
Configuring the Ethernet Interface
The network settings of the DA-660 can be modified with the serial Console, or online over the
network.
Modifying Network Settings with the Serial Console
In this section, we use the serial console to configure the network settings of the target computer.
1.
Follow the instructions given in a previous section to access the Console Utility of the target
computer via the serial Console port, and then type
#cd /etc/network
to change directories.
root@Moxa:# cd /etc/network/
root@Moxa:/etc/network/#
2.
Type
#vi interfaces
to edit the network configuration file with vi editor. You can configure
the Ethernet ports of the DA-660 for
static
or
dynamic
(DHCP) IP addresses.
Static IP addresses:
As shown below, 4 network settings need to be modified:
address, network, netmask,
and
broadcast
. The default IP addresses are 192.168.3.127 for LAN1 and 192.168.4.127 for
LAN2, with a default netmask of 255.255.255.0.
# We always want the loopback interface.
auto eth0 eth1 lo
iface lo inet loopback
# 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 ethernet LAN2
iface eth1 inet static
address 192.168.4.127
network 192.168.4.0
netmask 255.255.255.0
broadcast 192.168.4.255
# 802.11g Gigabyte Cardbus wireless card
#iface eth2 inet static
address 192.168.5.127
network 192.168.5.0
“/etc/network/interfaces” line 1 of 162 --0%--
Dynamic IP addresses:
By default, the DA-660 is 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