R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Configuration Guide

337
Configuring OSPFv3 route redistribution
Network requirements
As shown in Figure 99, Router A, Router B, and Router C are in Area 2.
OSPFv3 process 1 and OSPFv3 process 2 are enabled on Router B. Router B communicates with
Router A and Router C through OSPFv3 process 1 and OSPFv3 process 2, respectively.
Configure OSPFv3 process 2 to redistribute direct routes and the routes from OSPFv3 process 1 on
Router B, and set the default metric for redistributed routes to 3. Router C can then learn the routes
destined for 1::0/64 and 2::0/64, and Router A cannot learn the routes destined for 3::0/64 or
4::0/64.
Figure 99 Network diagram
Configuration procedure
1. Configure IPv6 addresses for interfaces. (Details not shown.)
2. Configure OSPFv3 basic functions:
# Enable OSPFv3 process 1 on Router A.
<RouterA> system-view
[RouterA] ipv6
[RouterA] ospfv3 1
[RouterA-ospfv3-1] router-id 1.1.1.1
[RouterA-ospfv3-1] quit
[RouterA] interface GigabitEthernet 2/1/2
[RouterA-GigabitEthernet2/1/2] ospfv3 1 area 2
[RouterA-GigabitEthernet2/1/2] quit
[RouterA] interface GigabitEthernet 2/1/1
[RouterA-GigabitEthernet2/1/1] ospfv3 1 area 2
[RouterA-GigabitEthernet2/1/1] quit
# Enable OSPFv3 process 1 and OSPFv3 process 2 on Router B.
<RouterB> system-view
[RouterB] ipv6
[RouterB] ospfv3 1
[RouterB-ospfv3-1] router-id 2.2.2.2
[RouterB-ospfv3-1] quit
[RouterB] interface GigabitEthernet 2/1/2
[RouterB-GigabitEthernet2/1/2] ospfv3 1 area 2
[RouterB-GigabitEthernet2/1/2] quit
[RouterB] ospfv3 2