vps交流

配置Kimsufi-le IPV6 碰到的问题


参考大佬发的贴子  https://kejimm.com/87.html

有两个问题 第一个全新安装PVE  默认DNS只有一个 213.186.33.99 没有IPV6 DNS 因为原教程说使用默认DNS  是否会无法解析

配置Kimsufi-le IPV6 碰到的问题

配置Kimsufi-le IPV6 碰到的问题

于是手动添加  如图
配置Kimsufi-le IPV6 碰到的问题

第二 配置独服虚拟网卡 本地网卡是否需要配置IPV6地址

  1. # network interfaces
  2.     auto lo
  3.     iface lo inet loopback
  4.    
  5.     iface eno1 inet manual
  6.    
  7.     auto vmbr0
  8.     iface vmbr0 inet dhcp
  9.       bridge-ports eno1
  10.       bridge-stp off
  11.       bridge-fd 0
  12.     iface vmbr0 inet6 static
  13.       address 2001:42d0:a:6cb3::2/64
  14.    

复制代码

/etc/network/interfaces完整配置为

  1. # network interfaces
  2.     auto lo
  3.     iface lo inet loopback
  4.    
  5.     iface eno1 inet manual
  6.    
  7.     auto vmbr0
  8.     iface vmbr0 inet dhcp
  9.       bridge-ports eno1
  10.       bridge-stp off
  11.       bridge-fd 0
  12.     iface vmbr0 inet6 static
  13.       address 2001:42d0:a:6cb3::2/64
  14.    
  15. auto vmbr2
  16. iface vmbr2 inet static
  17.         address 192.168.0.254/24
  18.         bridge-ports none
  19.         bridge-stp off
  20.         bridge-fd 0
  21. iface vmbr2 inet6 static
  22.         address 2001:42d0:a:6cb3::2/64
  23.         post-up  /sbin/ip -f inet6 route add 2001:42d0:a:6cff:ff:ff:ff:ff dev vmbr0
  24.         pre-down /sbin/ip -f inet6 route del 2001:42d0:a:6cff:ff:ff:ff:ff dev vmbr0
  25.         post-up  /sbin/ip -f inet6 route add default via 2001:42d0:a:6cff:ff:ff:ff:ff
  26.         pre-down /sbin/ip -f inet6 route del default via 2001:42d0:a:6cff:ff:ff:ff:ff
  27.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::2 dev vmbr2
  28.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::2 dev vmbr2
  29.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::10 dev vmbr0
  30.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::10 dev vmbr0
  31.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::20 dev vmbr0
  32.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::20 dev vmbr0
  33.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::30 dev vmbr0
  34.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::30 dev vmbr0
  35.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::40 dev vmbr0
  36.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::40 dev vmbr0
  37.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::50 dev vmbr0
  38.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::50 dev vmbr0
  39.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::60 dev vmbr0
  40.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::60 dev vmbr0
  41.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::70 dev vmbr0
  42.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::70 dev vmbr0
  43.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::80 dev vmbr0
  44.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::80 dev vmbr0
  45.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::90 dev vmbr0
  46.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::90 dev vmbr0
  47.         post-up  /sbin/ip -f inet6 neigh add proxy 2001:42d0:a:6cb3::100 dev vmbr0
  48.         pre-down /sbin/ip -f inet6 neigh del proxy 2001:42d0:a:6cb3::100 dev vmbr0
  49. post-up   iptables -t nat -A POSTROUTING -s ‘192.168.0.254/24’ -o vmbr0  -j MASQUERADE
  50. post-down iptables -t nat -D POSTROUTING -s ‘192.168.0.254/24’ -o vmbr0  -j MASQUERADE

复制代码

然后修改 /etc/sysctl.conf 添加六条 保存并重启母鸡

配置Kimsufi-le IPV6 碰到的问题

母鸡能ping通 小鸡不行

配置Kimsufi-le IPV6 碰到的问题
配置Kimsufi-le IPV6 碰到的问题

起了怪了 有没有大佬来一个 友好的教程啊

@foboy  @sunpma