The ipsec profile command applies an IPSec profile to a tunnel interface.
The undo ipsec profile command unbinds the IPSec profile from a tunnel interface.
By default, no IPSec profile is applied to a tunnel interface.
Parameter |
Description |
Value |
|---|---|---|
profile-name |
Specifies the name of an IPSec profile. |
The value is an existing IPSec profile name. |
alone |
Indicates that the tunnel is not backed up when the status of the IPSec profile is alone. |
- |
master |
Indicates that the status of the IPSec profile is master. |
- |
slave |
Indicates that the status of the IPSec profile is slave. |
- |
Prerequisites
An IPSec profile has been created using the ipsec profile (system view) command.
A tunnel interface has been created using the interface tunnel command, and the encapsulation mode of the tunnel interface has been set to GRE or IPSec using the tunnel-protocol command.
Precautions
A tunnel interface can be bound to only one IPSec profile. Before binding the tunnel interface to another IPSec profile, run the undo ipsec profile command to unbind the IPSec profile from the tunnel interface.
An IPSec profile is applied only to one tunnel interface. Before applying the IPSec profile to another interface, unbind the IPSec profile from the tunnel interface.
For IPSec hot standby in load balancing mode, you need to configure the status of the IPSec profile to be master, slave or alone.