Operation Manual – DHCP
H3C S5600 Series Ethernet Switches
Chapter 3 DHCP Relay Agent Configuration
3-10
3.4 DHCP Relay Agent Configuration Example
I. Network requirements
VLAN-interface 1 on the DHCP relay agent (Switch A) connects to the network where
DHCP clients reside. The IP address of VLAN-interface 1 is 10.10.1.1/24 and IP
address of VLAN-interface 2 is 10.1.1.2/24 that communicates with the DHCP server
10.1.1.1/24. As shown in the figure below, Switch A forwards messages between
DHCP clients and the DHCP server to assign IP addresses in subnet 10.10.1.0/24 to
the clients.
II. Network diagram
Switch B
DHCP server
Switch A
DHCP relay
DHCP client
DHCP client
DHCP client
DHCP client
Vlan-int2
10.1.1.2/24
Vlan-int1
10.10.1.1/24
Vlan-int2
10.1.1.1/24
Figure 3-4
Network diagram for DHCP relay agent
III. 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