Since learning the tool tcpdump, the inside will need to be involved in a grab packet for a network card, which will enter the network card name, but the CentOS7 Egg network card default name is to let the heart broken, so I thought to modify the network card name, the steps are as follows: (The following steps involve my error demo)
Gorgeous Split-line////////////////////////////////////
1. Modify/etc/sysconfig/network-scripts/ifcfg-en .... File, change name to Eth0
2. Modify the directory name:
3. Edit the file/etc/sysconfig/grub, then add "net.ifnames=0 biosdevname=0" to the grub_cmdline, and note the location with the Scarlet Letter section.
4. Execute the command "Grub2-mkconfig-o/boot/grub2/grub.conf", and then restart the server, you can see the device name has become eth0, very happy is not, but!
The desperate thing came, and when we restarted the network service, the following error occurred:
Restarting network (via Systemctl): Job for Network.service failed because the control process exited with error code. See "Systemctl Status Network.service" and "Journalctl-xe" for details.
[Failed]
What is this for? In fact, we have a detail to ignore, that is, we just changed the name of name, and the name of the device has not changed, resulting in this error occurred
When we change the name of the device to eth0, the results are as follows:
Problem solving
Subsequent additions to the////////////////////////////////////
We mentioned above to the same device to eth0 can solve the problem, in a bar of children's shoes remind, try to put device this line comment out, also can solve the problem
"Centos" modifies the network card name & problems that occur with it