我有一個非常奇怪的 Windows 7 IPv4 路由問題,我無法弄清楚。
問題摘要是預設閘道設定為 192.168.254.253,但實際上使用的預設閘道為 192.168.254.254。
這是一個網路圖:
.-,( ),-.
.-( )-.
.-----( internet )----.--------------------------.
| '-( ).-' | |
| '-.( ).-' | |
v v v
.------------. .------. .------.
| 10mb Fibre | | ADSL | | ADSL |
'------------' '------' '------'
| | |
| | |
v v v
.---------------------. .--------------------. .--------------------.
| Juniper Box | | Draytek DSL Router | | Draytek DSL Router |
|---------------------| |--------------------| |--------------------|
| (public IP address) | | 172.16.0.x | | 172.16.0.x |
'---------------------' '--------------------' '--------------------'
| | |
| | .-------------------'
| v v
v .-------------------------.
.-----------------. | Draytek Dual WAN Router |
| Untangle GW | |-------------------------|
|-----------------| | 192.168.254.254 |
| 192.168.254.253 | '-------------------------'
'-----------------' |
| |
| |
v v
===================================
LAN
===================================
| |
| |
v v
.----------------. .----------------.
| Windows 7 W/S | | Windows 7 W/S |
|----------------| |----------------|
| 192.168.254.38 | | 192.168.254.77 |
'----------------' '----------------'
這是最近(幾週前)改建的光纖站點,原來的 2 條 DSL 線路仍然連接並運行。 Untangle(防火牆)與光纖線路一起安裝。
以下是受影響的 PC 網路配置:
C:\>ipconfig /allcompartments /all
Windows IP Configuration
==============================================================================
Network Information for Compartment 1 (ACTIVE)
==============================================================================
Host Name . . . . . . . . . . . . : COMP36
Primary Dns Suffix . . . . . . . : XXXXXX.local
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : XXXXXX.local
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . : XXXXXX.local
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller #2
Physical Address. . . . . . . . . : C8-9C-DC-33-F1-65
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . :
fe80::3925:86a5:7066:ab92%15(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.254.38(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 22 August 2012 10:20:32
Lease Expires . . . . . . . . . . : 30 August 2012 10:20:31
Default Gateway . . . . . . . . . : 192.168.254.253
DHCP Server . . . . . . . . . . . : 192.168.254.200
DHCPv6 IAID . . . . . . . . . . . : 315137244
DHCPv6 Client DUID. . . . . . . . :
00-01-00-01-14-4A-17-8D-10-78-D2-74-2F-8A
DNS Servers . . . . . . . . . . . : 192.168.254.200
Primary WINS Server . . . . . . . : 192.168.254.200
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.XXXXXX.local:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : XXXXXX.local
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:
Media State . . . . . . . . . . . : Media disconnected
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
路由表:
C:\>route print
===========================================================================
Interface List
15...c8 9c dc 33 f1 65 ......Realtek PCIe GBE Family Controller #2
1...........................Software Loopback Interface 1
10...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
11...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.254.253 192.168.254.38 10
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.254.0 255.255.255.0 On-link 192.168.254.38 266
192.168.254.38 255.255.255.255 On-link 192.168.254.38 266
192.168.254.255 255.255.255.255 On-link 192.168.254.38 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.254.38 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.254.38 266
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
15 266 fe80::/64 On-link
15 266 fe80::3925:86a5:7066:ab92/128
On-link
1 306 ff00 ::/8 On-link
15 266 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
Tracert 示範了奇怪的路由:
C:\>tracert -d www.bbc.co.uk
Tracing route to www.bbc.net.uk [212.58.246.95]
over a maximum of 30 hops:
1 1 ms 1 ms <1 ms 192.168.254.254
2 1 ms 1 ms 1 ms 172.16.0.254
3 17 ms 18 ms 16 ms XXXXXXXXXXXXXXX
4 18 ms 19 ms 19 ms XXXXXXXXXXXXXXX
5 22 ms 22 ms 22 ms XXXXXXXXXXXXXXX
6 22 ms 21 ms 22 ms XXXXXXXXXXXXXXX
7 21 ms 21 ms 22 ms 217.41.169.109
8 30 ms 32 ms 57 ms 109.159.251.227
9 46 ms 39 ms 35 ms 109.159.251.137
10 27 ms 66 ms 30 ms 109.159.254.116
^C
但是,當從另一個 Windows 7 工作站完成時:
C:\Users\administrator>ipconfig /allcompartments /all
Windows IP Configuration
==============================================================================
Network Information for Compartment 1 (ACTIVE)
==============================================================================
Host Name . . . . . . . . . . . . : PABX-BACKUP
Primary Dns Suffix . . . . . . . : XXXXXX.local
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : XXXXXX.local
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : XXXXXX.local
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : 8C-89-A5-94-43-84
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . :
fe80::9479:1c11:6f9f:ae0b%11(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.254.77(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : 15 August 2012 08:27:18
Lease Expires . . . . . . . . . . : 27 August 2012 08:27:31
Default Gateway . . . . . . . . . : 192.168.254.253
DHCP Server . . . . . . . . . . . : 192.168.254.200
DHCPv6 IAID . . . . . . . . . . . : 244091301
DHCPv6 Client DUID. . . . . . . . :
00-01-00-01-16-C2-79-BE-8C-89-A5-94-43-84
DNS Servers . . . . . . . . . . . : 192.168.254.200
Primary WINS Server . . . . . . . : 192.168.254.200
NetBIOS over Tcpip. . . . . . . . : Enabled
Tunnel adapter isatap.XXXXXX.local:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : XXXXXX.local
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* 9:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft 6to4 Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Media State . . . . . . . . . . . : Media disconnected
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
C:\Users\administrator>
最後,從第二個工作站進行追蹤會產生預期結果:
C:\Users\administrator>tracert -d www.bbc.co.uk
Tracing route to www.bbc.net.uk [212.58.244.67]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.254.253
2 1 ms 1 ms 1 ms 141.0.xxx.xxx
3 2 ms 2 ms 2 ms 141.0.xxx.xxx
4 7 ms 2 ms 2 ms 109.204.xxx.xxx
5 2 ms 2 ms 2 ms 95.177.0.7
6 3 ms 2 ms 2 ms 95.177.0.9
7 30 ms 2 ms 2 ms 95.177.0.2
8 2 ms 2 ms 2 ms 195.66.224.103
9 ^C
如預期的那樣,它透過 .253 進行路由,第二跳是 Juniper NTU 的內部介面。
我還沒有檢查過交通狀況。特別是,我打算尋找 ICMP 重定向,但為什麼會有 ICMP 重定向根本不明智?
.254用過的作為安裝光纖之前的預設網關。
有任何想法嗎?我不明白為什麼會有這個路由問題:(
Draytek 雙 WAN 路由器已重新啟動,PC 也已重新啟動。 PC 已停用網絡,然後重新啟用。當 Windows 失控時,所有標準的東西。
希望有人能認出這些症狀!
PS:很抱歉這篇文章很長,但我不想遺漏一些可能相關的內容。
PPS:此工作站或任何其他工作站上不涉及 iSCSI,因此Windows 7 透過本機位址的閘道路由流量這不是問題。
答案1
當有問題的工作站獲得一個新的、不同的 IP 位址時,此問題已自行修復(我懷疑原始租約已過期)。
除了不同的 IP 位址之外,「ipconfig /allcompartments /all」輸出是相同的,「路由列印」是相同的,而且我看到的其他所有內容都是相同的。
回想起來,我認為 Windows 7 版本和更新程式碼有問題,實際上它似乎沒有正確或完全重置 TCP 堆疊。我曾在其他場合指出,如果您在 Windows 網路上啟動新的 DHCP 伺服器,那麼工作站似乎會堅持使用原始 DHCP 伺服器,並且不會進行全面搜索,即首先查找當前網路上的 DHCP 伺服器是。
如果以後遇到類似的情況,我會先嘗試擺弄 DHCP。
如果您遇到相同的問題,也許可以檢查租用時間,然後將日期/時間更改為未來的日期/時間,以便工作站使租用到期?或者,您可以使伺服器的租約到期嗎?
如果您找到好的工作方法,請在此處新增答案。