User`s manual

UC-7112-LX Plus Software User’s Manual Getting Started
2-6
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.
2.
Type #vi interfaces to edit the network configuration file with vi editor. You can configure
the Ethernet ports of the UC-7112-LX Plus for static or dynamic (DHCP) IP addresses.
Static IP addresses
As shown in the table below, 4 network addresses must be modified: address, network,
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 UC-7112-LX Plus 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
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/interface
s
.
For example, type the command
#ifconfig eth0 192.168.1.1 to change the IP address of LAN1
to 192.168.1.1.
root@Moxa:~# ifconfig eth0 192.168.27.125
root@Moxa:~#