430
[RouterA] interface gigabitethernet 2/0
[RouterA-GigabitEthernet2/0] ipv6 address 2::1 64
[RouterA-GigabitEthernet2/0] ripng 1 enable
[RouterA-GigabitEthernet2/0] quit
# Configure ACL 3001 to match TCP packets.
[RouterA] acl ipv6 number 3001
[RouterA-acl6-adv-3001] rule permit tcp
[RouterA-acl6-adv-3001] quit
# Configure Node 5 for policy
aaa
to forward TCP packets to next hop 1::2.
[RouterA] ipv6 policy-based-route aaa permit node 5
[RouterA-pbr6-aaa-5] if-match acl 3001
[RouterA-pbr6-aaa-5] apply next-hop 1::2
[RouterA-pbr6-aaa-5] quit
# Configure IPv6 interface PBR by applying policy
aaa
to GigabitEthernet 3/0.
[RouterA] interface gigabitethernet 3/0
[RouterA-GigabitEthernet3/0] ipv6 address 10::2 64
[RouterA-GigabitEthernet3/0] undo ipv6 nd ra halt
[RouterA-GigabitEthernet3/0] ripng 1 enable
[RouterA-GigabitEthernet3/0] ipv6 policy-based-route aaa
[RouterA-GigabitEthernet3/0] quit
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 1::2 64
[RouterB-GigabitEthernet1/0] ripng 1 enable
[RouterB-GigabitEthernet1/0] quit
3.
Configure RIPng on Router C.
<RouterC> system-view
[RouterC] ripng 1
[RouterC-ripng-1] quit
[RouterC] interface gigabitethernet 2/0
[RouterC-GigabitEthernet2/0] ipv6 address 2::2 64
[RouterC-GigabitEthernet2/0] ripng 1 enable
[RouterC-GigabitEthernet2/0] 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.