Networking

Intermittent DHCP renewals fail after adding ip helper on routed VLAN — clients keep old IP and lose gateway

Swoop
1mo ago
Environment

Environment

Enterprise network with Cisco L3 switch routing VLANs, ip helper-address configured to central DHCP server IP on the L3 interface for the client VLAN; access switches are mixed OEMs with differing firmware versions.

Symptoms

Symptoms

Some clients intermittently fail DHCP REQUEST/RENEW; they keep their previous IP but lose default gateway and DNS after lease expiry. Issue affects desktop machines on a particular access switch stack; mobile devices on same VLAN renew OK. DHCP server logs show no request for the affected clients during failure windows.

Observations

Observations

Packet capture on the L3 interface shows DHCPDISCOVER/REQUEST from client arriving at switch, but helper forwarding frame sometimes lacks correct giaddr or relay agent modifies chaddr. Rebooting the access switch stack temporarily resolves the problem for minutes to hours. When helper temporarily removed, clients can obtain addresses from a local emergency DHCP, but central allocation fails intermittently.

Already attempted

Already attempted

Replaced patch cable to access switch, upgraded affected access switch firmware, cleared DHCP bindings, moved client to different access port — problem persisted with original ports. Temporarily removed ip helper to test local DHCP fallback. Contacted DHCP admin: server sees no requests when clients fail.

Question

Question

What relay-agent behaviour or network-layer issues can cause forwarded DHCP requests to omit or alter giaddr/chaddr fields so the server never sees the client? How can I trace and fix relay agent misconfiguration or hardware offload causing this intermittent failure?

COMMUNITY RESPONSES

Verified community troubleshooting

1 reply
0
tuva_terminal Answer
user
Posted 1mo ago • 0 confirmations

Capture packets on both sides of the relay: on the access switch port where the client sends DHCP and on the L3 helper interface that forwards to the server. Compare the giaddr and chaddr fields and UDP checksums — if the forwarded packet lacks proper giaddr or has bad checksums, the relay or hardware offload on the switch is corrupting requests. Disable UDP offload on that access switch or place the port in software-forwarding to test; if that fixes it, apply a firmware patch or replace the switch. Verify by seeing clean DHCPDISCOVER/REQUEST on the server for previously failing clients. Roll back offload changes if they hurt throughput while awaiting vendor fix.

Showing 1 of 1 community responses
AI DIAGNOSTICS

Incident analysis

Updated 1mo ago• Trouble ID

Most likely causes

Relay agent (ip helper) on the L3 switch intermittently fails (firmware bug or resource exhaustion) and forwards DHCP packets with corrupted or missing giaddr. 75%
Hardware UDP checksum/packet offload on access switch corrupts packets when forwarding to helper, causing server to drop requests. 50%
ACL or security feature on access switch rewrites or drops DHCP packets from certain MAC vendors, leading to selective failures. 30%

Summary

When DHCPDISCOVER arrives at L3 but DHCP server sees no request, the IP helper/relay is likely failing to forward properly (incorrect giaddr), or an offloading feature on the switch is mangling UDP checksums/frames. Intermittent nature and resolution after switch reboot point to relay agent resource exhaustion or firmware bug. Mixed-vendor access switches can also have buggy helper implementations that corrupt chaddr/giaddr fields when NAT/accelerator features are enabled.

Suggested Fixes

Diagnostic step 1
Capture mirrored packet traces at the access switch ingress, L3 helper interface, and at the DHCP server simultaneously to compare client-origin frames with forwarded packets (check giaddr/chaddr and UDP checksums).
Diagnostic step 2
Temporarily disable advanced offloads (UDP checksum offload, hardware NAT) on the access switch or set the interface to software-forwarding mode and monitor for recurrence.
Diagnostic step 3
Upgrade or rollback access switch firmware if a known relay-agent bug exists; if vendor provides a known issue, apply recommended patch.

Continue troubleshooting

Matched from the title, description and tags