R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide

283
<RouterC> system-view
[RouterC] interface serial 2/2/1
[RouterC-Serial2/2/1] ip address 1.1.3.2 255.255.255.0
[RouterC-Serial2/2/1] quit
4. Verify the configuration:
# Telnet to Router B (1.1.2.2/24) from Router A. The operation succeeds.
# Telnet to Router C (1.1.3.2/24) from Router A. The operation fails.
# Ping Router C (1.1.3.2/24) from Router A. The operation succeeds.
Telnet uses TCP, and ping uses ICMP. The preceding results show that all TCP packets of Router A
are forwarded through Serial 2/2/0, and other packets are forwarded through Serial 2/2/1. The
local PBR configuration is effective.
Configuring interface PBR based on packet type
Network requirements
As shown in Figure 85, configure interface PBR on Router A to forward all TCP packets received on
GigabitEthernet 2/1/1 through Serial 2/2/0. Router A forwards other packets according to the routing
table.
Figure 85 Network diagram
Configuration procedure
1. Configure Router A:
# Configure ACL 3101 to match TCP packets.
<RouterA> system-view
[RouterA] acl number 3101
[RouterA-acl-adv-3101] rule permit tcp
[RouterA-acl-adv-3101] quit
Router A
GE2/1/1
10.110.0.10/24
S2/2/0
1.1.2.1/24
S2/2/1
1.1.3.1/24
Subnet
10.110.0.0/24
S2/2/0
1.1.2.2/24
S2/2/1
1.1.3.2/24
Router B Router C
Host A Host B
10.110.0.20/24
Gateway: 10.110.0.10