Dhcp relay agent configuration examples, Dhcp relay agent configuration example, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual
Page 75: Configuration procedure

64
To do…
Use the command…
Remarks
Display information about the
configuration of a specified DHCP
server group or all DHCP server groups
display dhcp relay server-group { group-id
| all } [ | { begin | exclude | include }
regular-expression ]
Available in any
view
Display packet statistics on relay agent
display dhcp relay statistics [ server-group
{ group-id | all } ] [ | { begin | exclude |
include } regular-expression ]
Available in any
view
Clear packet statistics from relay agent
reset dhcp relay statistics [ server-group
group-id ]
Available in user
view
DHCP relay agent configuration examples
DHCP relay agent configuration example
Network requirements
As shown in
, DHCP clients reside on network 10.10.1.0/24. The IP address of the DHCP server
is 10.1.1.1/24. Because the DHCP clients reside on a different network than the DHCP server, a DHCP
relay agent is deployed to forward messages between DHCP clients and the DHCP server.
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 the IP address of VLAN-interface 2 is
10.1.1.2/24.
Figure 31 Network diagram for DHCP relay agent
Configuration procedure
# Specify IP addresses for the interfaces (details not shown).
# Enable DHCP.
[SwitchA] dhcp enable
# Add DHCP server 10.1.1.1 into DHCP server group 1.
[SwitchA] dhcp relay server-group 1 ip 10.1.1.1
# Enable the DHCP relay agent on VLAN-interface 1.
[SwitchA] interface vlan-interface 1