Cannot remove static route from NetworkManager
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.routesconnection property
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.