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

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

Advertisement

[RouterA-pbr-aaa-5] quit
# Configure interface PBR by applying the policy aaa on GigabitEthernet 2/1/1.
[RouterA] interface GigabitEthernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ip address 10.110.0.10 255.255.255.0
[RouterA-GigabitEthernet2/1/1] ip policy-based-route aaa
[RouterA-GigabitEthernet2/1/1] quit
# Configure the IP addresses of the serial interfaces.
[RouterA] interface serial 2/2/0
[RouterA-Serial2/2/0] ip address 1.1.2.1 255.255.255.0
[RouterA-Serial2/2/0] quit
[RouterA] interface serial 2/2/1
[RouterA-Serial2/2/1] ip address 1.1.3.1 255.255.255.0
Configure Router B:
2.
# 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 the serial interface.
[RouterB] interface serial 2/2/0
[RouterB-Serial2/2/0] ip address 1.1.2.2 255.255.255.0
Configure Router C:
3.
# Configure a static route to subnet 10.110.0.0/24.
<RouterC> system-view
[RouterC] ip route-static 10.110.0.0 24 1.1.3.1
# Configure the IP address of the serial interface.
[RouterC] interface serial 2/2/1
[RouterC-Serial2/2/1] ip address 1.1.3.2 255.255.255.0
Verify the configuration:
4.
Configure the IP address 10.110.0.20/24 for Host A, and specify its gateway address as
10.110.0.10.
On Host A, Telnet to Router B that is directly connected to Router A. The operation succeeds.
On Host A, Telnet to Router C that is directly connected to Router A. The operation fails.
Ping Router C from Host A. The operation succeeds.
Telnet uses TCP and ping uses ICMP. The preceding results show that all TCP packets
received on GigabitEthernet 2/1/1 of Router A are forwarded through Serial 2/2/0, and other
packets are forwarded through Serial 2/2/1. The interface PBR configuration is effective.

Configuring interface PBR based on packet length

Network requirements
As shown in
GigabitEthernet 2/1/1 of Router A as follows:
Forwards packets with a length of 64 to 100 bytes to the next hop 150.1.1.2/24.
Forwards packets with a length of 101 to 1000 to the next hop 151.1.1.2/24.
All other packets are forwarded according to the routing table.
Figure
86, configure interface PBR to guide the forwarding of packets received on
274

Advertisement

Table of Contents
loading

Table of Contents