Perform the following operations on the switch that runs OSPFv3.
To ensure device forwarding, configure OSPFv3 IPSec
on all devices running OSPFv3.
Procedure
Use an SA to authenticate packets in a specified OSPFv3
process.
Run system-view
The system view is displayed.
Run ospfv3 [ process-id ]
The OSPFv3 process view is displayed.
Run ipsec sasa-name
An SA is configured in the OSPFv3 process.
By default, no SA is configured in the OSPFv3 process.
An OSPFv3 process can be associated with multiple OSPFv3 areas.
An SA configured in an OSPFv3 process can be used in the associated
areas.
Use an SA to authenticate packets in a specified OSPFv3
area.
Run system-view
The system view is displayed.
Run ospfv3 [ process-id ]
The OSPFv3 process view is displayed.
Run areaarea-id
The OSPFv3 area view is displayed.
Run ipsec sasa-name
An SA is configured in the OSPFv3 area.
By default, no SA is configured in the OSPFv3 area.
The SA configured on an OSPFv3 area takes precedence
over that configured in an OSPFv3 process.
Use an SA to authenticate packets sent and received by
an interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
(Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
Run ospfv3 ipsec sasa-name
An SA is configured on the
interface.
By default, no SA is configured on the OSPFv3 interface.
The SA configured on an OSPFv3 interface takes
precedence over that configured in an OSPFv3 process or an OSPFv3
area.
Use an SA to authenticate packets sent
and received on a virtual link.
Run system-view
The system view is displayed.
Run ospfv3 [ process-id ]
The OSPFv3 process view is displayed.
Run areaarea-id
The OSPFv3 area view is displayed.
Run vlink-peerrouter-idipsec sasa-name
An SA is configured on the virtual link.
The SA configured on a virtual link takes
precedence over that configured in an OSPFv3 process or OSPFv3 area
0.
Use an SA to authenticate packets sent
and received on a sham link.
Run system-view
The system view is displayed.
Run ospfv3 [ process-id ]
The OSPFv3 process view is displayed.
Run areaarea-id
The OSPFv3 area view is displayed.
Run sham-linksource-addressdestination-addressipsec sasa-name
An SA
is configured on the sham link.
The SA configured on a sham link takes precedence
over that configured in an OSPFv3 process or OSPFv3 area 0.