394
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ipv6 address 192::1 64
[RouterA-Ethernet1/1] undo ipv6 nd ra halt
[RouterA-Ethernet1/1] ripng 1 enable
[RouterA-Ethernet1/1] ipv6 policy-based-route lab1
[RouterA-Ethernet1/1] return
2.
Configure RIPng on Router B.
<RouterB> system-view
[RouterB] ripng 1
[RouterB-ripng-1] quit
[RouterB] interface serial 2/0
[RouterB-Serial2/0] ipv6 address 150::2 64
[RouterB-Serial2/0] ripng 1 enable
[RouterB-Serial2/0] quit
[RouterB] interface serial 2/1
[RouterB-Serial2/1] ipv6 address 151::2 64
[RouterB-Serial2/1] ripng 1 enable
[RouterB-Serial2/1] quit
[RouterB] interface loopback 0
[RouterB-LoopBack0] ipv6 address 10::1 128
[RouterB-LoopBack0] ripng 1 enable
Verifying the configuration
# Execute the
debugging ipv6 policy-based-route
command on Router A.
<RouterA> debugging ipv6 policy-based-route
<RouterA> terminal logging level 7
<RouterA> terminal monitor
# Install IPv6 protocol suites on Host A, and configure the IPv6 address 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 64 bytes.
C:\>ping –n 1 -l 64 10::1
Pinging 10::1 with 64 bytes of data:
Reply from 10::1: time=1ms
Ping statistics for 10::1:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
The debugging information about IPv6 PBR displayed on Router A is as follows:
<RouterA>
*Jun 26 13:04:33:519 2012 RouterA PBR6/7/PBR Forward Info: -MDC=1; Policy:lab1, Node:
10,match succeeded.