device: renew dhcp leases on awake for software devices
[NetworkManager.git] / data / 85-nm-unmanaged.rules
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", 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 ENV{ID_NET_DRIVER}=="veth", ENV{NM_UNMANAGED}="1"
28
29 # USB gadget device. Unmanage by default, since whatever created it
30 # might want to set it up itself (e.g. activate an ipv4.method=shared
31 # connection).
32 ENV{DEVTYPE}=="gadget", ENV{NM_UNMANAGED}="1"
33
34 LABEL="nm_unmanaged_end"