R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide
414
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 IPv6 interface PBR configuration is effective.
Configuring IPv6 interface PBR based on packet length
Network requirements
As shown in Figure 115 , configure IPv6 interface PBR to guide the forwarding of packets received on
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
1. Configure Router A:
# 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










