ovh ipv6 pve 特殊配置
侧边栏壁纸
  • 累计撰写 3 篇文章
  • 累计收到 1 条评论

ovh ipv6 pve 特殊配置

Vinny
2025-11-29 / 0 评论 / 1 阅读 / 正在检测是否收录...
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
宣告路由即可

0

评论

博主关闭了所有页面的评论