Moxa V2403-C7-W-T [17/90] Detecting network interfaces

Moxa V2403-C7-W-T [17/90] Detecting network interfaces
V2403 Series Linux Software Managing Communications
3-2
Detecting Network Interfaces
Debian Linux systems use udevd to detect new network interfaces, including Ethernet interfaces and wireless
interfaces. One of the rules is /lib/udev/rules.d/75-persistent-net-generator.rules for creating a
persistent network interface naming order. The content in /etc/udev/rules.d/70-persistent-net.rules is
similar to the following:
# PCI device 0x10ec:0x8168 (r8169)
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 (r8169)
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 V2403 computer has two 10/100 or 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@MOXA:~# cd /etc/network
2. Type vi interfaces to edit the network configuration file with vi editor. You can configure the V2403’s
Ethernet ports for static or dynamic (DHCP) IP addresses.
moxa@MOXA:/etc/network# vi interfaces

Содержание

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

Скачать