Re: Set permanent route to IPv6 subnet on interface
> 26.03.2020 11:15, Jeremy Ardley пишет: >> What is the best NetworkManager method to add a permanent route to an >> ipv6 subnet on an interface? >> >> I can add a temporary route outside of NetworkManager thus: >> >> ip -6 route add 2001:db8:c111:b000::/56 dev eth0 >> > Where should this be done in NetworkManager and what is the correct > syntax? Answering my own question, the correct syntax is nmcli c modify 'Wired connection 2' ipv6.routes ' 2001:db8:c111:b000::/56 ' This results in a line in the nmconnection file ipv6 section of route1=2001:db8:c111:b000::/56 While this does not explicitly attach the subnet to interface eth0, this is done by activating the profile on device eth0 ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Set permanent route to IPv6 subnet on interface
26.03.2020 11:15, Jeremy Ardley пишет: > What is the best NetworkManager method to add a permanent route to an > ipv6 subnet on an interface? > > I can add a temporary route outside of NetworkManager thus: > > ip -6 route add 2001:db8:c111:b000::/56 dev eth0 > Many aspects of IPv6 implicitly expect /64 network prefix. If this is what your router advertises, it likely explains why autoconfiguration does not work in you case. > Where should this be done in NetworkManager and what is the correct syntax? > Works for me if I define static route with :: (empty) gateway. :: is shorthand for all zeroes. Where to define static route depends on used frontend, but normally you should have IPv6 tab which also Routes button. bor@tw:~> nmcli -g ipv6.routes con show Wired\ connection\ 2 fd01\:2345\:6789\:ab00\:\:/56 0 bor@tw:~> ip -6 r ::1 dev lo proto kernel metric 256 pref medium fd01:2345:6789:ab00::/56 dev enp0s5 proto static metric 1024 pref medium ... > (in this instance the interface eth0 also has an assigned ipv6 /128 > address in the subnet range) > > > ___ > networkmanager-list mailing list > networkmanager-list@gnome.org > https://mail.gnome.org/mailman/listinfo/networkmanager-list > ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Need help porting ifcfg-ppp0 config to NetworkManager
Hi, I need some help porting an ifcfg-ppp0 config from my old internet gateway which was running to Fedora 16 to my new internet gateway which is running F31. Running "ifup ppp0" gives a message saying that this is deprecated and I should switch to NM. Unfortunately, I can't work out how to configure NM to do this. I can see options for connections of ppp, (a)dsl and pppoe type, but I seem to need some combination of these and that does not appear to be possible to configure with nmcli, plus some pppd options (such as "ipv6" and "holdoff") that aren't listed in the documentation. My (redacted) config is below. Thanks, David --- [root@gatekeeper ~]# cat /etc/sysconfig/network-scripts/ifcfg-ppp0 BOOTPROTO=dialup DEFROUTE=yes DEMAND=no FIREWALL=NONE ONBOOT=yes PEERDNS=yes PERSIST=yes PIDFILE=/var/run/pppoe-adsl.pid PING=. SYNCHRONOUS=no TYPE=xDSL USERCTL=yes CONNECT_POLL=6 CONNECT_TIMEOUT=3600 DEVICE=ppp0 ETH=enp4s0 IPV6INIT=yes LCP_FAILURE=120 LCP_INTERVAL=1 LINUX_PLUGIN=rp-pppoe.so MRU=1492 MTU=1492 PPPOE_TIMEOUT=80 PPPD_EXTRA="ipv6 , holdoff 1" IPADDR= USER= ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Set permanent route to IPv6 subnet on interface
What is the best NetworkManager method to add a permanent route to an ipv6 subnet on an interface? I can add a temporary route outside of NetworkManager thus: ip -6 route add 2001:db8:c111:b000::/56 dev eth0 Where should this be done in NetworkManager and what is the correct syntax? (in this instance the interface eth0 also has an assigned ipv6 /128 address in the subnet range) ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list