| 1 |
# Do not modify this file, it will get overwritten on updates. |
| 2 |
# To override or extend the rules place a file in /etc/udev/rules.d |
| 3 |
|
| 4 |
SUBSYSTEM!="net", GOTO="nm_unmanaged_end" |
| 5 |
ACTION!="add|change|move", GOTO="nm_unmanaged_end" |
| 6 |
|
| 7 |
# VirtualBox host networking. Out-of-tree driver that looks like an ordinary |
| 8 |
# Ethernet. No parent device (lives in /virtual/), no support for ethtool |
| 9 |
# to identify the driver, MAC address defaults to 08:00:27:, but can be |
| 10 |
# changed. Interface name will have to do, it's always vboxnet*. |
| 11 |
ENV{INTERFACE}=="vboxnet[0-9]*", ENV{NM_UNMANAGED}="1" |
| 12 |
|
| 13 |
# VMWare host networking. Out-of-tree driver that looks like an ordinary |
| 14 |
# Ethernet. No parent device (lives in /virtual/), no support for |
| 15 |
# ethtool to identify the driver. They have their own MAC prefix that |
| 16 |
# can not be changed. |
| 17 |
ATTR{address}=="00:50:56:*", ENV{INTERFACE}=="vmnet[0-9]*", ENV{NM_UNMANAGED}="1" |
| 18 |
|
| 19 |
# Parallels Workstation host networking. Out-of-tree driver that looks like |
| 20 |
# an ordinary Ethernet. No parent device (lives in /virtual/), no support for |
| 21 |
# ethtool to identify the driver and the interface name is too generic. |
| 22 |
# However, they have their own MAC prefix that can not be changed. |
| 23 |
ATTR{address}=="00:1c:42:*", ENV{INTERFACE}=="vnic[0-9]*", ENV{NM_UNMANAGED}="1" |
| 24 |
|
| 25 |
# Virtual Ethernet device pair. Often used to communicate with a peer interface |
| 26 |
# in another net namespace and managed by libvirt, Docker or the like. |
| 27 |
# Generally we don't want to mess with those. One exception would be the |
| 28 |
# full system containers, like LXC or LXD. LXC containers run via libvirt |
| 29 |
# don't use udev, so this doesn't apply. LXD does, though. To deal with the |
| 30 |
# LXD situation, let's treat the devices called eth* as regular ethernet. |
| 31 |
ENV{ID_NET_DRIVER}=="veth", ENV{INTERFACE}!="eth[0-9]*", ENV{NM_UNMANAGED}="1" |
| 32 |
|
| 33 |
# USB gadget device. Unmanage by default, since whatever created it |
| 34 |
# might want to set it up itself (e.g. activate an ipv4.method=shared |
| 35 |
# connection). |
| 36 |
ENV{DEVTYPE}=="gadget", ENV{NM_UNMANAGED}="1" |
| 37 |
|
| 38 |
LABEL="nm_unmanaged_end" |