Daily Archives: February 28, 2009

Recreating z25_persistent-net.rules file manually on debian

0
Filed under Uncategorized
Tagged as

/lib/udev/write_net_rules all_interfaces

If this is an isolated issue you can obviously just edit the udev rule generated and fix it (normally we want to have eth0 the existing interface and not something crazy like eth8, for ex.); this is found inside /etc/udev/rules.d/z25_persistent-net.rules

To completely disable this feature and no longer try to keep a static name for each device (in this case a static name for each mac address) we just have to remove the existing rules files (z25_persistent-net.rules) and also the generator rules that updates the rules file (z45_persistent-net-generator.rules):
rm -f /etc/udev/rules.d/z25_persistent-net.rules
rm -f /etc/udev/rules.d/z45_persistent-net-generator.rules

Note: since z45_persistent-net-generator.rules is just a link to the real file /etc/udev/persistent-net-generator.rules if you ever want to enable this back, you just have to recreate this link back and on the first boot the rules will be regenerated.