436
Restart OSPFv3 route redistribution.
reset
ospfv3
[ process-id ]
redistribution
Clear OSPFv3 statistics.
reset ospfv3
[ process-id ]
statistics
Clear OSPFv3 logs.
reset ospfv3
[ process-id ]
event-log
[
lsa-flush
|
peer
|
spf
]
OSPFv3 configuration examples
OSPFv3 stub area configuration example
Network requirements
As shown in Figure 100:
• Enable OSPFv3 on all switches.
• Split the AS into three areas.
• Configure Switch B and Switch 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 100 Network diagram
Configuration procedure
1. Configure IPv6 addresses for interfaces. (Details not shown.)
2. Configure basic OSPFv3:
# On Switch A, enable OSPFv3 and specify the router ID as 1.1.1.1.
<SwitchA> system-view
[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
# On Switch B, enable OSPFv3 and specify the router ID as 2.2.2.2.
<SwitchB> system-view
OSPFv3
Area 0
OSPFv3
Area 1
OSPFv3
Area 2
Switch A
Vlan-int100
2001::2/64
Vlan-int100
2001::1/64
Vlan-int300
2001:3::1/64
Vlan-int200
2001:1::2/64
Switch C
Vlan-int400
2001:2::1/64
Vlan-int400
2001:2::2/64
Switch B
Vlan-int200
2001:1::1/64
Switch D