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

Table Of Contents
535
# Define Node 5 of policy aaa, so that TCP packets are forwarded via GigabitEthernet 0/1.
[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 policy aaa to Firewall.
[Firewall] ip local policy-based-route aaa
# Configure the IP addresses of the GigabitEthernet ports.
[Firewall] interface gigabitethernet 0/1
[Firewall-GigabitEthernet 0/1] ip address 1.1.2.1 255.255.255.0
[Firewall-GigabitEthernet 0/1] quit
[Firewall] interface gigabitethernet 0/2
[Firewall-GigabitEthernet 0/2] ip address 1.1.3.1 255.255.255.0
2. Configure Router A.
# Configure the IP address of GigabitEthernet 0/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 0/1
[RouterA-GigabitEthernet0/1] ip address 1.1.2.2 255.255.255.0
[RouterA-GigabitEthernet0/1] quit
3. Configure Router B.
# Configure the IP address of GigabitEthernet 0/1.
<RouterB> system-view
[RouterB] interface gigabitethernet 0/1
[RouterB-GigabitEthernet0/1] ip address 1.1.3.2 255.255.255.0
[RouterB-GigabitEthernet0/1] quit
4. Verify the configuration.
# Telnet to Router A (1.1.2.2/24) from Firewall. The operation succeeds.
<Firewall> telnet 1.1.2.2
Trying 1.1.2.2 ...
Press CTRL+K to abort
Connected to 1.1.2.2 ...
******************************************************************************
* Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************
# Telnet to Router B (1.1.3.2/24) from Firewall. The operation fails.
<Firewall> telnet 1.1.3.2
Trying 1.1.3.2 ...
Press CTRL+K to abort
Can't connect to the remote host!
# Ping Router B (1.1.3.2/24) from Firewall. The operation succeeds.
<Firewall> ping 1.1.3.2
PING 1.1.3.2: 56 data bytes, press CTRL_C to break
Reply from 1.1.3.2: bytes=56 Sequence=1 ttl=255 time=2 ms
Reply from 1.1.3.2: bytes=56 Sequence=2 ttl=255 time=1 ms