R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)
59
Task Command
Clear relay entries on the DHCP relay agent.
reset dhcp relay client-information [ interface
interface-type interface-number | ip ip-address
[ vpn-instance vpn-instance-name ] ]
Clear packet statistics on the DHCP relay agent.
reset dhcp relay statistics [ interface interface-type
interface-number ]
DHCP relay agent configuration examples
DHCP relay agent configuration example
Network requirements
As shown in Figure 23, configure the DHCP relay agent on Router A so that DHCP clients can obtain IP
addresses and other configuration parameters from the DHCP server on another subnet.
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 "DHCP server configuration
e
x
amples."
Figure 23 Network diagram
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
<RouterA> system-view
[RouterA] dhcp enable
# Enable the DHCP relay agent on GigabitEthernet 2/1/1.
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] dhcp select relay
# Specify the IP address of the DHCP server on the relay agent.
[RouterA-GigabitEthernet2/1/1] dhcp relay server-address 10.1.1.1
Router B
DHCP server
Router A
DHCP relay agent
DHCP client DHCP client
DHCP clientDHCP client
GE2/1/2
10.1.1.2/24
GE2/1/1
10.10.1.1/24
GE1/0/1
10.1.1.1/24