全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 3709|回复: 21
打印 上一主题 下一主题

关于 hosthatch 的 IPV6 配置问题

[复制链接]
跳转到指定楼层
1#
发表于 2019-6-11 19:11:36 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
本帖最后由 tibbs 于 2019-6-11 20:07 编辑

@gdzh65

已经配置成功
root@server:~# ping6 ipv6.google.com
PING ipv6.google.com(lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e)) 56 data bytes
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=1 ttl=57 time=0.363 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=2 ttl=57 time=0.447 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=3 ttl=57 time=0.475 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=4 ttl=57 time=0.411 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=5 ttl=57 time=0.438 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=6 ttl=57 time=0.787 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=7 ttl=57 time=0.435 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=8 ttl=57 time=0.432 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=9 ttl=57 time=0.414 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=10 ttl=57 time=0.428 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=11 ttl=57 time=0.480 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=12 ttl=57 time=0.461 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=13 ttl=57 time=0.508 ms
64 bytes from lax17s05-in-x0e.1e100.net (2607:f8b0:4007:808::200e): icmp_seq=14 ttl=57 time=0.491 ms
^C
--- ipv6.google.com ping statistics ---
14 packets transmitted, 14 received, 0% packet loss, time 13271ms
rtt min/avg/max/mdev = 0.363/0.469/0.787/0.096 ms

成功之前,请在
https://manage.hosthatch.com
管理处添加一个 subnet


配置方法  
  1. nano /etc/network/interfaces
  2. auto eth0
  3.   iface eth0 inet static
  4.    address 你的IPV4地址
  5.    gateway 你的 IPV 4 网关
  6.    netmask 255.255.255.0
  7.    dns-nameservers 1.1.1.1 8.8.8.8
  8.    
  9.    up ip addr add 您的IPV6地址/64 dev eth0
  10.    up ip -6 route add 你的IPV6网关 dev eth0
  11.    up ip -6 route add default via 你的IPV6网关

复制代码

简单粗暴

转载注明
https://www.locvm.info/html/archives/7.html 谢谢
22#
发表于 2019-6-11 22:57:52 | 只看该作者
多个地址怎么配呢
21#
发表于 2019-6-11 22:52:47 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
20#
发表于 2019-6-11 22:24:42 | 只看该作者
他们家默认就有送 V6地址
19#
 楼主| 发表于 2019-6-11 22:18:54 | 只看该作者
adminw 发表于 2019-6-11 22:16
以前搞过一段时间idc这都不是问题

  那你不早点说,很郁闷的
研究了半天   
   我的主控不在这里,都是些优化的,国企才辞职下来的,被领导逼到疯 。
18#
发表于 2019-6-11 22:16:52 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
17#
 楼主| 发表于 2019-6-11 22:11:42 | 只看该作者
adminw 发表于 2019-6-11 22:10
一个机器根本用不完整个/64段,还得自己后台添加路由,直接从1开始/48添加到ipv6地址处,这算是单独的不 ...

这也可以啊
  问题是很多人不会
不如直接  /64
    --
其实我也不会,我参考了不少文件,我家里的 IPV6 还不能从 路由分配到子网
16#
发表于 2019-6-11 22:10:15 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
15#
 楼主| 发表于 2019-6-11 22:08:04 | 只看该作者
adminw 发表于 2019-6-11 22:03
面板填那个没啥用 不赢填写,直接上/48你这个太麻烦了

上 64 的好处都有啥?
说对了就给他
14#
发表于 2019-6-11 22:03:13 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-15 02:41 , Processed in 0.071011 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表