432
[RouterA-pbr6-lab1-20] quit
# Configure IPv6 interface PBR by applying policy
lab1
to GigabitEthernet 3/0.
[RouterA] interface gigabitethernet 3/0
[RouterA-GigabitEthernet3/0] ipv6 address 192::1 64
[RouterA-GigabitEthernet3/0] undo ipv6 nd ra halt
[RouterA-GigabitEthernet3/0] ripng 1 enable
[RouterA-GigabitEthernet3/0] ipv6 policy-based-route lab1
[RouterA-GigabitEthernet3/0] return
2.
Configure RIPng on Router B.
<RouterB> system-view
[RouterB] ripng 1
[RouterB-ripng-1] quit
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] ipv6 address 150::2 64
[RouterB-GigabitEthernet1/0] ripng 1 enable
[RouterB-GigabitEthernet1/0] quit
[RouterB] interface gigabitethernet 2/0
[RouterB-GigabitEthernet2/0] ipv6 address 151::2 64
[RouterB-GigabitEthernet2/0] ripng 1 enable
[RouterB-GigabitEthernet2/0] 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>