Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Debian Squeeze (2.6.32-5) guest in KVM that has all virtio network interfaces, and their MACs are apparently blacklisted by udev as per /lib/udev/rules.d/75-persistent-net-generator.rules such that /etc/udev/rules.d/70-persistent-net.rules is not generated.

I tried making a /etc/udev/rules.d/010_netinterfaces.rules file to define eth(foo) per MAC(foo), but it was ignored.

So now I'm unable to explicitly define interface names.

Can someone advise as to how the /lib/udev/rules.d/75-persistent-net-generator.rules needs to be edited whitelist these MACs?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Apparently /etc/udev/rules.d/010_netinterfaces.rules is ignored in Squeeze.

I ended up editing /etc/udev/rules.d/70-persistent-net.rules.

Then renamed /lib/udev/rules.d/75-persistent-net-generator.rules to /lib/udev/rules.d/75-persistent-net-generator.rules.disabled so /etc/udev/rules.d/70-persistent-net.rules would stay put.

share|improve this answer
    
If you create an empty /etc/udev/rules.d/75-persistent-net-generator.rules if will "override" the one in /lib/... so there's less chance of it returning after a patch/upgrade. (I think it needs at least one line in it or a single comment - "touch" creates one that is too empty and causes an error) –  Ed Randall Jan 25 at 22:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.