Moxa KM-2430-T [11/52] Modifying network settings over the network

Moxa KM-2430-T [11/52] Modifying network settings over the network
ioPAC RTU Software Getting Started
2-3
Static IP addresses:
As shown below, 2 network addresses need to be modified: address, network, netmask, and broadcast.
The default IP addresses are 192.168.127.254 for LAN1 and 192.168.126.254 for LAN2, with default netmasks
of 255.255.255.0.
# We always want the loopback interface.
auto eth0 eth1 lo
#auto eth0 lo
iface lo inet loopback
iface eth0 inet static
address 192.168.127.254
network 192.168.127.0
netmask 255.255.255.0
broadcast 192.168.127.255
gateway 192.168.127.1
# embedded ethernet LAN2
iface eth1 inet static
address 192.168.126.254
network 192.168.126.0
netmask 255.255.255.0
broadcast 192.168.126.255
gateway 192.168.126.1
Dynamic IP Addresses:
By default, the ioPAC RTU is configured for “static" IP addresses. To configure LAN ports to request an IP
address dynamically, replace static with dhcp and then delete the address, network, netmask, and broadcast
lines.
Auto eth0 eth1 lo
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet dhcp
Modifying Network Settings over the Network
IP settings can be activated over the network, 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.127.1 to change the IP address of LAN1 to
192.168.127.1.
root@Moxa:# ifconfig eth0 192.168.127.1
root@Moxa:/etc/network/#
NOTE
Y
ou can use the ipset command to directly configure the settings and save them to the flash ROM, and the
route
table to debug any issues when configuring over an Ethernet connection.
Connect an RTU to a Linux PC
Follow the steps below to establish the connection between the PC and the RTU.
Step 1: Connect the PC Ethernet connector to LAN1 or LAN2 of the ioPAC RTU with an Ethernet cable.
Step 2: Change the IP address of the PC as follows:
Connected to ioPAC RTU LAN Port Set PCs IP address
LAN1 (default IP: 192.168.127.254) 192.168.127.100

Содержание

Скачать