How to change the Nic sequence in linux

Source: Internet
Author: User
In linux, how to change the sequence of NICs is often caused by the addition and replacement of NICs. However, all the previously written shell scripts are OK and there is no need to modify them. Therefore, only the Nic sequence can be changed. the position of my CentOS6.3 is as follows... in linux, how to change the sequence of NICs is often caused by the addition and replacement of NICs. However, all the previously written shell scripts are OK and there is no need to modify them. Therefore, only the Nic sequence can be changed. the position of my CentOS6.3 is in the following Directory:/etc/udev/rules. d/70-persistent-net.rules: (you can see that the address is linked to the physical address of their network adapter.) SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 54: e6: fc: 6a: 81: b5 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth0" # PCI device 0x8086: 0x100e (e1000) SUBSYSTEM = "net", ACTION = "add ", DRIVERS = "? * ", ATTR {address} =" 00: 07: e9: 12: e8: f2 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth1" # PCI device 0x1106: 0x3065 (via-rhine) SUBSYSTEM = "net ", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 00: 11: 09: 97: 32: 1a ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth2", you only need to change the Name value. SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 54: e6: fc: 6a: 81: b5 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth2" # PCI device 0x8086: 0x100e (e1000) SUBSYSTEM = "net", ACTION = "add ", DRIVERS = "? * ", ATTR {address} =" 00: 07: e9: 12: e8: f2 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth1" # PCI device 0x1106: 0x3065 (via-rhine) SUBSYSTEM = "net ", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 00: 11: 09: 97: 32: 1a ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth0", or change the MAC address of eth0 to the changed address.

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.