Moxa V2401-LX [31/108] Dynamic ip address using dhcp

Moxa V2401-LX [31/108] Dynamic ip address using dhcp
V2401/2402 Series Linux User’s Manual Managing Communications
3-4
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.
After modifying the boot settings of the LAN interface, issue the following command to activate
the LAN settings immediately.
# /etc/init.d/networking restart
Adjusting IP Addresses with “ifconfig”
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.
Serial Port Operation Mode
The V2401/2402 computer has four 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:
setinterface device-node [interface-no]
device-node: /dev/ttyMn; n = 0,1,2,...
interface-no: [see following table]:
interface-no Operation Mode
None Display current setting
0 RS-232
1 2-wire RS-485
2 RS-422
3 4-wire RS-485
MOXA:~# /etc/init.d/networking restart
MOXA:~# ifconfig eth0 192.168.1.1
MOXA:~#
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

Содержание

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

Скачать