Can NetworkManager disable default gateway when creating interfaces?
Issue
- We note that by default all new connections are created with
ipv4.never-default no(DEFROUTE=yes). - This means that
NetworkManagerwill move the default route to other interfaces created later causing the actual gateway of the host to be unreachable which is undesireable. - Is there a way to make connections default to
ipv4.never-default yes(DEFROUTE=no) for all new connections created so forth withNetworkManager? - Is it possible to configure or change the
NetworkManagerdefault connection settings?
Environment
- Red Hat Enterprise Linux (RHEL)
- 7
- 8
- NetworkManager
nmcli
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.