๐ฅ Cisco ASA DHCP Relay (Post-9.7) – Complete Practical Guide
In modern enterprise networks, DHCP servers are often centralized. But what happens when clients exist on different subnets?
This guide walks you through everything—from concept to configuration—with real CLI, math intuition, and troubleshooting.
๐ Table of Contents
- Why DHCP Relay?
- How DHCP Relay Works
- Timing & Packet Flow Logic
- Configuration Steps
- CLI Configuration
- Verification
- Troubleshooting
- Benefits
- Key Takeaways
- Related Articles
๐ Why Use DHCP Relay?
- Centralized IP management
- Reduced configuration overhead
- Secure DHCP traffic through firewall
⚙️ How DHCP Relay Works
DHCP uses a 4-step process:
\[ Discover \rightarrow Offer \rightarrow Request \rightarrow Acknowledge \]
But broadcasts don’t cross routers. So ASA converts broadcast into unicast.
๐ Network Logic (Simple Math View)
1. Broadcast Limitation
\[ Broadcast_{scope} = Local\ Network \]
Meaning: DHCP requests stay within the subnet.
2. Relay Conversion
\[ Broadcast \rightarrow Unicast \]
ASA forwards request to DHCP server.
3. Response Flow
\[ Server \rightarrow ASA \rightarrow Client \]
๐ ️ Step-by-Step Configuration
Step 1: Access CLI
Connect via SSH or console.
Step 2: Define DHCP Server
dhcprelay server 10.10.20.10 inside
Step 3: Enable Relay
dhcprelay enable inside
Step 4: Set Gateway (Optional)
dhcprelay setroute
๐ป Full Configuration Example
dhcprelay server 10.10.20.10 inside
dhcprelay enable inside
dhcprelay setroute
๐ฅ️ CLI Verification
Click to Expand
ASA# show dhcprelay DHCP Relay enabled on interface inside Server: 10.10.20.10 Setroute: enabled
⚠️ Troubleshooting
Clients not getting IP?
- Check ASA interface config
- Verify DHCP server reachability
- Allow UDP ports 67/68
- Confirm routing paths
Test Connectivity
ASA# ping 10.10.20.10
๐ Key Benefits
- Centralized DHCP server
- Better network scalability
- Enhanced security
- Simplified IP management
๐ก Key Takeaways
- ASA relays DHCP across subnets
- Uses unicast to reach server
- Simple configuration post-9.7
- Critical for enterprise networks
๐ฏ Final Thoughts
DHCP relay on Cisco ASA is no longer complex. With modern improvements, it’s faster, cleaner, and more reliable.
Once configured correctly, it becomes a powerful tool for managing IP allocation across distributed networks.