Moxa DA-685-LX [20/76] Detecting network interfaces

Moxa DA-685-LX [20/76] Detecting network interfaces
DA-685 Linux Managing Communications
3-2
Detecting Network Interfaces
Linux systems use udevd to detect new network interfaces, including Ethernet interfaces and wireless
interfaces. The result is saved in /etc/udev/rules.d/70-persistent-net.rules. The content is similar to the
following:
This file shows system has detected two Ethernet interfaces now.
ATTENTION
When replacing or connectin
g a network interface, the system may keep the old record in
/etc/udev/rules.d/70
-persistent-
net.rules and that cause network interfaces are detected abnormally. To solve
this problem, clear the file /etc/udev/rules.d/70
-persistent-net.rules and reboot the system.
Changing the Network Settings
The DA-685-LX computer has six 10/100/1000 Ethernet ports named LAN1 to LAN6. 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
LAN 3 192.168.5.127 255.255.255.0
LAN 4 192.168.6.127 255.255.255.0
LAN 5 192.168.7.127 255.255.255.0
LAN 6 192.168.8.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 DA-685-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
# PCI device 0x10ec:0x8168 (r8168)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:90:e8:00:00:20", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8168 (r8168)

Содержание

Скачать