我是这样写的.
[ol]auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 164.152.166.133/23
gateway 164.152.166.1
dns-nameservers 8.8.8.8 1.1.1.1
# dns-search 1665371056
# dns-* options are implemented by the resolvconf package, if installed
iface eth0 inet6 static
# 写死了一个IPv6地址,可以自行修改
address 2402:a7c0:8100:a111::5a3:cd25/128
gateway 2402:a7c0:8100:a111::1
dns-nameservers 2001:4860:4860::8888 2606:4700:4700::1111
auto vmbr1
iface vmbr1 inet static
address 192.168.1.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.1.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o eth0 -j MASQUERADE
# IPv6 配置
iface vmbr1 inet6 static
address 2402:a7c0:8100:a111::1/116[/ol]复制代码
另外 也配了转发
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.conf
sysctl -p
ip6tables -A FORWARD -i vmbr1 -o eth0 -j ACCEPT
ip6tables -A FORWARD -i eth0 -o vmbr1 -m state --state RELATED,ESTABLISHED -j ACCEPT
给小鸡配的IPv6 是
IP是 2402:a7c0:8100:a111::100/116
网关 2402:a7c0:8100:a111::1
但现在死活 ping不通外网的IPv6.但能ping通 内部IPv6 如 pve主机的v6 2402:a7c0:8100:a111::5a3:cd25
不知道是不是绿云 用了技术手段强制绑定了这些ipv6 只能从 本机的mac 发出?
问了半天gpt o1 感觉也没找到要领. 特来求助大佬们了.