R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide
415
[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
[RouterA-pbr6-lab1-20] quit
# Configure IPv6 interface PBR by applying policy lab1 to GigabitEthernet 2/1/1.
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ipv6 address 192::1 64
[RouterA-GigabitEthernet2/1/1] undo ipv6 nd ra halt
[RouterA-GigabitEthernet2/1/1] ripng 1 enable
[RouterA-GigabitEthernet2/1/1] ipv6 policy-based-route lab1
[RouterA-GigabitEthernet2/1/1] return
2. Configure Router B:
# Configure RIPng.
<RouterB> system-view
[RouterB] ipv6
[RouterB] ripng 1
[RouterB-ripng-1] quit
[RouterB] interface serial 2/2/0
[RouterB-Serial2/2/0] ipv6 address 150::2 64
[RouterB-Serial2/2/0] ripng 1 enable
[RouterB-Serial2/2/0] quit
[RouterB] interface serial 2/2/1
[RouterB-Serial2/2/1] ipv6 address 151::2 64
[RouterB-Serial2/2/1] ripng 1 enable
[RouterB-Serial2/2/1] quit
[RouterB] interface loopback 0
[RouterB-LoopBack0] ipv6 address 10::1 128
[RouterB-LoopBack0] ripng 1 enable
3. Verify the configuration:
# Run the debugging ipv6 policy-based-route command on Router A.
<RouterA> debugging ipv6 policy-based-route
<RouterA> terminal debugging
<RouterA> terminal monitor
# Enable IPv6 on Host A and configure the IPv6 address of Host A as 192::3.
C:\>ipv6 install
Installing...
Succeeded.
C:\>ipv6 adu 4/192::3
# Ping Loopback 0 of Router B from Host A, and set the data length to 50 bytes.
C:\>ping -l 80 10::1
Pinging 10::1 with 80 bytes of data:










