I've an external interface, eth0, configured for both IPv4 & IPv6 dhcp service.
cat /etc/sysconfig/network/ifcfg-eth0
STARTMODE='auto'
BOOTPROTO='dhcp'
BROADCAST=''
IPADDR=''
NETMASK=''
NETWORK=''
NM_CONTROLLED='no'
REMOTE_IPADDR=''
IPV6INIT='yes'
IPV6_AUTOCONF='no'
DHCLIENT6_MODE='managed'
DHCLIENT_SET_DEFAULT_ROUTE='yes'
cat ifsysctl-eth0
net.ipv6.conf.eth0.disable_ipv6 = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.eth0.forwarding = 1
net.ipv6.conf.eth0.accept_ra = 2
After system boot both IP addresses are up.
IPv4 is fully functional.
IPv6 is configured on the intfc, but the 'net is not accessible via IPv6
ping6 -c1 google.com
Network is not reachable
Only one default route is set - IPv4,
ip -4 route show | grep default
default via 11.22.33.44 dev eth0
ip -6 route show | grep default
(empty)
A manual route addition
ip route add ::/0 via 2602:xx:xx:xx:xx::1 dev eth0
fixes the problem
ip -6 route show | grep default
default via 2602:xx:xx:xx:xx::1 dev eth0 metric 1024 pref medium
ping6 -c1 google.com
PING google.com(nuq04s29-in-x0e.1e100.net) 56 data bytes
64 bytes from nuq04s29-in-x0e.1e100.net: icmp_seq=1 ttl=55 time=26.7 ms
--- google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 26.777/26.777/26.777/0.000 ms
Where in wicked setup should this default IPv6 route addition be correctly configured?
Adding to /etc/init.d/after.local, launched via /etc/systemd/system/after.local is an option. Preferably, it should be config'd in wicked/network-specific config.
The route should not be added until after the DHCP6 query is made, the lease is retrieved, and the IP address assigned to the up, eth0 interface.
--
To unsubscribe, e-mail: wicked-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: wicked-devel+owner(a)opensuse.org