Moxa IA3341-LX [13/72] Modifying network settings with the serial console

Moxa IA3341-LX [13/72] Modifying network settings with the serial console
IA3341 Linux User’s Manual Getting Started
2-5
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 through the serial console port, and then type
#cd /etc/network
to change
directories.
2.
Type
#vi interfaces
to use vi editor to edit the network configuration file. You can
configure the Ethernet ports of the IA3341 for static or dynamic (DHCP) IP addresses.
Static IP addresses:
As shown below, 4 network addresses must be modified: address, network, netmask, and
broadcast. The default IP address for LAN1 is DHCP, and for LAN 2 is 192.168.4.127, both
with default netmask of 255.255.255.0.
Dynamic IP addresses
:
The default setting for LAN1 is DHCP. To request an IP address dynamcially, replace dhcp
with static and then delete the address, network, netmask, and broadcast items.
Dynamic Setting Using DHCP Default Settings for LAN 2
iface eth0 inet dhcp iface eth0 inet static
address 192.168.4.127
network: 192.168.4.0
netmask 255.255.255.0
broadcast 192.168.4.255
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.

Содержание

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

Скачать