VMware
0 Replies Last post: Mar 17, 2009 2:33 AM by Heino Gutschm…  

Interface Renaming after MAC Address Change (Linux) posted: Mar 17, 2009 2:33 AM

Click to view Heino Gutschmidt's profile Lurker 6 posts since
Aug 6, 2007

Hi,

after mac address change (e.g. cloning, storage migration, ...) the network interfaces are renamed (eth0 becomes eth3, eth1 becomes eth4, ...). The network setup does not work any more. Removing or editing the persistent network udev rules (/etc/udev/rules.d) every time is quite hard. It is a better idea to replace mac address matching by bus id matching:

File /etc/udev/rules.d/*-persistent-net.rules (e.g. 70-persistent-net.rules for openSUSE 10.3):

SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="11:22:33:44:55:66", NAME="eth0"

replace ATTR{address}=="11:22:33:44:55:66" by

ID="<BUS_ID>"

To get the bus id use: ethtool -i eth0

The line above would look like:

SUBSYSTEM=="net", DRIVERS=="?*",ID="0000:00:11.0", NAME="eth0"

Heino


VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities