Moxa V2616A-C8-CT-W7E [24/111] Detecting network interfaces

Moxa V2616A-C7-T-LX [24/111] Detecting network interfaces
V2616A 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:
# 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)
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?*”,
ATTR{address}==“00:90:e8:00:00:21”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”,
KERNEL==“eth*”, NAME=“eth1”
The above example indicates that the system has detected two Ethernet interfaces.
ATTENTION
When replacing or connecting a network interface,
the system may keep the old record in
/etc/udev/rules.d/70
-persistent-net.rules, which could cause network interfaces to be detected
abnormally
. To avoid this problem, delete the content of the file /etc/udev/rules.d/70-persistent-net.rules
and
reboot the system.
Changing the Network Settings
The V2616A-LX computer has two 10/100/1000 Ethernet ports named LAN1 and LAN2. The default IP
addresses and netmasks of these network interfaces are:
Default IP Address Netmask
LAN1 192.168.3.127 255.255.255.0
LAN2 192.168.4.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 theinterfacesConfiguration File
1. Type cd /etc/network to change directories.
MOXA:~# cd /etc/network
2. Type vi interfaces to edit the network configuration file with vi editor. You can configure the V2616A-LX’s
Ethernet ports for static or dynamic (DHCP) IP addresses.
MOXA:/etc/network# vi interfaces
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

Содержание

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

Скачать