395
OSPFv3 Process 1 with Router ID 4.4.4.4
Area: 0.0.0.0
-------------------------------------------------------------------------
Router ID Pri State Dead-Time InstID Interface
1.1.1.1 100 Full/DR 00:00:30 0 GE1/0
2.2.2.2 0 2-Way/DROther 00:00:37 0 GE1/0
3.3.3.3 2 Full/BDR 00:00:31 0 GE1/0
The output shows that Router A becomes the DR.
OSPFv3 route redistribution configuration example
Network requirements
As shown in
Figure 91
:
•
Router A, Router B, and Router C are in Area 2.
•
OSPFv3 process 1 and OSPFv3 process 2 run on Router B. Router B communicates with Router A
and Router C through OSPFv3 process 1 and OSPFv3 process 2.
•
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 91
Network diagram
Configuration procedure
1.
Configure IPv6 addresses for interfaces. (Details not shown.)
2.
Configure basic OSPFv3:
# Enable OSPFv3 process 1 on Router A.
<RouterA> system-view
[RouterA] ospfv3 1
[RouterA-ospfv3-1] router-id 1.1.1.1
[RouterA-ospfv3-1] quit
[RouterA] interface gigabitethernet 2/0
[RouterA-GigabitEthernet2/0] ospfv3 1 area 2
[RouterA-GigabitEthernet2/0] quit
[RouterA] interface gigabitethernet 1/0
[RouterA-GigabitEthernet1/0] ospfv3 1 area 2
[RouterA-GigabitEthernet1/0] quit