chiark / gitweb /
do not create persistent name rules for KVM network interfaces
authorMarco d'Itri <md@linux.it>
Tue, 31 Aug 2010 19:44:34 +0000 (21:44 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 31 Aug 2010 19:44:34 +0000 (21:44 +0200)
The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48
range of KVM.

extras/rule_generator/75-persistent-net-generator.rules

index a9dfdce7a57592b6f871d6236458e5ca8be36e1a..8119d0ea2f32ee866756e2e0f20b07d560b1b438 100644 (file)
@@ -29,6 +29,9 @@ ENV{MATCHADDR}="$attr{address}"
 # match interface type
 ENV{MATCHIFTYPE}="$attr{type}"
 
+# ignore KVM virtual interfaces
+ENV{MATCHADDR}=="54:52:00:*", GOTO="persistent_net_generator_end"
+
 # These vendors are known to violate the local MAC address assignment scheme
 # Interlan, DEC (UNIBUS or QBUS), Apollo, Cisco, Racal-Datacom
 ENV{MATCHADDR}=="02:07:01:*", GOTO="globally_administered_whitelist"