networking network_error ai_generated true

DHCP: No DHCPOFFER received from server 0.0.0.0

ID: networking/dhcp-offer-not-received

Also available as: JSON · Markdown · 中文
80%Fix Rate
84%Confidence
1Evidence
2023-09-05First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
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

  1. 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.
  2. 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.
  3. 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`.

中文步骤

  1. 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.
  2. 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.
  3. 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:

  1. 90% fail

    This simply re-initiates the same process; if the server is unreachable or misconfigured, the same error will occur.

  2. 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.

  3. 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.