R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

150
To do… Use the command…
Remarks
Display statistics information about
bindings of DHCP relay agents
display dhcp relay security
statistics
Available in any view
Display information about the
refreshing interval for entries of
dynamic IP-to-MAC bindings
display dhcp relay security tracker
Available in any view
Display information about the
configuration of a specified or all
DHCP server groups
display dhcp relay server-group
{ group-id | all
Available in any view
Display packet statistics on relay
agent
display dhcp relay statistics
[ server-group { group-id | all } ]
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
Network requirements
As shown in Figure 76, 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 with the DHCP server, a DHCP
relay agent is deployed to forward messages between DHCP clients and the DHCP server.
GigabitEthernet 0/1 of the DHCP relay agent (Firewall) connects to the subnet where DHCP clients reside.
The IP address of GigabitEthernet 0/1 is 10.10.1.1/24, and the IP address of GigabitEthernet 0/2 is
10 .1.1. 2 / 2 4 .
Figure 76 Network diagram for DHCP relay agent
Configuration procedure
# Specify IP addresses for the interfaces (omitted).
# Enable DHCP.
<Firewall> system-view
[Firewall] 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
[Firewall] dhcp relay server-group 1 ip 10.1.1.1
# Enable the DHCP relay agent on GigabitEthernet 0/1.
Router
DHCP server
Firewall
DHCP relay agent
DHCP client DHCP client
DHCP clientDHCP client
GE0/2
10.1.1.2/24
GE0/1
10.10.1.1/24
GE0/1
10.1.1.1/24