全球主机交流论坛

标题: ovh已经设置了ipv6,但是没有生效,已经reboot过了 [打印本页]

作者: ningfeng.im    时间: 2023-1-25 22:42
标题: ovh已经设置了ipv6,但是没有生效,已经reboot过了
本帖最后由 ningfeng.im 于 2023-1-25 22:55 编辑


  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).

  3. source /etc/network/interfaces.d/*

  4. # The loopback network interface
  5. auto lo
  6. iface lo inet loopback

  7. # The primary network interface
  8. allow-hotplug eth0
  9. iface eth0 inet static
  10.         address 15.204.57.4/16
  11.         gateway 15.204.56.1
  12.         dns-nameservers 1.1.1.1 8.8.8.8
  13. iface eth0 inet6 static
  14.     address 2604:2dc0:202:300::9aa/56
  15.     gateway 2604:2dc0:202:300::1
  16.     dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844
复制代码


有哪里设置错了吗?
作者: royzheng    时间: 2023-1-25 22:44
  1. iface enp3s0 inet6 static
  2.         address 2607:xxxxxxx
  3.         netmask 128
  4.         gateway 2607:xxxxxxxxxx
  5.         autoconf 0
复制代码

我的配置 供你参考
作者: koi    时间: 2023-1-25 22:46
inet6加上这两行
  1. post-up route add -A inet6 default gw 2604:2dc0:202:300::1 || true
  2. pre-down route del -A inet6 default gw 2604:2dc0:202:300::1 || true
复制代码

作者: ningfeng.im    时间: 2023-1-25 22:53
koi 发表于 2023-1-25 22:46
inet6加上这两行
  1. iface eth0 inet static
  2.         address 15.204.57.4/16
  3.         gateway 15.204.56.1
  4.         dns-nameservers 1.1.1.1 8.8.8.8
  5. iface eth0 inet6 static
  6.     address 2604:2dc0:202:300::9aa/56
  7.     gateway 2604:2dc0:202:300::1
  8.     dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844
  9.     post-up route add -A inet6 default gw 2604:2dc0:202:300::1 || true
  10.     pre-down route del -A inet6 default gw 2604:2dc0:202:300::1 || true
复制代码


加上了,重启之后还是没有ipv6
作者: shares    时间: 2023-1-25 22:59
https://loc.998820.xyz/thread-1125018-1-1.html
作者: ningfeng.im    时间: 2023-1-25 23:00
shares 发表于 2023-1-25 22:59
https://loc.998820.xyz/thread-1125018-1-1.html

我就是按这个设置的
作者: jian88    时间: 2023-1-25 23:03
面板重装一次系统就可以了
作者: bcdefg    时间: 2023-1-25 23:04
OVH不是给/64的吗,有/56的?
作者: 奧巴马    时间: 2023-1-25 23:06
/128 不是56
作者: ningfeng.im    时间: 2023-1-25 23:44
还是不行
作者: DogeLee2    时间: 2023-1-26 03:53
你是dd完木有的吗
我d完和2楼一样的就好了
作者: shares    时间: 2023-1-26 09:33
本帖最后由 shares 于 2023-1-26 09:38 编辑
ningfeng.im 发表于 2023-1-25 23:00
我就是按这个设置的


我DD完,按帖子里大佬的教程操作完,
ipv6那儿别带/56  #/64 就是单纯的你主机里面的ipv6地址
就好了




欢迎光临 全球主机交流论坛 (https://loc.998820.xyz/) Powered by Discuz! X3.4