All of lore.kernel.org
 help / color / mirror / Atom feed
From: md@Linux.IT (Marco d'Itri)
To: linux-hotplug@vger.kernel.org
Subject: Do not create persistent name rules for KVM network interfaces
Date: Fri, 27 Aug 2010 16:35:50 +0000	[thread overview]
Message-ID: <20100827163550.GA30688@bongo.bofh.it> (raw)

[-- Attachment #1: Type: text/plain, Size: 17 bytes --]


-- 
ciao,
Marco

[-- Attachment #2: blacklist_kvm_macs --]
[-- Type: text/plain, Size: 747 bytes --]

Do not create persistent name rules for KVM network interfaces.

The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48
range of KVM: http://www.coffer.com/mac_find/?string=545200 .

--- a/extras/rule_generator/75-persistent-net-generator.rules
+++ b/extras/rule_generator/75-persistent-net-generator.rules
@@ -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"

             reply	other threads:[~2010-08-27 16:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27 16:35 Marco d'Itri [this message]
2010-09-02  6:45 ` Do not create persistent name rules for KVM network interfaces Martin Pitt
2010-09-02  8:32 ` Marco d'Itri
2010-09-02  9:14 ` Martin Pitt
2010-09-02 19:00 ` Jim Paris
2010-09-03 12:11 ` Kay Sievers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100827163550.GA30688@bongo.bofh.it \
    --to=md@linux.it \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.