Moxa V2401-CE [30/108] Static ip address

Moxa V2401-CE [30/108] Static ip address
V2401/2402 Series Linux User’s Manual Managing Communications
3-3
Changing the Network Settings
The V2401/2402-LX computer has four basic Gigabit Ethernet ports named LAN1 to LAN2. 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
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.
2. Type vi interfaces to edit the network configuration file with vi editor. You can configure the
V2401/2402-LX’s Ethernet ports for static or dynamic (DHCP) IP addresses.
Static IP Address
As shown in the example shown below, the default static IP addresses can be modified.
MOXA:/etc/network# vi interfaces
MOXA:~# cd /etc/network
# 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

Содержание

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

Скачать