1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00
Commit Graph

20 Commits

Author SHA1 Message Date
Kay Sievers
f74310b4a0 Revert "Add alternative KVM MAC address blacklist"
This reverts commit 634afac119.

54:52:00 was just a bug in libvirt, and that's better fixed locally,
and we should not carry it in udev rules.
2010-09-03 14:08:14 +02:00
Martin Pitt
634afac119 Add alternative KVM MAC address blacklist
Reportedly, older KVM/Qemu instances indeed do use 54:52:00:*,
so add this as an alternative.
2010-09-02 11:11:32 +02:00
Martin Pitt
d4de0a0321 do not create persistent name rules for VMWare network interfaces
Not generating persistent MAC address rules will significantly ease cloning of
VMs.  The kernel reliably sorts eth* enumeration by bus number, so as long as
you only have cards from one vendor (or more precisely, drivers), the
enumeration will be stable. Having cards from different vendors is very
unlikely in VMs.

KVM was already covered in the previous commit, this is the equivalent
blacklist for VMWare:

  http://www.coffer.com/mac_find/?string=005056
  http://www.coffer.com/mac_find/?string=000c29

https://launchpad.net/bugs/341006
2010-09-02 08:39:12 +02:00
Martin Pitt
c03180194c Fix KVM MAC address range
KVM uses 52:54:00:* MACs:

  http://git.savannah.gnu.org/cgit/qemu.git/tree/net.c#n796
2010-09-02 08:32:43 +02:00
Marco d'Itri
af29bf0966 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.
2010-08-31 21:44:34 +02:00
Kay Sievers
c8663095e3 rule_generator: net - fix MATCHDEVID
This got lost for some reason with an earlier change.

Thanks to Marco d'Itri <md@linux.it> for noticing.
2009-08-16 21:12:04 +02:00
Lubomir Rintel
9379b7c16d rule-generator: net - whitelist NICs that violate MAC local scheme
According to list of assigned ethernet codes [1] referred to by
IANA [2] certain global addresses do not follow the assignement
scheme and use numbers reserved for local use. Several such adapters
are quite widely used, generate rules for them.

[1] http://www.cavebear.com/archive/cavebear/Ethernet/vendor.html
[2] http://www.iana.org/assignments/ethernet-numbers
2009-05-03 15:37:30 +02:00
Kay Sievers
1f698065bc rule_generator: net - fix usb comment generation
On Sat, Apr 4, 2009 at 22:17, Omair Eshkenazi <stimpson@phys.huji.ac.il> wrote:
> I noticed that in (70-)persistent-net.rules, the comments for USB devices
> are missing the device/vendor id's. Example:
> # USB device 0x:0x (rt73usb)
2009-04-26 20:53:30 +02:00
Kay Sievers
941d40a074 rules: persistent net - handle "locally administered" ibmveth MAC addresses 2008-05-26 17:11:13 +02:00
David Woodhouse
8b6e9f287d rules_generator: net rules - add "dev_id" value to generated rules 2008-04-27 20:19:44 +02:00
Kay Sievers
e6d70ed63a rules_generator: net rules - always add KERNEL== match to generated rules 2008-04-15 00:21:51 +02:00
Kay Sievers
c8ee8f983f rules_generator: do not create rules with insufficient matches
Thanks to Alexander E. Patrakov for pointing out that we create
invalid rules.

We still need a proper fix for devices we skip creating rules
(locally administered MAC), but want to swap names with interface
names we created rules for.
2007-11-20 18:18:03 +01:00
Kay Sievers
8fe5f78b7e rule_generator: always match netif type in generated rule 2007-09-25 17:18:49 +02:00
Kay Sievers
c746922ca2 rule_generator: move all policy from write_net_rules to the rules file 2007-09-21 17:42:46 +02:00
Kay Sievers
7d6ffc7216 rule_generator: fix wrong DRIVERS!= logic
Thanks to Matthias for identifying that.
2007-08-21 23:05:47 +02:00
Kay Sievers
dcfa2acce3 rules_generator: skip random MAC addresses 2007-08-02 21:19:41 +02:00
Kay Sievers
9b23e594bf rules_generator: remove "installation" function
This should be called by triggering events not by looping with
the script itself. It also keeps a second blacklist outside of
the rules which we do not want to maintain.
2007-07-25 18:16:11 +02:00
Hannes Reinecke
49369cafe4 rules_generator: add S/390 persistent network support 2007-07-25 15:42:39 +02:00
Kay Sievers
8091f6a90c rule_generator: improve net rule comment generation 2006-09-09 14:45:45 +02:00
Marco d'Itri
fbcbf70bb2 add persistent rules generator for net devices and optical drives 2006-09-05 15:20:28 +02:00