ner*_*com 8 windows-server-2003 vpn windows-7 windows-vista
这真的很奇怪 - 我有一个解决方法(继续阅读),但我很想知道它为什么有效。
我的 VPN 设置在 WinServer2003 服务器和 Vista 客户端上运行良好。
然后我设置了一个新的 Win7 框来访问同一台服务器。服务器正在运行 WINS。
两个客户端都可以正常进入 VPN,并通过 IP4 地址 ping 服务器端的机器。
但只有 Vista 客户端可以通过 NETBIOS 地址(机器名称)ping 机器。Win7 客户端刚刚返回“找不到主机”。
据我所知,客户端的配置相同。
偶然地,在摆弄时,我发现如果我在 Win7 客户端上运行 tracert - 跟踪到服务器端任何机器的路由 - 然后在 NETBIOS 工作之后。
例如(这是来自 Win7 框上的 cygwin 命令行,带有编辑密码等):
$ rasdial "vpnName" Dave passWord
Connecting to vpnName.
Verifying username and password...
Registering your computer on the network...
Successfully connected to vpnName. Command completed successfully.
Dave@QUIET ~
$ ping henshaw
Ping request could not find host henshaw. Please check the name and try again.
Dave@QUIET ~
$ tracert 10.1.10.1
Tracing route to www [10.1.10.1] over a maximum of 30 hops:
1 39 ms 47 ms 49 ms ASH [10.1.10.184]
2 44 ms 31 ms 32 ms www [10.1.10.1]
Trace complete.
$ ping henshaw
Pinging henshaw [10.1.10.92] with 32 bytes of data:
Reply from 10.1.10.92: bytes=32 time=36ms TTL=127
Reply from 10.1.10.92: bytes=32 time=46ms TTL=127
Reply from 10.1.10.92: bytes=32 time=35ms TTL=127
Reply from 10.1.10.92: bytes=32 time=41ms TTL=127
Ping statistics for 10.1.10.92:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 35ms, Maximum = 46ms, Average = 39ms
Run Code Online (Sandbox Code Playgroud)
(ASH是Server2003服务器盒子,10.1.10.1是网关。)
到底他妈发生了什么?为什么 Win7 盒子一开始的行为不同,为什么 tracert 修复它?
--戴夫
添加:
根据@Sane 的建议,这里是来自两个客户端的 ipconfig all 输出:
远景框:
Dave@Tower ~
$ ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : Tower
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : home
PPP adapter vpnName:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : vpnName
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.1.10.80(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 10.1.10.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : home
Description . . . . . . . . . . . : NVIDIA nForce 10/100/1000 Mbps Ethernet
Physical Address. . . . . . . . . : 6C-F0-49-D1-92-FC
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1d56:57b0:5c40:8ea2%10(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.11(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Tuesday, November 20, 2012 12:52:51 PM
Lease Expires . . . . . . . . . . : Wednesday, November 21, 2012 12:52:50 PM
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 258797641
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-14-7D-F7-96-6C-F0-49-D1-92-FC
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter Local Area Connection* 6:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
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* 7:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 02-00-54-55-4E-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:9d38:6ab8:93:2ec:3f57:fef4(Preferred)
Link-local IPv6 Address . . . . . : fe80::93:2ec:3f57:fef4%11(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter Local Area Connection* 11:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : home
Description . . . . . . . . . . . : isatap.home
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Run Code Online (Sandbox Code Playgroud)
Win7盒子:
Dave@QUIET ~
$ ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : QUIET
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
PPP adapter vpnName:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : vpnName
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.1.10.108(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : 10.1.10.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82578DC Gigabit Network Connection
Physical Address. . . . . . . . . : 00-1C-C0-F7-54-2F
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::3c6a:4873:97c:e773%10(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.110(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCPv6 IAID . . . . . . . . . . . : 234888384
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-C6-DC-78-00-1C-C0-F7-54-2F
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.{13A00E9E-CF57-4B02-B3F6-21929585E6FC}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
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:4137:9e76:400:32e2:9d91:5c30(Preferred)
Link-local IPv6 Address . . . . . : fe80::400:32e2:9d91:5c30%12(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled
Tunnel adapter isatap.{B34461EA-B740-4553-A1A7-570852066611}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Run Code Online (Sandbox Code Playgroud)
小智 0
我怀疑tracert 命令的副作用是它会填充NetBIOS 名称缓存。运行命令:
nbtstat /c
Run Code Online (Sandbox Code Playgroud)
在tracert 命令之前和之后。我的猜测是您会看到“henshaw”条目出现。
我忘记了确切的机制,它是在一个临时的 NetBIOS 网络中,没有集中的名称服务,所以机器必须互相发现。在尝试对您提供的 IP 地址进行反向查找时,tracert 所做的操作会引发本地 LAN 上的 NetBIOS 名称广播,并且由于您的测试盒和“henshaw”位于同一网络上,因此您的测试盒可以获知该名称。
尝试使用“nbtstat /R”刷新 NetBIOS 名称缓存,这应该会让您回到问题状态。我认为如果您通过 IP 地址 ping henshaw,这也会填充缓存。另外,我怀疑如果您使用“tracert /d”(不将 IP 地址解析为名称),您将不会获得这种有益效果。
| 归档时间: |
|
| 查看次数: |
752 次 |
| 最近记录: |