Skip to content

Troubleshoot DHCP Relay Across VLANs

Admin
October 4, 2026
8 min read
Intermediate
💻 Target OS: Cisco IOS-XE / Linux Router

Before you begin

  • Applies to:DHCPv4 relay across VLANs on Cisco IOS XE.
  • Where to start:Start on the affected client VLAN, then inspect its gateway and relay configuration.
  • What you need:Have the client VLAN, gateway interface, DHCP server address, and expected scope.
Guide tools
Guide tools
0/0 Steps (0%)

DHCP clients begin with a broadcast that normally stays inside their VLAN. A relay agent forwards the request to a configured server and supplies client subnet context so the server can select the correct scope. This guide follows that path before changing a live scope.

Example topology: client VLAN 20 uses 10.20.20.0/24, its gateway is 10.20.20.1, and the DHCP server is 10.20.5.10. Use only approved test clients and server addresses.

For the Windows server checks, run PowerShell on the DHCP server or an authorized admin workstation with the DHCP Server PowerShell module (installed with the DHCP role or RSAT DHCP Server Tools) and remote administrative permissions.


01

Verify the Client Broadcast Domain

Client VLAN

Check the access port VLAN, VLAN database, and SVI state. If the SVI is down, resolve the Layer 2 issue before diagnosing relay forwarding.

show vlan brief
show interfaces status
show ip interface brief | include Vlan20
show running-config interface Vlan20
❯ Illustrative Output (Results Vary)
interface Vlan20
ip address 10.20.20.1 255.255.255.0
ip helper-address 10.20.5.10
Cisco IOS XE CLI showing a client VLAN SVI with an ip helper-address and route to the DHCP server

Figure 1: Check the relay address on the client VLAN and confirm a route to the DHCP server.


02

Verify Relay Destination and Return Reachability

Relay Path

Confirm the helper points to the intended server on the client-facing SVI. Verify the relay can route to the server and return traffic can reach the relay address used by the server.

show running-config interface Vlan20
show ip route 10.20.5.10
ping 10.20.5.10 source Vlan20
❯ Illustrative Output (Results Vary)
Success rate is 100 percent (5/5)

03

Match the Scope to the Relayed Subnet

Server Scope

On the DHCP server or an authorized workstation with RSAT DHCP Server Tools, replace the example server and scope values below, then verify an active scope covers 10.20.20.0/24, has available leases, and supplies router option 10.20.20.1 and the expected DNS servers. Check exclusions and reservations. These commands are read-only; use credentials with remote DHCP administration rights.

Terminal window
$DhcpServer = 'dhcp01.corp.example'
$ScopeId = '10.20.20.0'
Get-DhcpServerv4Scope -ComputerName $DhcpServer
Get-DhcpServerv4OptionValue -ComputerName $DhcpServer -ScopeId $ScopeId
Get-DhcpServerv4ScopeStatistics -ComputerName $DhcpServer -ScopeId $ScopeId
❯ Illustrative Output (Results Vary)
ScopeId : 10.20.20.0
State : Active
Router : 10.20.20.1

04

Follow Discover, Offer, Request, and Acknowledgment

Packet Evidence

Capture at an approved point near the server and filter for DHCP. If the request reaches the server but no Offer leaves, focus on scope selection and policy. If an Offer leaves but never returns, inspect routing and filtering.

Wireshark display filter:
udp.port == 67 || udp.port == 68
❯ Illustrative Output (Results Vary)
DHCP Discover -> relay/server
DHCP Offer <- server/relay
DHCP Request -> relay/server
DHCP ACK <- server/relay

Comments