Mac Yosemite 无法 ping IPv6 地址?

2015-01-12 23:46:43 +08:00
 Delbert

能打开网页,上网正常。
所有IPv6地址正常,Google不翻墙即可访问,YouTube可以直接https打开。
各高校的IPv6 PT站点也都正常,但就是无法ping任何一个IPv6地址。
直接ping,无法解析域名。

MBA:~ Delbert$ ping pt.zhixing.edu.cn
ping: cannot resolve pt.zhixing.edu.cn: Unknown host
MBA:~ Delbert$ ping ipv6.google.com
ping: cannot resolve ipv6.google.com: Unknown host

dig没有任何问题:

MBA:~ Delbert$ dig ipv6.google.com

; <<>> DiG 9.8.3-P1 <<>> ipv6.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49481
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ipv6.google.com.       IN  A

;; ANSWER SECTION:
ipv6.google.com.    552142  IN  CNAME   ipv6.l.google.com.

;; AUTHORITY SECTION:
l.google.com.       60  IN  SOA ns4.google.com. dns-admin.google.com. 1578974 900 900 1800 60

;; Query time: 257 msec
;; SERVER: 2001:470:20::2#53(2001:470:20::2)
;; WHEN: Mon Jan 12 23:37:36 2015
;; MSG SIZE  rcvd: 104

MBA:~ Delbert$ dig pt.zhixing.bjtu.edu.cn

; <<>> DiG 9.8.3-P1 <<>> pt.zhixing.bjtu.edu.cn
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17663
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;pt.zhixing.bjtu.edu.cn.        IN  A

;; AUTHORITY SECTION:
zhixing.bjtu.edu.cn.    6   IN  SOA dns.zhixing.bjtu.edu.cn. zhixing.bjtu.edu.cn. 2013103001 900 900 1800 900

;; Query time: 666 msec
;; SERVER: 2001:470:20::2#53(2001:470:20::2)
;; WHEN: Mon Jan 12 23:40:07 2015
;; MSG SIZE  rcvd: 80

nslookup也没有问题

MBA:~ Delbert$ nslookup www.google.com
Server: 2001:470:20::2
Address: 2001:470:20::2#53

Non-authoritative answer:
Name: www.google.com
Address: 216.58.216.228

dns也是ipv6的:

1502 次点击
所在节点    macOS
5 条回复
chuan
2015-01-12 23:51:39 +08:00
ping6试试呢
ptyfork
2015-01-13 00:25:09 +08:00
重启discoveryd试试看?

sudo killall discoveryd
typcn
2015-01-13 00:32:44 +08:00
blueskybbc
2015-01-13 08:55:38 +08:00
同意1,3楼
Delbert
2015-01-13 12:25:34 +08:00
@blueskybbc
@chuan
@ptyfork
@typcn

ping6可以……
我尝试过 ping -6,结果提示错误的参数233333333

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/161579

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX