为什么Bonjour for Windows没有看到我的IPv6专用Linux主机?

前端之家收集整理的这篇文章主要介绍了为什么Bonjour for Windows没有看到我的IPv6专用Linux主机?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我的局域网上,我有三个基本相同的Debian Linux盒子运行Avahi.其中一个同时具有IPv4地址和IPv6地址,另外两个只有IPv6地址.它们都出现在Mac上的Bonjour浏览器中,如下所示:
  1. Workgroup Manager (_workstation._tcp.) - 4
  2. Box-1 [00:60:2b:02:45:f8]
  3. [fe80::260:2bff:fe02:45f8]:9
  4. 192.168.1.78:9
  5. Box-2 [00:60:2b:02:46:1b]
  6. [fe80::260:2bff:fe02:461b]:9
  7. Box-3 [00:60:2b:02:42:e2]
  8. [fe80::260:sbff:fe02:42e2]:9

从我的Mac,一切都很好……我可以解决Box-1.local.,Box-2.local.,Box-3.local.,ping6到任何一个,ssh到其中任何一个,等等.

但是,我的Windows 7机器只能看到Box-1.例如,在命令提示符窗口中执行dns-sd会让我这样:

  1. C:\>dns-sd -B _ssh._tcp
  2. Browsing for _ssh._tcp
  3. Timestamp A/R Flags if Domain Service Type Instance Name
  4. 12:41:14.492 Add 2 17 local. _ssh._tcp. Box-1 SSH

通过Bonjour名称和IPv6对该框进行Ping操作:

  1. C:\>ping -6 msli-dcm-2-10330688.local.
  2.  
  3. Pinging msli-dcm-2-10330688.local. [fe80::260:2bff:fe02:45f8%17] with 32 bytes of data:
  4. Reply from fe80::260:2bff:fe02:45f8%17: time=1ms
  5. Reply from fe80::260:2bff:fe02:45f8%17: time<1ms
  6. Reply from fe80::260:2bff:fe02:45f8%17: time<1ms

…就像通过IPv6地址ping其他框一样:

  1. C:\>ping -6 fe80::260:2bff:fe02:461b
  2.  
  3. Pinging fe80::260:2bff:fe02:461b with 32 bytes of data:
  4. Reply from fe80::260:2bff:fe02:461b: time=4ms
  5. Reply from fe80::260:2bff:fe02:461b: time<1ms
  6. Reply from fe80::260:2bff:fe02:461b: time<1ms
  7. Reply from fe80::260:2bff:fe02:461b: time<1ms
  8.  
  9. Ping statistics for fe80::260:2bff:fe02:461b:
  10. Packets: Sent = 4,Received = 4,Lost = 0 (0% loss),Approximate round trip times in milli-seconds:
  11. Minimum = 0ms,Maximum = 4ms,Average = 1ms
  12.  
  13. C:\>ping -6 fe80::260:2bff:fe02:42e2
  14.  
  15. Pinging fe80::260:2bff:fe02:42e2 with 32 bytes of data:
  16. Reply from fe80::260:2bff:fe02:42e2: time<1ms
  17. Reply from fe80::260:2bff:fe02:42e2: time<1ms
  18. Reply from fe80::260:2bff:fe02:42e2: time<1ms
  19. Reply from fe80::260:2bff:fe02:42e2: time<1ms
  20.  
  21. Ping statistics for fe80::260:2bff:fe02:42e2:
  22. Packets: Sent = 4,Maximum = 0ms,Average = 0ms

….似乎Bonjour for Windows根本无法识别已发布的主机,除非它具有IPv4地址.这是一个在Windows的Bonjour中的错误,还是我做错了什么? FWIW,我的Windows 7机器正在运行Bonjour 2.0.2.0

dig @ 224.0.0.251 -p 5353 ptr _ssh._tcp.local是否会报告您查询的任何一台机器?

如果你无法挖掘Windows,那么试试吧

nslookup -q = ptr -port = 5353 _ssh._tcp.local 224.0.0.251

nslookup -q = any -port = 5353 Box-2.local 224.0.0.251

nslookup -q = aaaa -port = 5353 Box-2.local 224.0.0.251

猜你在找的Windows相关文章