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
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