Disable automatic udev rules for network interfaces in Ubuntu

If you want to deploy a Ubuntu image across different hosts, each time you boot it on a new machine, a new udev rule for its network card will be created. You will then end up with eth1, eth2, and so on. There are different ways to work around this problem. Here is a simple approach that will completely disable the automatic rule file generation:

  1. rm /etc/udev/rules.d/70-persistent-net.rules
  2. mkdir /etc/udev/rules.d/70-persistent-net.rules

It’s a hack, it’s not pretty, but it works.


Posted

in

by

Tags:

Comments

One response to “Disable automatic udev rules for network interfaces in Ubuntu”

  1. […] Make sure Udev doesn’t block our network, see: http://6.ptmc.org/?p=164 rm /etc/udev/rules.d/70-persistent-net.rules mkdir /etc/udev/rules.d/70-persistent-net.rules rm -rf […]