茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1664715 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00103.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

微軟帝國 : [分享]Windows 已經設定固定 IP 卻還是老跑出 169.254.X.X(偏好選項) 的 DHCP IP!?

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15766
[分享]Windows 已經設定固定 IP 卻還是老跑出 169.254.X.X(偏好選項) 的 DHCP IP!?
Windows 已經設定固定 IP 卻還是老跑出 169.254.X.X(偏好選項) 的 DHCP IP!?

冷日在今年聖誕節,碰上一個很詭異的狀況,先是公司內部一團亂的喊不能上網!
後來發現一堆人 DHCP 拿不到 IP!?
上 DHCP Server 查了一下,發現 IP 被配發光?這不科壆阿!(而且有一堆 Bad Address

後來在 DHCP 整理完畢後,才發現事情比我想的麻煩,狀況是:
明明 DHCP Server 正常運作,大家就是拿不到正確的 IP!(都是給 169.254.X.X 這種保留 IP
即使是已經走 Static IP 的冷日也有類似的狀況!?(固定 IP 設定沒問題,也可以在 ipconfig 看得到,雖然會說(重複)就是了

最後找了老半天,連 Server 都開始有一樣的狀況,強烈懷疑是 Cisco 的 Firewall 或是 Switch 在做怪!
但在時間緊迫之下,只能暫時解決這問題,這裡紀錄一下方法:
1.關閉 Windows 的 APIPA 機制
Create or edit the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Add the following value to this key:
Name: IPAutoconfigurationEnabled
Type: REG_DWORD
Hex: 0

2.停用 Windows 自動 IP 設定
Enter: Run > cmd > ipconfig /all
You may see the following issues:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection
Physical Address. . . . . . . . . : 00-23-24-08-30-57
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred)
Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

To fix it, enter these from Command Prompt:
C:\Users\lyngtinh> netsh interface ipv4 show inter
result as:
Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
11 10 1500 connected Local Area Connection

11: <=Keep it in mind

Next run this command:
C:\Users\lyngtinh>netsh interface ipv4 set interface 11 dadtransmits=0 store=persistent

Next, enter
Run > services.msc > disable DHCP Client service

Final, restart your server.
3.冷日是上述兩動的都做了才搞定這問題,順帶一題,Linux 不受影響!

參考資料:

[SOLVED] Static IP devices receiving 169 address after reboot - Networking - Spiceworks

Notebook for Programming: How to disable Autoconfiguration IPv4 Address
前一個主題 | 下一個主題 | 頁首 | | |



Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|