Moxa V2616A-C5-CT-W7E [25/111] Dynamic ip address using dhcp

Moxa V2616A-C7-T [25/111] Dynamic ip address using dhcp
V2616A Linux Managing Communications
3-3
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
auto 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:~#
Telnet/TFTP Server
In addition to supporting Telnet client/server and FTP client/server, the V2616A-LX also supports SSH and sftp
client/server. To enable or disable the Telnet/ftp server, you need to edit the file /etc/inetd.conf.
1. Mount the root file system with write permission.
MOXA:~# mount -o remount,rw /
2. Type # cd /etc to change the directory.
MOXA:~# cd /etc
3. Type # vi inetd.conf to edit the configuration file.
MOXA:/etc# vi inetd.conf
Enabling the Telnet/TFTP Server
The following example shows the default content of the file /etc/inetd.conf. The default is to enable the
Telnet/ftp server:
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd

Содержание

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

Скачать