Configuring Interface Pbr Based On Packet Type - HPE FlexNetwork HSR6800 Configuration Manual

Layer 3-ip routing configuration guide
Hide thumbs Also See for FlexNetwork HSR6800:
Table of Contents

Advertisement

[RouterC-Serial2/2/1] ip address 1.1.3.2 255.255.255.0
[RouterC-Serial2/2/1] quit
Verify the configuration:
4.
# 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
GigabitEthernet 2/1/1 through Serial 2/2/0. Router A forwards other packets according to the routing
table.
Figure 85 Network diagram
Router B
S2/2/0
1.1.2.2/24
1.1.2.1/24
Router A
Host A
10.110.0.20/24
Gateway: 10.110.0.10
Configuration procedure
Configure Router A:
1.
# 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
# Configure Node 5 for policy aaa to forward TCP packets through Serial 2/2/0.
[RouterA] policy-based-route aaa permit node 5
[RouterA-pbr-aaa-5] if-match acl 3101
[RouterA-pbr-aaa-5] apply output-interface serial 2/2/0
Figure
85, configure interface PBR on Router A to forward all TCP packets received on
Router C
S2/2/1
1.1.3.2/24
S2/2/0
S2/2/1
1.1.3.1/24
GE2/1/1
10.110.0.10/24
Subnet
10.110.0.0/24
Host B
273

Advertisement

Table of Contents
loading

Table of Contents