Cannot remove static route from NetworkManager

Solution Verified - Updated -

Issue

  • Cannot remove static route from NetworkManager
  • This route will not go away:
$ ip route show table all | grep 192.168.0.0
192.168.0.0/16 via 172.16.0.254 dev myeth0 proto static metric 102 

$ nmcli connection modify myeth0 -ipv4.routes "192.168.0.0/16 172.16.0.254"
$ ip route del 192.168.0.0/16 via 172.16.0.254 dev myeth0 proto static metric 102
$ nmcli connection up myeth0

$ ip route show table all | grep 192.168.0.0
192.168.0.0/16 via 172.16.0.254 dev myeth0 proto static metric 102 

Environment

  • Red Hat Enterprise Linux 8.2
  • NetworkManager-1.22.8-4.el8
  • Static route managed by NM as the ipv4.routes connection property

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