Configuring Ipv6 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

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 IPv6 interface PBR configuration is effective.

Configuring IPv6 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::2/64.
Forwards packets with a length of 101 to 1000 to the next hop 151::2/64.
All other packets are forwarded according to the routing table.
Figure 115 Network diagram
Configuration procedure
Configure Router A:
1.
# Configure RIPng.
<RouterA> system-view
[RouterA] ipv6
[RouterA] ripng 1
[RouterA-ripng-1] quit
[RouterA] interface serial 2/2/0
[RouterA-Serial2/2/0] ipv6 address 150::1 64
[RouterA-Serial2/2/0] ripng 1 enable
[RouterA-Serial2/2/0] quit
[RouterA] interface serial 2/2/1
[RouterA-Serial2/2/1] ipv6 address 151::1 64
[RouterA-Serial2/2/1] ripng 1 enable
[RouterA-Serial2/2/1] quit
# Configure Node 10 for policy lab1 to forward IPv6 packets with a length of 64 to 100 to the
next hop 150::2/64, and IPv6 packets with a length of 101 to 1000 bytes to the next hop
151::2/64.
[RouterA] ipv6 policy-based-route lab1 permit node 10
[RouterA-pbr6-lab1-10] if-match packet-length 64 100
[RouterA-pbr6-lab1-10] apply ipv6-address next-hop 150::2
[RouterA-pbr6-lab1-10] quit
[RouterA] ipv6 policy-based-route lab1 permit node 20
[RouterA-pbr6-lab1-20] if-match packet-length 101 1000
[RouterA-pbr6-lab1-20] apply ipv6-address next-hop 151::2
Figure
115, configure IPv6 interface PBR to guide the forwarding of packets received on
401

Advertisement

Table of Contents
loading

Table of Contents