"ip route add 0/0 dev ppp0 table 200" using NetworkManager nmcli?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fedora has stopped supporting the old reliable network-scripts, so I'm 
now trying to configure the network on my multihome router (xDSL + 
Ethernet internet connection) using NetworkManager nmcli on Fedora 42. 
But it's stuck on the routing configuration.
Can anyone advise how to configure the equivalent of the simple command:

ip route add 0/0 dev ppp0 table 200

(adding the default route for a point-to-point connection to the routing 
table 200) using nmcli?

The docs on the NetworkManager web (if at https://networkmanager.dev/) 
is rather incomplete, and I couldn't find anything on the internet either 
(the only thing I found was that NetworkManager doesn't do it at all, 
and it has to be done via its dispatcher scripts - which I don't know 
if this is a joke ;)

Can someone please point me to a solution (ideally other than going back 
to Fedora 40)?
IMO the logical equivalent should be something like:

nmcli connection modify DSL +ipv4.route-table 200 +ipv4.routes "0.0.0.0/0 [1.1.1.1] dev=ppp0"

but it ends with an error:
Error: failed to modify ipv4.routes: invalid option 'dev=ppp0': unknown attribute 'dev'
(no matter when with or without fake gateway address 1.1.1.1 - which 
I found recommended somewhere).

Command: nmcli conn mod DSL +ipv4.routes "0.0.0.0/0 table=200"
doesn't print an error, but the following "ip route sh table 200" 
does not print any route and the entry in /etc/NetworkManager/system-connections/DSL.nmconnection :

route1=0.0.0.0/0
route1_options=table=200

is probably incorrect...
-- 
Thanks in advance, Franta Hanzlik
-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux