385
OSPFv3 configuration examples
OSPFv3 stub area configuration example
Network requirements
As shown in
Figure 88
:
•
Enable OSPFv3 on all routers.
•
Split the AS into three areas.
•
Configure Router B and Router C as ABRs to forward routing information between areas.
•
Configure Area 2 as a stub area to reduce LSAs in the area without affecting route reachability.
Figure 88
Network diagram
Configuration procedure
1.
Configure IPv6 addresses for interfaces. (Details not shown.)
2.
Configure basic OSPFv3:
# Configure Router A: enable OSPFv3 and specify the router ID as 1.1.1.1.
<RouterA> system-view
[RouterA] ospfv3 1
[RouterA-ospfv3-1] router-id 1.1.1.1
[RouterA-ospfv3-1] quit
[RouterA] interface gigabitethernet 1/0
[RouterA-GigabitEthernet1/0] ospfv3 1 area 1
[RouterA-GigabitEthernet1/0] quit
[RouterA] interface gigabitethernet 2/0
[RouterA-GigabitEthernet2/0] ospfv3 1 area 1
[RouterA-GigabitEthernet2/0] quit
# Configure Router B: enable OSPFv3 and specify the router ID as 2.2.2.2.
<RouterB> system-view
[RouterB] ospfv3 1
[RouterB-ospfv3-1] router-id 2.2.2.2
[RouterB-ospfv3-1] quit
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] ospfv3 1 area 0