OSPFv3 configuration examples
Configuring OSPFv3 areas
Network requirements
In
Figure
78, all switches run OSPFv3. The AS is split into three areas, in which, Switch B and Switch C
act as ABRs to forward routing information between areas.
Configure Area 2 as a stub area in order to reduce LSAs in the area without affecting route reachability.
Figure 78 Network diagram
Configuration procedure
Configure IPv6 addresses for interfaces. (Details not shown.)
1.
Configure OSPFv3 basic functions:
2.
# Configure Switch A.
<SwitchA> system-view
[SwitchA] ipv6
[SwitchA] ospfv3
[SwitchA-ospfv3-1] router-id 1.1.1.1
[SwitchA-ospfv3-1] quit
[SwitchA] interface vlan-interface 300
[SwitchA-Vlan-interface300] ospfv3 1 area 1
[SwitchA-Vlan-interface300] quit
[SwitchA] interface vlan-interface 200
[SwitchA-Vlan-interface200] ospfv3 1 area 1
[SwitchA-Vlan-interface200] quit
# Configure Switch B.
<SwitchB> system-view
[SwitchB] ipv6
[SwitchB] ospfv3
[SwitchB-ospfv3-1] router-id 2.2.2.2
[SwitchB-ospfv3-1] quit
[SwitchB] interface vlan-interface 100
[SwitchB-Vlan-interface100] ospfv3 1 area 0
[SwitchB-Vlan-interface100] quit
220