本帖最后由 mymyhope 于 2021-11-30 22:45 编辑
后台显示的地址是:2001:41d0:2:922c::1
interface配置加上了:
auto vmbr1 iface vmbr1 inet static address 10.1.1.1/24 bridge-ports none bridge-stp off bridge-fd 0
iface vmbr1 inet6 static address 2001:41d0:2:922c::1/64 post-up iptables -t nat -A POSTROUTING -s ‘10.1.1.1/24’ -o vmbr0 -j MASQUERADE pre-down iptables -t nat -D POSTROUTING -s ‘10.1.1.1/24’ -o vmbr0 -j MASQUERADE
post-up /sbin/ip -f inet6 route add 2001:41d0:2:92ff:ff:ff:ff:ff dev vmbr0 pre-down /sbin/ip -f inet6 route del 2001:41d0:2:92ff:ff:ff:ff:ff dev vmbr0 post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:92ff:ff:ff:ff:ff pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:92ff:ff:ff:ff:ff post-up /sbin/ip -f inet6 neigh add proxy 2001:41d0:2:922c::1 dev vmbr1 pre-down /sbin/ip -f inet6 neigh del proxy 2001:41d0:2:922c::1 dev vmbr1
开的小鸡可以分配到ipv4,v4外网是通的。 但是母鸡v6不通外网,小鸡也v6没有外网。
ip addr
vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 62:90:4f:70:77:4f brd ff:ff:ff:ff:ff:ff inet 10.1.1.1/24 brd 10.1.1.255 scope global vmbr1 valid_lft forever preferred_lft forever inet6 2001:41d0:2:922c::1/64 scope global valid_lft forever preferred_lft forever inet6 fe80::6090:4fff:fe70:774f/64 scope link valid_lft forever preferred_lft forever
求大佬支支招orz 照抄以前ks3c的配置也不对。网关已经按照规则第四节第二位后全ff了应该是没错的。
母鸡小鸡之间互相ping v6正常,但是ping外网v6全部丢包 外网用v6也联不通服务器。 |