DHCP: No DHCPOFFER received from server 0.0.0.0
ID: networking/dhcp-offer-not-received
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| ISC DHCP 4.4.3 | active | — | — | — |
| dnsmasq 2.89 | active | — | — | — |
| Windows Server 2022 DHCP | active | — | — | — |
Root Cause
The DHCP client sent a DISCOVER broadcast but did not receive any OFFER from the DHCP server within the timeout, typically due to a misconfigured DHCP server, VLAN mismatch, or a switchport configured as an access port instead of trunk.
generic中文
DHCP客户端发送了DISCOVER广播,但在超时时间内未收到任何来自DHCP服务器的OFFER,通常由DHCP服务器配置错误、VLAN不匹配或交换机端口配置为接入端口而非中继端口引起。
Official Documentation
https://www.isc.org/dhcp/Workarounds
-
85% success Verify the DHCP server is running and reachable: `sudo tcpdump -i eth0 port 67 or port 68` to check if DISCOVER packets are sent and if OFFER packets are received.
Verify the DHCP server is running and reachable: `sudo tcpdump -i eth0 port 67 or port 68` to check if DISCOVER packets are sent and if OFFER packets are received.
-
90% success Ensure the client's switchport is in the correct VLAN: `show vlan brief` on the switch, and set it with `switchport access vlan 10` if needed.
Ensure the client's switchport is in the correct VLAN: `show vlan brief` on the switch, and set it with `switchport access vlan 10` if needed.
-
80% success Check for DHCP snooping on the switch: `show ip dhcp snooping` and add an exception for the trusted port if needed: `ip dhcp snooping trust`.
Check for DHCP snooping on the switch: `show ip dhcp snooping` and add an exception for the trusted port if needed: `ip dhcp snooping trust`.
中文步骤
Verify the DHCP server is running and reachable: `sudo tcpdump -i eth0 port 67 or port 68` to check if DISCOVER packets are sent and if OFFER packets are received.
Ensure the client's switchport is in the correct VLAN: `show vlan brief` on the switch, and set it with `switchport access vlan 10` if needed.
Check for DHCP snooping on the switch: `show ip dhcp snooping` and add an exception for the trusted port if needed: `ip dhcp snooping trust`.
Dead Ends
Common approaches that don't work:
-
90% fail
This simply re-initiates the same process; if the server is unreachable or misconfigured, the same error will occur.
-
50% fail
This bypasses DHCP entirely but may cause IP conflicts or routing issues if not coordinated with the network admin; it also ignores the root cause of DHCP failure.
-
70% fail
If the server is not reachable due to VLAN or firewall issues, specifying the server IP will not help; the DISCOVER broadcast must still reach the server.