Fail to define a default route via NetworkManager
Issue
- Adding default route as a static route via NetworkManager fails.
- The Error message shows like below, which means prefix
0is invalid.
# nmcli con m eth0 +ipv4.routes "0.0.0.0/0 10.0.0.1"
Error: failed to modify ipv4.routes: invalid prefix '0'; <1-32> allowed.
# nmcli con m eth0 +ipv6.routes "::0/0 XXXX:XXXX:XXXX:XXXX::1"
Error: failed to remove a value from ipv6.routes: invalid prefix '0'; <1-128> allowed.
Environment
- Red Hat Enterprise Linux 8
- NetworkManager-1.20.0-5.el8_1 or earlier
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.