ipconfig 顯示 169.254.x.x (APIPA) 或 0.0.0.0。ipconfig /renew 長時間無響應 / 提示「無法聯繫 DHCP 服務器」。Client (0.0.0.0) Server
| |
|---- DISCOVER (bcast, 1s timeout) ->|
| (無響應) |
|---- DISCOVER (bcast, 9s timeout) ->| (Windows 默認重試間隔: 1, 9, 13, 16s)
| (無響應) |
|---- DISCOVER (bcast, 13s timeout) ->|
| (無響應) |
|---- DISCOVER (bcast, 16s timeout) ->|
| (無響應) |
|---- 5 分鐘後重試整個流程 -----------|
若 Server 端處理不過來 (CPU 100%/內存耗盡/會話表滿/廣播風暴阻塞),Client 將陷入無限重試循環,加劇網絡擁塞。
| 服務角色 | 部署建議 | 關鍵指標 |
|---|---|---|
| 專用 DHCP 服務器 (Windows Server / Linux Kea / ISC DHCP / 專用設備) | 獨立硬件/VM,雙機熱備 (Failover/HA),核心交換機 ip helper-address 轉發 | 租約響應 < 10ms,支持 10萬+ 並發租約,Option 43/60/82 全支持 |
| 專用數據庫/應用服務器 | 獨立實例,不與 DHCP 共用資源 | 考試/業務系統零影響 |
| 專用文件/克隆服務器 | 獨立存儲網絡 (iSCSI/NFS/SMB3),QoS 保障 | 無盤啟動/克隆不爭搶 DHCP CPU |
| 路由器/核心交換機 | 專注轉發、ACL、QoS、NAT、路由、DHCP Relay | CPU < 30%,轉發零丟包 |
! 1. 縮短租期減少續租壓力 (臨時)
ip dhcp pool LAN_POOL
lease 0 10 0 ! 10 小時
! 2. 啟用衝突檢測 Ping
ip dhcp ping packets 2
ip dhcp ping timeout 200
! 3. 限制廣播風暴 (接入交換機)
storm-control broadcast level 0.50 ! 0.5% 帶寬
storm-control multicast level 0.50
storm-control unicast level 80.00
! 4. 端口隔離/私有 VLAN 防終端互掃
interface range gi1/0/1-48
switchport mode private-vlan host
switchport private-vlan host association 10 100 ! Primary 10, Isolated 100
! 5. 重啟路由器 DHCP 進程 (不重啟設備)
clear ip dhcp binding *
clear ip dhcp conflict *
! Cisco: 無單獨重啟 DHCP 進程命令,通常需 reload
ip helper-address 指向新 DHCP VIP (雙機虛擬 IP)。ipconfig /renew 驗證新租約來源 (Server ID 變為新 Server IP)。dhcp_leases_active, dhcp_packets_total, dhcp_errors_total;Grafana 儀表盤 + Alertmanager 告警 (池利用率 > 85%、響應延遲 > 50ms、NAK 率 > 1%)。路由器 DHCP 癱瘓本質是「單點設備承擔超出硬件能力的控制平面負載」。唯有「職責分離:路由器只轉發,專用服務器做服務」,配合廣播風暴抑制、端口隔離、監控告警,才能從根本斷開惡性循環鏈,實現彈性、可觀測、可擴展的地址管理基礎設施。