Hello, all!
Have a nice day!
The topic describes how to adjust the mapping between system network adapters and physical network adapters on a non-standard ARM server.
Check the configuration file of the network adapter.
ll /etc/sysconfig/network-scripts/ifconfig-eth*( The network adapter name is eth0.)

Check the network adapter status.
ifconfig

As shown in the following figure, the eth0 NIC is not in the RUNNING state. Therefore, the network is not connected.
Start all network adapters.
Ifconfig eth0 up
Ifconfig eth1 up
Ifconfig eth2 up
Ifconfig eth3 up
Ifconfig eth4 up
Ifconfig eth5 up
Ifconfig eth6 up
Ifconfig eth7 up
After all network adapters are started, run the ifconfig command to check the status of all network adapters and find the network adapter whose status is RUNNING. In the preceding figure, eth1 is used as an example.

According to steps 1 and 4, the network adapter is configured as ifcfg-eth0, but the network adapter in RUNNING state is eth1. It only needs to ensure that the eth0 port in the udev rule is connected. Therefore, modifying the udev rule file, exchange the names of eth1 and eth0, and run the reboot command to restart the system.
cd /etc/udev/rules.d/
vi 50-persistent-net.rules
Before change:

After change:

Thanks for reading!





