Windows 7 无法 ping 名称,只能 ping IP 地址

Ala*_*lan 8 networking

对此很抱歉,但我读过的所有类似内容都不能解决我的问题。

我在这两台机器上安装了Windows 7 Professional,并且它们作为公共网络联网。共享设置为文件共享、发现等——全部打开。Windows 资源管理器很好,我可以看到网络和共享文件夹。我可以进入命令提示符(以管理员身份)并使用 IP 地址 ping 另一台机器。

我不能用它的名字 ping 它。我想这样做以使用Remote Desktop Connection。工作组名称相同,我是两台机器上的用户和管理员,密码相同。

我尝试在两台机器上关闭 Windows 防火墙,并在两台机器上关闭防病毒软件。我正在使用带有 WAN ping 阻塞但没有 LAN 选项的 Belkin 路由器。两台机器在路由器上都显示得很好。

三天过去了,我无法破解这个问题。去年我使用了 Windows XP,它完美地按名称导航。是不是 Windows 7 Professional 做了一些不同的事情?

诊断结果

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>ping phoenix

Pinging phoenix.Belkin [198.105.251.24] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 198.105.251.24:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Windows\system32>ipconfig /all

    Windows IP Configuration

       Host Name . . . . . . . . . . . . : october7
       Primary Dns Suffix  . . . . . . . :
       Node Type . . . . . . . . . . . . : Hybrid
       IP Routing Enabled. . . . . . . . : No
       WINS Proxy Enabled. . . . . . . . : No
       DNS Suffix Search List. . . . . . : Belkin

    Ethernet adapter Local Area Connection 2:

       Connection-specific DNS Suffix  . : Belkin
       Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
       Physical Address. . . . . . . . . : 6C-62-6D-69-B4-6B
       DHCP Enabled. . . . . . . . . . . : Yes
       Autoconfiguration Enabled . . . . : Yes
       Link-local IPv6 Address . . . . . : fe80::a815:ffa0:1230:86fc%13(Preferred)
       IPv4 Address. . . . . . . . . . . : 192.168.2.10(Preferred)
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Lease Obtained. . . . . . . . . . : Tuesday, July 23, 2013 5:08:44 PM
       Lease Expires . . . . . . . . . . : Friday, August 29, 2149 11:47:41 PM
       Default Gateway . . . . . . . . . : 192.168.2.1
       DHCP Server . . . . . . . . . . . : 192.168.2.1
       DHCPv6 IAID . . . . . . . . . . . : 292315757
       DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-48-BC-21-6C-62-6D-69-B4-6B

       DNS Servers . . . . . . . . . . . : 192.168.2.1
       NetBIOS over Tcpip. . . . . . . . : Enabled

    Tunnel adapter isatap.Belkin:

       Media State . . . . . . . . . . . : Media disconnected
       Connection-specific DNS Suffix  . : Belkin
       Description . . . . . . . . . . . : Microsoft ISATAP Adapter
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes

    Tunnel adapter Local Area Connection* 11:

       Connection-specific DNS Suffix  . :
       Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
       Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
       DHCP Enabled. . . . . . . . . . . : No
       Autoconfiguration Enabled . . . . : Yes
       IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:34e2:129c:b8ad:7db(Preferred)
       Link-local IPv6 Address . . . . . : fe80::34e2:129c:b8ad:7db%11(Preferred)
       Default Gateway . . . . . . . . . : ::
       NetBIOS over Tcpip. . . . . . . . : Disabled
Run Code Online (Sandbox Code Playgroud)

小智 0

我认为这是由 NetBIOS 负责的,它可以在没有内部 DNS 服务器的情况下实现名称发现。我不确定您的路由器是否会充当 DNS 服务器,因此需要启用 TCP/IP 上的 NetBIOS,并且 PC 需要位于同一子网上。由于它们可以互相 ping 通,因此可以安全地假设后者是这样。

您可以通过启用适配器属性下的复选框,在网络适配器设置中启用 NetBIOS over TCP/IP。

尝试nbtstat -c在命令行中查看相反的节点是否可见。