"Linux ifconfig view network card name and profile not no no" or start network card prompt "Eth0 does not seem to exist, the initialization operation will be delayed."
Question 1.
Service network Restart restart NIC prompt error: "Eth0 does not appear to be present, initialization operation will be delayed".
Ping a URL to
Check the NIC profile ifconfig found my profile, Cd/etc/sysconfig/network-scripts/ifcfg-auto_eth0 is the name, but the information I use Ifconfig displays is
eth6 Link encap:ethernet &NB Sp HWaddr 08:00:27:3f:55:54 inet addr:192.168.137.103 bcast:192.168.137.255 Mask:255.255.255.0 INET6 addr:fe80::a00:27ff:fe3f:5554/64 scope:link & nbsp UP broadcast RUNNING multicast mtu:1500 Metric:1 RX PAC kets:154 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 Overruns : 0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:133 (13.0 KiB) tx bytes:13889 (13.5 KiB) |
Eth6, obviously this is not the name of my profile, because many Linux distribution use Udev to dynamically manage device files and name them based on the device's information. Udev identifies the network card during system boot and records the MAC address and network card name in Udev's rules script. So how to recover it? We're going to enter this path cd/etc/udev/rules.d/, After viewing 70-persistent-net.rules This file, you will find that the file has recorded some of the previous network card information, but now it may be you no longer use, so if you want to restore ifconfig display eth0, just delete this file, or copy the contents of your network adapter profile to the file Save to exit. Reboot restart the system.
Linux-Little Kee (1) Issue: "Linux ifconfig view NIC name and profile not no no" or "eth0 does not seem to exist, initialization operation will be delayed".