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

Table Of Contents
537
<Firewall> system-view
[Firewall] acl number 3101
[Firewall-acl-adv-3101] rule permit tcp
[Firewall-acl-adv-3101] quit
# Define Node 5 of policy aaa so that TCP packets are forwarded via GigabitEthernet 0/2.
[Firewall] policy-based-route aaa permit node 5
[Firewall-pbr-aaa-5] if-match acl 3101
[Firewall-pbr-aaa-5] apply ip-address next-hop 1.1.2.2
[Firewall-pbr-aaa-5] quit
# Apply the policy aaa to GigabitEthernet 0/1.
[Firewall] interface gigabitethernet 0/1
[Firewall-GigabitEthernet0/1] ip address 10.110.0.10 255.255.255.0
[Firewall-GigabitEthernet0/1] ip policy-based-route aaa
[Firewall-GigabitEthernet0/1] quit
# Configure the IP addresses of GigabitEthernet 0/2.
[Firewall] interface gigabitethernet 0/2
[Firewall-GigabitEthernet0/2] ip address 1.1.2.1 255.255.255.0
[Firewall-GigabitEthernet0/2] quit
[Firewall] interface gigabitethernet 0/3
[Firewall-GigabitEthernet0/3] ip address 1.1.3.1 255.255.255.0
2. Configure Router B.
# Configure a static route to subnet 10.110.0.0/24.
<RouterB> system-view
[RouterB] ip route-static 10.110.0.0 24 1.1.2.1
# Configure the IP address of GigabitEthernet 0/1.
[RouterB] interface gigabitethernet 0/1
[RouterB-GigabitEthernet0/1] ip address 1.1.2.2 255.255.255.0
[RouterB-GigabitEthernet0/1] quit
3. Configure Router A.
# Configure a static route to subnet 10.110.0.0/24.
<RouterA> system-view
[RouterA] ip route-static 10.110.0.0 24 1.1.3.1
# Configure the IP address of GigabitEthernet 0/1.
[RouterA] interface gigabitethernet 0/1
[RouterA-GigabitEthernet0/1] ip address 1.1.3.2 255.255.255.0
[RouterA-GigabitEthernet0/1] quit
4. Verify the configuration.
Configure the IP address of Host A as 10.110.0.20/24, and the gateway as 10.110.0.10.
On Host A, telnet to Router B (1.1.2.2) that is directly connected to Firewall. The operation
succeeds.
On Host A, telnet to Router A (1.1.3.2) that is directly connected to Firewall. The operation fails.
Ping Router A from Host A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets arriving on
GigabitEthernet 0/1 of Firewall are forwarded via GigabitEthernet 0/2, and other packets are
forwarded via GigabitEthernet 0/3. The PBR configuration is effective.