ethX drift in VM
setting and resetting the network configuration in VM lab manager causes the ethernet interface to increment. so what used to be eth0 becomes eth1, eth2, ...., ethN...
when the increment occurs an entry is added to /etc/udev/rules.d/70-persistend-net.rules
the entry with the host's MAC address will be marked for the current ethN
1. remove all the entries which do not match the current MAC
2. set the entry which matches the current MAC to eth0
3. move the current ifcfg-ethN to ifcfg-eth0 and edit it to match the current label
4. reboot
Labels: centos, eth0, eth1, eth2, ethX, ifcfg-eth, labmanager, network, NIC, redhat, VM

0 Comments:
Post a Comment
<< Home