iface vmbr0 inet6 static
address 2001:41d0:8:aaaa::ffff/128
post-up sleep 5; /sbin/ip -6 route add 2001:41d0:8:aaff:ff:ff:ff:ff dev vmbr0
post-up sleep 5; /sbin/ip -6 route add default via 2001:41d0:8:aaff:ff:ff:ff:ff
pre-down /sbin/ip -6 route del default via 2001:41d0:8:aaff:ff:ff:ff:ff
pre-down /sbin/ip -6 route del 2001:41d0:8:aaff:ff:ff:ff:ff dev vmbr0
auto vmbr6
iface vmbr6 inet static
address 10.0.0.254/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up sysctl net.ipv6.conf.all.forwarding=1
post-up iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o vmbr0 -j MASQUERADE
iface vmbr6 inet6 static
address 2001:41d0:8:aaaa::1/64 nano /etc/ndppd.conf
route-ttl 30000
proxy vmbr0 {
router yes
timeout 500
ttl 30000
rule 2001:41d0:8:aaaa::/64 {
static
}
}
ndppd -d -c /etc/ndppd.conf关键 apt install mtr
mtr google.com
宣告路由即可
评论