40-10
DHCP Relay Agent Configuration Example
ork requirements
VLAN-i
side. The IP
10.1.1.2/24 th
A forward
addresses in subnet
10.10.1.0/24 t
Network diagram
Netw
nterface 1 on the DHCP relay agent (Switch A) connects to the network where DHCP clients
re
address of VLAN-interface 1 is 10.10.1.1/24 and IP address of VLAN-interface 2 is
at communicates with the DHCP server 10.1.1.1/24. As shown in the figure below, Switch
s messages between DHCP clients and the DHCP server to assign IP
o the clients.
Figure 40-4
Network diagram for DHCP relay agent
C
fi
[Swi
#
[Swi
[Swi
on guration procedure
# Create DHCP server group 1 and configure an IP address of 10.1.1.1 for it.
<SwitchA> system-view
tchA] dhcp-server 1 ip 10.1.1.1
ap VLAN-interface 1 to DHCP server g
M
roup 1.
tchA] interface Vlan-interface 1
tchA-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.