Can NetworkManager disable default gateway when creating interfaces?

Solution Verified - Updated -


  • We note that by default all new connections are created with ipv4.never-default no (DEFROUTE=yes).
  • This means that NetworkManager will 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 with NetworkManager?
  • Is it possible to configure or change the NetworkManager default connection settings?


  • 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content