参考大佬发的贴子 https://kejimm.com/87.html
有两个问题 第一个全新安装PVE 默认DNS只有一个 213.186.33.99 没有IPV6 DNS 因为原教程说使用默认DNS 是否会无法解析
于是手动添加 如图
第二 配置独服虚拟网卡 本地网卡是否需要配置IPV6地址
- # network interfaces
- auto lo
- iface lo inet loopback
-
- iface eno1 inet manual
-
- auto vmbr0
- iface vmbr0 inet dhcp
- bridge-ports eno1
- bridge-stp off
- bridge-fd 0
-
- iface vmbr0 inet6 static
- address 2001:42d0:a:6cb3::2/64
-
复制代码
/etc/network/interfaces完整配置为
- # network interfaces
- auto lo
- iface lo inet loopback
-
- iface eno1 inet manual
-
- auto vmbr0
- iface vmbr0 inet dhcp
- bridge-ports eno1
- bridge-stp off
- bridge-fd 0
-
- iface vmbr0 inet6 static
- address 2001:42d0:a:6cb3::2/64
-
-
- auto vmbr2
-
- iface vmbr2 inet static
- address 192.168.0.254/24
- bridge-ports none
- bridge-stp off
- bridge-fd 0
-
- iface vmbr2 inet6 static
- address 2001:42d0:a:6cb3::2/64
-
- post-up /sbin/ip -f inet6 route add 2001:42d0:a:6cff:ff:ff:ff:ff dev vmbr0
- pre-down /sbin/ip -f inet6 route del 2001:42d0:a:6cff:ff:ff:ff:ff dev vmbr0
- post-up /sbin/ip -f inet6 route add default via 2001:42d0:a:6cff:ff:ff:ff:ff
- pre-down /sbin/ip -f inet6 route del default via 2001:42d0:a:6cff:ff:ff:ff:ff
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::2 dev vmbr2
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::2 dev vmbr2
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::10 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::10 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::20 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::20 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::30 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::30 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::40 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::40 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::50 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::50 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::60 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::60 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::70 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::70 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::80 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::80 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::90 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::90 dev vmbr0
- post-up /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::100 dev vmbr0
- pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::100 dev vmbr0
-
-
- post-up iptables -t nat -A POSTROUTING -s ‘192.168.0.254/24’ -o vmbr0 -j MASQUERADE
- post-down iptables -t nat -D POSTROUTING -s ‘192.168.0.254/24’ -o vmbr0 -j MASQUERADE
复制代码
然后修改 /etc/sysctl.conf 添加六条 保存并重启母鸡
母鸡能ping通 小鸡不行
起了怪了 有没有大佬来一个 友好的教程啊
@foboy @sunpma
|