Skip to content

Instantly share code, notes, and snippets.

@framer99
Created March 20, 2015 14:03
Show Gist options
  • Save framer99/5d5947bbc0041c169b0c to your computer and use it in GitHub Desktop.
Save framer99/5d5947bbc0041c169b0c to your computer and use it in GitHub Desktop.
Serverified NetworkManager.conf setup for manual nmcli control only
[main]
plugins=ifcfg-rh
#
# "Serverify" NetworkManager behavior, ensuring it only does what we tell it via nmcli
#
# See man NetworkManager.conf for more details on settings below
#
#
# Do not create any connections automatically
# The NetworkManager daemon stores "automatically ignored" (automatically
# created interfaces which were manually deleted) interfaces in the file:
# /var/lib/NetworkManager/no-auto-default.state
# But since we are specifying no-auto-default=* here, that file won't
# really matter. You can delete it if present, consolidating config here.
no-auto-default=*
# Do not monitor config files for changes and automatically apply them
# This is the traditional operation of network config files, change file, restart
# network or ifup/ifdown etc.
monitor-connection-files=false
# Allow creating connections on interfaces with no link (cable unplugged)
# It's very annoying to try and turn up a multiple NICs and you cannot assign
# a connection to a physical device because there is no link yet
ignore-carrier=*
# Do not touch /etc/resolv.conf or start dnsmasq
dns=none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment