R0106-HP MSR Router Series Layer 3 - IP Routing Configuration Guide(V7)

463
[RouterA-GigabitEthernet2/1/1] undo ipv6 nd ra halt
[RouterA-GigabitEthernet2/1/1] ripng 1 enable
[RouterA-GigabitEthernet2/1/1] ipv6 policy-based-route aaa
[RouterA-GigabitEthernet2/1/1] quit
2. Configure RIPng on Router B.
<RouterB> system-view
[RouterB] ripng 1
[RouterB-ripng-1] quit
[RouterB] interface serial 2/1/0
[RouterB-Serial2/1/0] ipv6 address 1::2 64
[RouterB-Serial2/1/0] ripng 1 enable
[RouterB-Serial2/1/0] quit
3. Configure RIPng on Router C.
<RouterC> system-view
[RouterC] ripng 1
[RouterC-ripng-1] quit
[RouterC] interface serial 2/1/1
[RouterC-Serial2/1/1] ipv6 address 2::2 64
[RouterC-Serial2/1/1] ripng 1 enable
[RouterC-Serial2/1/1] quit
Verifying the configuration
# Enable IPv6 and configure the IPv6 address 10::3 for Host A.
C:\>ipv6 install
Installing...
Succeeded.
C:\>ipv6 adu 4/10::3
# 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 results show the following:
All TCP packets arriving on GigabitEthernet 2/1/1 of Router A are forwarded to the next hop 1::2.
Other packets are forwarded through Serial 2/1/1.
The IPv6 interface PBR configuration is effective.
Packet length-based IPv6 interface PBR configuration example
Network requirements
As shown in Figure 107, configure IPv6 interface PBR to guide the forwarding of packets received on
GigabitEthernet 2/1/1 of Router A as follows:
Set the next hop of packets with a length of 64 to 100 bytes to 150::2/64.
Set the next hop of packets with a length of 101 to 1000 bytes to 151::2/64.
Router A forwards other packets according to the routing table.