Created
October 13, 2016 20:05
-
-
Save loinguyenduc101/e3913c382a6adf0ee50012fad6ee8c4d to your computer and use it in GitHub Desktop.
change-network-device-name-from-eth1-back-to-eth0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If it’s a CentOS 6 machine you need to change 2 files to rename the interface for example from eth1 back to eth0. | |
One file is the udev rule for network devices which is located here: | |
/etc/udev/rules.d/70-persistent-net.rules | |
Copy the new mac address to the line of your eth0 rule and delete the new rule for eth1. | |
# PCI device 0x15ad:0x07b0 (vmxnet3) | |
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:b2:23:e0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″ | |
Modify the network configuration located under: | |
/etc/sysconfig/network-scripts/ifcfg-eth0 | |
and replace the old ip with the new one and the old mac address with the new mac address. | |
To be sure everything works fine reboot your machine. | |
### https://www.banym.de/linux/centos/change-network-device-name-from-eth1-back-to-eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment