Moxa V2406-24I-T-XPE [27/81] Dynamic ip address using dhcp

Moxa V2406-24I-T-XPE [27/81] Dynamic ip address using dhcp
V2406/2422/2426 Linux User’s Manual Managing Communications
3-3
Static IP Address
As shown in the following example, the default static IP addresses can be modified.
# 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
Dynamic IP Address using DHCP
To configure one or both LAN ports to request an IP address dynamically, replace static with dhcp and then
delete the rest of the lines.
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
After modifying the boot settings of the LAN interface, issue the following command to activate the LAN
settings immediately.
# /etc/init.d/networking restart
MOXA:~# /etc/init.d/networking restart
Adjusting IP Addresses withifconfig
IP settings can be adjusted during run-time, but the new settings will not be saved to the flash ROM without
modifying the file /etc/network/interfaces. For example, type the command # ifconfig eth0
192.168.1.1 to change the IP address of LAN1 to 192.168.1.1.
MOXA:~# ifconfig eth0 192.168.1.1
MOXA:~#
Serial Port Operation Mode
The V2406/2422/2426-LX computer has 4 serial ports named COM1, COM2, COM3, and COM4. The ports
support RS-232, RS-422, 2-wire RS-485, and 4-wire RS-485 operation modes with baudrate settings up to
921600 bps.
By default, the serial interface is set to RS-232. You can use the setinterface command to change the serial
port operation mode, as indicated below:

Содержание

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

Скачать