446
[RouterA] route-policy static2ripng deny node 0
[RouterA-route-policy-static2ripng-0] if-match ipv6 address prefix-list a
[RouterA-route-policy-static2ripng-0] quit
[RouterA] route-policy static2ripng permit node 10
[RouterA-route-policy-static2ripng-10] quit
# Enable RIPng and apply routing policy
static2ripng
to filter redistributed static routes on Router
A.
[RouterA] ripng
[RouterA-ripng-1] import-route static route-policy static2ripng
2.
Configure Router B:
# Configure the IPv6 address of GigabitEthernet 1/0.
<RouterB> system-view
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] ipv6 address 10::2 32
# Enable RIPng.
[RouterB] ripng
[RouterB-ripng-1] quit
# Enable RIPng on the interface.
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] ripng 1 enable
[RouterB-GigabitEthernet1/0] quit
Verifying the configuration
# Display the RIPng routing table on Router B.
[RouterB] display ripng 1 route
Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer FE80::7D58:0:CA03:1 on GigabitEthernet1/0
Destination 10::/32,
via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 18 secs
Destination 20::/32,
via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 8 secs
Destination 40::/32,
via FE80::7D58:0:CA03:1, cost 1, tag 0, A, 3 secs