As a perfectionist (obsessive-compulsive disorder) How to change the Linux eth1 NIC to eth0 NIC

Source: Internet
Author: User

1: Because you are cloning virtual machine or directly to use someone else's CentOS operating system directly open to their local virtual machine, network card may be eth1 instead of eth0, below simply write how to change eth1 to Eth0, the steps are as follows;

2: If you are cloned, then the MAC address shown below will be different, if it is directly open the CentOS operating system of others, MAC address is the same. In fact, this network card with eth1 or eth0 influence is not very big, look at the degree of personal perfectionism:

Then, if you are a cloned virtual machine, use the following command Vim/etc/sysconfig/network-scripts/ifcfg-eth0 to open the configuration shown below, and then, the above copied MAC address into the following own network configuration;

3: Then, modify the file as shown below:

Because the name is too long, use the Find command to find the file you want to modify:

" *net.rules "/etc/udev/rules.d/-persistent-net.rules

Then edit the operation, Vim/etc/udev/rules.d/70-persistent-net.rules:

Then, the bottom of the eth1 that Mac to the top of the Eth0 Mac on it;

4: It is better to restart it after modification, so that the eth1 modified to eth0.

Cond......

As a perfectionist (obsessive-compulsive disorder) How to change the Linux eth1 NIC to eth0 NIC

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.