ipv6 config issue?
I need to get ipv6 ip from RA while configuring static ip like windows:
连接特定的 DNS 后缀 . . . . . . . : lan
IPv6 地址 . . . . . . . . . . . . : 2408:832e:.................<-------------from RA
IPv6 地址 . . . . . . . . . . . . : fd00::8 <-------------static IP
本地链接 IPv6 地址. . . . . . . . : fe80::......................<-------------auto privice ip
IPv4 地址 . . . . . . . . . . . . : 172.17.2.8
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . : fe80::4e5e:................<-------------from RA
172.17.2.96
Unfortunately I can't achieve it on alpine. If I install dhcpcd, I'll get a dynamic ip while the ipv4 static ip is present. If I install dhclient it gets stuck permanently.
iface eth0 inet6 auto
address fd00::171/64
pre-up echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
This results in only static ip.
iface eth0 inet6 static
pre-up echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
post-up dhclient -6 eth0
This results in dead interface.
iface eth0 inet static
iface eth0 inet6 dhcp
This results in get ips both ipv4 and ipv6.
On the other hand, running ping -6 ipv6 address
or dhclient -6 eth0
will get an unresponsive system.
I looked up https://wiki.alpinelinux.org/wiki/Configure_Networking and tried many things but they don't work. hope to get help here.