并不需要用面板的配置,那个配置有局限性,比如末段IP只能是四位,不过不在面板做不了RDNS.
HostHatch的IPv6网关都是BGP网段的第1个地址即2a01:6f0:ffff::1 (阿姆斯特丹),其他地域也能推断出来,而分配给你的地址是/64,比如我是2a01:6f0:ffff:d6::/64,那么我的地址可用范围就是2a01:06f0:ffff:00d6:0000:0000:0000:0000->2a01:06f0:ffff:00d6:ffff:ffff:ffff:ffff之间,为了固定且规范,可以用EUI64,看起来会更舒服.
通过CURL大法,可以提交出他规定格式的IP.
添加IP:
curl 'https://manage.hosthatch.com/api/v1/server/[服务器ID]/addipv6' \
-H 'authorization: Bearer [浏览器F12提取]' \
-H 'content-type: application/json;charset=UTF-8' \
--data-raw '{"subnet":"2a01:6f0:ffff:d6::/64","ipaddress":":aaaa:bbbb:cccc:dddd"}'
添加RDNS(不设置domain就是删除):
curl 'https://manage.hosthatch.com/api/v1/server/[服务器ID]/reversedns' \
-H 'authorization: Bearer [浏览器F12提取]' \
-H 'content-type: application/json;charset=UTF-8' \
--data-raw '{"subnet":"2a01:6f0:ffff:d6::/64","ipaddress":"2a01:6f0:ffff:d6:aaaa:bbbb:cccc:dddd/64","domain":"example.com"}'
BUG Time:
reversedns 并没有完整的鉴权,所以,他可以给任意IP进行RDNS设置.
博主您好,想问下博主您还在用Hosthatch么?我IPv6配置遇到点问题,想问下你可以么?
@Sieg 你可以考虑面板重装一下,就会获得网卡配置文件,当然,控制面板上也有明确写着网关和地址.
@TaterLi 谢谢博主,但是这并非是我的问题。HH的IPv6使用没有问题,但是有个问题是关于多IPv6地址的。HH的IPV6他给了/64 subnet,但是貌似我只能用::1,其他都用不了。然后他的docs里面说明了The entire /64 subnet is routed towards your VM and the ::1 address, so it’s not necessary to configure additional addresses on the interface in order to receive traffic to them. 如果我没理解错的话,vps里面只要配置好了::1,那么其他的ipv6(比如::2)不需要配置也能连通。但是::2我用不了,是需要在配置下么?