7-12
[SwitchA-Vlan-interface1] dhcp select relay
# Correlate VLAN-interface 1 to DHCP server group 1.
[SwitchA-Vlan-interface1] dhcp relay server-select 1
# Enable the DHCP relay agent to support Option 82, and perform Option 82-related configurations.
[SwitchA-Vlan-interface1] dhcp relay information enable
[SwitchA-Vlan-interface1] dhcp relay information strategy replace
[SwitchA-Vlan-interface1] dhcp relay information circuit-id string company001
[SwitchA-Vlan-interface1] dhcp relay information remote-id string device001
You need to perform corresponding configurations on the DHCP server to make the Option 82
configurations function normally.
Troubleshooting DHCP Relay Agent Configuration
Symptom
DHCP clients cannot obtain any configuration parameters via the DHCP relay agent.
Analysis
Some problems may occur with the DHCP relay agent or server configuration. Enable debugging and
execute the
display
command on the DHCP relay agent to view the debugging information and
interface state information for locating the problem.
Solution
Check that:
z
The DHCP is enabled on the DHCP server and relay agent.
z
The address pool on the same subnet where DHCP clients reside is available on the DHCP
server.
z
The routes between the DHCP server and DHCP relay agent are reachable.
z
The relay agent interface connected to DHCP clients is correlated with correct DHCP server
group and IP addresses for the group members are correct.