Skip to content

Instantly share code, notes, and snippets.

@lanrat
Created July 12, 2016 01:19
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lanrat/458066dbdeb460b9cef40dc2af639a24 to your computer and use it in GitHub Desktop.
Save lanrat/458066dbdeb460b9cef40dc2af639a24 to your computer and use it in GitHub Desktop.
NetworkManager ignore docker, virtualbox, and vmware adapters
[main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=interface-name:docker0;interface-name:vmnet1;interface-name:vmnet8;interface-name:vboxnet0
@szczad
Copy link

szczad commented Jan 25, 2018

@dragon788 Please see manpage for NetworkManager.conf, section "Device List Format"
It states clearly that:

   interface-name:IFNAME, interface-name:~IFNAME
      Case sensitive match of interface name of the device. Simple globbing is supported with * and ?. 
      Ranges and escaping is not supported.

  interface-name:=IFNAME
      Case sensitive match of interface name of the device. Globbing is disabled and IFNAME is taken literally.

@cuchac
Copy link

cuchac commented Jul 20, 2021

I used this line to ignore bridge interfaces as well and use wildcards:
unmanaged-devices=interface-name:docker*;interface-name:br-*;interface-name:vmnet*;interface-name:vboxnet*

@thinkawitch
Copy link

thinkawitch commented Aug 9, 2021

This tweak helped me with docker containers gets unavailable inside of vmware linux mint 20 (ubuntu 20.04) after pause/resume.
unmanaged-devices=interface-name:docker*;interface-name:veth*;interface-name:br-*;interface-name:vmnet*;interface-name:vboxnet*

@alexandervlpl
Copy link

Still works perfectly with wildcards, KDE Plasma. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment