R3721-F3210-F3171-HP High-End Firewalls Network Management Configuration Guide-6PW101

Table Of Contents
201
Figure 116 Network diagram
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# 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.
[Firewall] interface GigabitEthernet 0/1
[Firewall-GigabitEthernet 0/1] dhcp select relay
# Correlate GigabitEthernet 0/1 to DHCP server group 1.
[Firewall-GigabitEthernet 0/1] dhcp relay server-select 1
After the preceding configuration is complete, DHCP clients can obtain IP addresses and other network
parameters through the DHCP relay agent from the DHCP server. You can use the display dhcp relay
statistics command to view statistics of DHCP packets forwarded by DHCP relay agents. After you enable
address check of the DHCP relay agents with the dhcp relay address-check enable command, use the
display dhcp relay security command to view bindings of DHCP relay agents.
NOTE:
Because the DHCP relay agent and server are on different subnets, you must configure a static route or
dynamic routing protocol to make them reachable to each other.
Configurations on the DHCP server are also required to guarantee the client-server communication via
the DHCP relay agent. For DHCP server configuration information, see "Configuring DHCP server"
DHCP relay agent Option 82 support configuration example
Network requirements
As shown in Figure 116, enable Option 82 on the DHCP relay agent (Firewall).
Configure the handling strategy for DHCP requests containing Option 82 as replace.
Configure the padding content for the circuit ID sub-option as company001 and for the remote ID
sub-option as device001.
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