"Centos" modifies the network card name & problems that occur with it

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.