tdd 发表于 6 天前

【求助】Virtualizor面板小鸡,安装PVE,PVE下虚拟机获取IPv6...

有两只Virtualizor面板的小鸡,配置还算可以,但是安装PVE后,VM的IPv6地址不通,请问哪里出错了。 已经安装了ndppd,sysctl也开启了ipv6转发。

还有就是Virtualizor面板每次重启后 都会重写/etc/network/interfaces 导致PVE断网,有解决的办法吗?

下面是pve服务器的/etc/network/interfaces的内容
[*]ping2a0f:1234:1234:1234::a复制代码是通的
但是[*]ping2a0f:1234:1234:1234::1 复制代码不通
新建VM后 ping VM的ipv6 也是不通的
同样的配置用在其他面板的小鸡上就可以。所以请教下有Virtualizor面板小鸡成功安装PVE且VM ipv6正常使用的吗? 求教。

[*]source /etc/network/interfaces.d/*
[*]
[*]auto lo
[*]iface lo inet loopback
[*]iface lo inet6 loopback
[*]
[*]auto eth0
[*]iface eth0 inet manual
[*]iface eth0 inet6 manual
[*]
[*]auto vmbr0
[*]iface vmbr0 inet static
[*]address 191.xx.xx.xx
[*]netmask 255.255.255.0
[*]gateway 191.xx.xx.1
[*]bridge_ports eth0
[*]bridge_stp off
[*]bridge_fd 0
[*]bridge_maxwait 0
[*]
[*]
[*]iface vmbr0 inet6 static
[*]address 2a0f:234:1234:1234::a/64
[*]gateway 2a0f:1234:1234::1
[*]bridge_ports eth0
[*]bridge_stp off
[*]bridge_fd 0
[*]up ip -6 route del 2a0f:1234:1234:1234::/64 dev vmbr0
[*]
[*]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 vmbr0 -j MASQUERADE
[*]post-down iptables -t nat -D POSTROUTING -s '192.168.1.0/24' -o vmbr0 -j MASQUERADE
[*]
[*]auto vmbr1
[*]iface vmbr1 inet6 static
[*]address2a0f:1234:1234:1234::1/64
[*]bridge_ports none
[*]bridge_stp off
[*]bridge_fd 0
[*]up ip -6 route add 2a0f:1234:1234:1234::/64 dev vmbr1
[*]post-down ip -6 route del 2a0f:1234:1234:1234::/64 dev vmbr1复制代码
页: [1]
查看完整版本: 【求助】Virtualizor面板小鸡,安装PVE,PVE下虚拟机获取IPv6...