pve开启ipv6
查看内核也已经开启ipv6自动配置:
cat /proc/sys/net/ipv6/conf/vmbr0/accept_ra
1
cat /proc/sys/net/ipv6/conf/vmbr0/autoconf
1
查看已开启ipv6转发:
cat /proc/sys/net/ipv6/conf/vmbr0/forwarding
1
需要将accept_ra值改成2才能自动配置SLAAC ipv6地址:
/etc/sysctl.conf
net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.default.accept_ra=2
net.ipv6.conf.vmbr0.accept_ra=2
net.ipv6.conf.all.autoconf=1
net.ipv6.conf.default.autoconf=1
net.ipv6.conf.vmbr0.autoconf=1
lxc开启ipv6
我是配合爱快分发的ipv6,只要选SLAAC在lxc里就可以查看到ipv6了