-   Slackware (
-   -   Fun with virtual ethernet interfaces (

Richard Cranium 03-07-2014 10:45 AM

Fun with virtual ethernet interfaces
If you have more than one NIC attached to your VM, do not expect /etc/udev/rules.d/70-persistent-net.rules to be anything other than an empty file.

(Well, it will be an empty file if you have only one NIC but there no question which one is going to be eth0 in that case.)

It turns out that /lib/udev/rules.d/75-persistent-net-generator.rules has some special cases in it...

# ignore KVM virtual interfaces
ENV{MATCHADDR}=="52:54:00:*", GOTO="persistent_net_generator_end"
# ignore VMWare virtual interfaces
ENV{MATCHADDR}=="00:0c:29:*|00:50:56:*", GOTO="persistent_net_generator_end"
# ignore Hyper-V virtual interfaces
ENV{MATCHADDR}=="00:15:5d:*", GOTO="persistent_net_generator_end"

...all of which result in those interfaces not being written into 70-persistent-net.rules.

Hopefully, this will prevent some of you from pounding your heads against your desks.

Ser Olmy 03-09-2014 07:18 PM

Thanks, good to know. I can easily see myself wasting a considerable amount of time trying to make sense of something like that.

All times are GMT -5. The time now is 03:49 PM.