Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save algotrader-dotcom/94085d5835f784a60160 to your computer and use it in GitHub Desktop.
Save algotrader-dotcom/94085d5835f784a60160 to your computer and use it in GitHub Desktop.
Fix eth0 interface when cloning Linux VM
So here’s how we fix it:
Remove the kernel’s networking interface rules file so that it can be regenerated
# rm /etc/udev/rules.d/70-persistent-net.rules
# reboot
Edit the network card "name" from eth1 to eth0 in 70-persistent-net.rules
#vi /etc/udev/rules.d/70-persistent-net.rules
#start_udev
UPDATE your interface configuration file
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Remove the MACADDR entry
Remove the UUID entry
Save and exit the file
Restart the networking service
# service network restart
- See more at: http://www.naturalnetworks.com/kb/article.php?id=129#sthash.0XTyTLju.dpuf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment