R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)

57
Task Command
Remarks
Display information about the
configuration of a specific 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 the DHCP
relay agent.
display dhcp relay statistics [ server-group
{ group-id | all } ] [ | { begin | exclude |
include } regular-expression ]
Available in any
view.
Clear packet statistics on the DHCP
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 Figure 27, the DHCP relay agent forwards DHCP messages between DHCP clients and the
DHCP server.
Because the DHCP relay agent and server are on different subnets, you need to configure static or
dynamic routing to make them reachable to each other.
DHCP server configuration is also required to guarantee the client-server communication through the
DHCP relay agent. For DHCP server configuration information, see "Configuring the DHCP server."
Figure 27 Network diagram
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# A d d D H C P s e r v e r 10 .1.1.1 i n t o D H C P s e r v e r g r o u p 1
[RouterA] dhcp relay server-group 1 ip 10.1.1.1
# Enable the DHCP relay agent on Ethernet 1/1.
Router B
DHCP server
Router A
DHCP relay agent
DHCP client DHCP client
DHCP clientDHCP client
Eth1/2
10.1.1.2/24
Eth1/1
10.10.1.1/24
Eth1/1
10.1.1.1/24