After CentOS 6.3 mini is installed, no Nic or Nic becomes em1. Problem Solving

Source: Internet
Author: User

After CentOS 6.3 mini is installed, no Nic or Nic becomes em1. Problem Solving

We recently deployed the openstack environment with dual NICs. After installing cenos6.6, we found that the NIC name is em1 and em2.

Not familiar with eth0 and eth1. Because openstack is difficult to configure, you want to modify the NIC name.

View some information on the Internet:

After CentOS 6.3 mini is installed, no Nic or Nic becomes em1.

However, no 70-persistent-net.rules is found in/etc/udev/rules. d /.

Unable to follow the above steps

So I first back up the network card configuration file ifcfg-em1 ifcfg-em2

Change file name to ifcfg-eth0 ifcfg-eth1

Modify DEVICE = eth0 or eth1 to set onboot = yes in the corresponding file.

Then restart your computer. After logging on to the system, you will find that the system still does not work,

Don't worry. restart again.

Then you can find the file you want to see in the/etc/udev/rules. d/directory.

The NIC name has also been changed, and you can also access the internet.

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.