2-9
Figure 2-4 Network diagram for DHCP relay agent

Configuration procedure

# Create DHCP server group 1 and configure an IP address of 10.1.1.1 for it.
<SwitchA> system-view
[SwitchA] dhcp-server 1 ip 10.1.1.1
# Map VLAN-interface 1 to DHCP server group 1.
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] dhcp-server 1
z You need to perform corresponding configurations on the DHCP server to enable the DHCP clients
to obtain IP addresses from the DHCP server. The DHCP server configurations vary with different
DHCP server devices, so the configurations are omitted.
z The DHCP relay agent and DHCP server must be reachable to each other.
Troubleshooting DHCP Relay Agent Configuration

Symptom

A client fails to obtain configuration information through a DHCP relay agent.

Analysis

This problem may be caused by improper DHCP relay agent configuration. When a DHCP relay agent
operates improperly, you can locate the problem by enabling debugging and checking the information
about debugging and interface state (You can display the information by executing the corresponding
display command.)

Solution

z Check if DHCP is enabled on the DHCP server and the DHCP relay agent.