我有一台 Ubuntu 9.04 机器和一台 OS X 10.5 机器。它们都位于同一子网 (192.168.10.0/24)。我可以从 OS X 机器上看到 ubuntu.local 和 osx.local,但我只能从 Ubuntu 机器上看到 ubuntu.local。当我 ping 它们时,ubuntu.local 是 192.168.10.50,但 osx.local 是 192.168.132.1。OS X 机器的 IP 显然是错误的,我不确定它是如何得到的。我用它连接到三个网络 (192.168.20.0/24 以太网、192.168.2.0/24 无线和前面提到的 192.168.10.0/24 无线),因此 192.168.132.1 看起来很奇怪。
我会给这个 mdns 加标签,但是我还没有足够的积分。
结果如下ifconfig
,看来 bonjour 正在抓取 VMWare 网络,而不是有线或无线。我怎样才能告诉它使用无线(或有线)?
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:17:f2:d6:39:8a
media: autoselect status: inactive
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,hw-loopback> 10baseT/UTP <full-duplex,flow-control> 100baseTX <half-duplex> 100baseTX <full-duplex> 100baseTX <full-duplex,hw-loopback> 100baseTX <full-duplex,flow-control> 1000baseT <full-duplex> 1000baseT <full-duplex,hw-loopback> 1000baseT <full-duplex,flow-control> none
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:19:e3:ff:fe:77:30:9c
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.10.102 netmask 0xffffff00 broadcast 192.168.10.255
ether 00:19:e3:d8:b3:5e
media: autoselect status: active
supported media: autoselect
vmnet8: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.132.1 netmask 0xffffff00 broadcast 192.168.132.255
ether 00:50:56:c0:00:08
vmnet1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.238.1 netmask 0xffffff00 broadcast 192.168.238.255
ether 00:50:56:c0:00:01
答案1
您的系统是否安装了 Vmware、Parallels 或类似的东西?我相信他们设置了一个虚拟网络适配器并分配了额外的私有地址。快速谷歌搜索返回了此信息页这表明修复可能有效。
如果您在 OSX 机器上的终端中运行“ifconfig”,您是否看到 192.168.132.?地址?