Proxmox VE (PVE) 使用 Linux Container (LXC) 容器使用 IPv6

需要修改 PVE Host 裡面的 net 把 accept_ra 修改成 2 使用 sysctl 指令

root@pve:~# sysctl -a | grep net.ipv6.conf.all.accept_ra
net.ipv6.conf.all.accept_ra = 1
net.ipv6.conf.all.accept_ra_defrtr = 1
net.ipv6.conf.all.accept_ra_from_local = 0
net.ipv6.conf.all.accept_ra_min_hop_limit = 1
net.ipv6.conf.all.accept_ra_mtu = 1
net.ipv6.conf.all.accept_ra_pinfo = 1
net.ipv6.conf.all.accept_ra_rt_info_max_plen = 0
net.ipv6.conf.all.accept_ra_rt_info_min_plen = 0
net.ipv6.conf.all.accept_ra_rtr_pref = 1

root@pve:~# sysctl -w net.ipv6.conf.all.accept_ra=2
net.ipv6.conf.all.accept_ra = 2

檢查修改狀況

root@pve:~# sysctl -a | grep net.ipv6.conf.all.accept_ra
net.ipv6.conf.all.accept_ra = 2
net.ipv6.conf.all.accept_ra_defrtr = 1
net.ipv6.conf.all.accept_ra_from_local = 0
net.ipv6.conf.all.accept_ra_min_hop_limit = 1
net.ipv6.conf.all.accept_ra_mtu = 1
net.ipv6.conf.all.accept_ra_pinfo = 1
net.ipv6.conf.all.accept_ra_rt_info_max_plen = 0
net.ipv6.conf.all.accept_ra_rt_info_min_plen = 0
net.ipv6.conf.all.accept_ra_rtr_pref = 1

LXC 裡面修改網卡把 IPv6 改成 SLAAC