How to modify the Linux Nic eth1 to eth0

Source: Internet
Author: User

ifconfig See the IP is not the IP I want, and the first NIC display is also eth1, which is obviously problematic,
Vim/etc/sysconfig/network-script/ifcfg-eth0 See the IP is I set the IP, but the Mac is wrong, see and Ifconfig inside the eth1 is not the same,
Then Vim/etc/udev/rules.d/70-persistent-net.rules see is a eth0 and a eth1, which is obviously wrong, I only have a network card, Eth1 mac and Ifconfig see is the same,

0,vim/etc/udev/rules.d/70-persistent-net.rules to change the name of Eth1 to Eth0, and then the above the eth0 of the deletion, eth1 modified to Eth0
1,vim/etc/hosts [modifying host mappings]
2, vim/etc/sysconfig/network, change hostname , too.
Restarting the reboot is OK,
Ifconfig See is that you set the IP ~ ~

How to modify the Linux Nic eth1 to eth0

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.