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

388
# Configure the IP address of the serial port.
<RouterB> system-view
[RouterB] interface GigabitEthernet 0/2
[RouterB-GigabitEthernet0/2] ip address 1.1.3.2 255.255.255.0
[RouterB-GigabitEthernet0/2] quit
3. Verification
# 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
Reply from 1.1.3.2: bytes=56 Sequence=3 ttl=255 time=1 ms
Reply from 1.1.3.2: bytes=56 Sequence=4 ttl=255 time=1 ms
Reply from 1.1.3.2: bytes=56 Sequence=5 ttl=255 time=1 ms
--- 1.1.3.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets of Firewall are
forwarded via GigabitEthernet0/1, and other packets are forwarded via GigabitEthernet0/2. The PBR
configuration is effective.
Configuring interface PBR based on packet type
1. Network requirements
As shown in Figure 197, con
figure PBR on Firewall, so that TCP packets arriving on GigabitEthernet0/1
are forwarded via GigabitEthernet0/3 and other packets are forwarded according to the routing table.