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

Table Of Contents
541
The LAN port of Firewall is connected to the hosts, and the uplink port GigabitEthernet 0/1 is
connected to the Internet.
Subinterface 1 of GigabitEthernet 0/1 obtains its IP address through DHCP.
Configure Firewall to forward SNMP packets and SNMP traps through subinterface 1 of GigabitEthernet
0/1.
Figure 313 Network diagram
Configuration procedure
# Configure subinterface 1 of GigabitEthernet 0/1 (GigabitEthernet 0/1.1) to obtain its IP
address through DHCP.
<Firewall> system-view
[Firewall] interface gigabitethernet 0/1.1
[Firewall-GigabitEthernet0/1.1] ip address dhcp-alloc
[Firewall-GigabitEthernet0/1.1] vlan-type dot1q vid 1
[Firewall-GigabitEthernet0/1.1] quit
# Define ACL 3000 to match management packets (SNMP packets and SNMP traps).
[Firewall] acl number 3000
[Firewall-acl-adv-3000] rule 0 permit udp source-port eq snmp
[Firewall-acl-adv-3000] rule 5 permit udp destination-port eq snmptrap
[Firewall-acl-adv-3000] quit
# Define Node 1 of policy management, so that management packets are forwarded via
GigabitEthernet 0/1.1. (Because GigabitEthernet 0/1.1 obtains its IP address through DHCP and
thus the next hop address is unknown, you need to specify the gateway address learned through
DHCP as the next hop address.)
[Firewall] policy-based-route management permit node 1
[Firewall-pbr-management-1] if-match acl 3000
[Firewall-pbr-management-1] apply output-interface GigabitEthernet 0/1.1 ip-address
next-hop dhcpc
[Firewall-pbr-management-1] quit
# Apply policy management to Firewall.
[Firewall] ip local policy-based-route management
Configuration guidelines
When you configure a policy, follow these guidelines: