6.7

Table Of Contents
Remove an IPsec Security Association
You can remove a security association using the ESXCLI vSphere CLI command.
Prerequisites
Verify that the security association you want to use is not currently in use. If you try to remove a security
association that is in use, the removal operation fails.
Procedure
u
At the command prompt, enter the command
esxcli network ip ipsec sa remove --sa-name security_association_name
List Available IPsec Security Policies
You can list available security policies using the ESXCLI vSphere CLI command.
Procedure
u
At the command prompt, enter the command esxcli network ip ipsec sp list
The host displays a list of all available security policies.
Create an IPSec Security Policy
Create a security policy to determine when to use the authentication and encryption parameters set in a
security association. You can add a security policy using the ESXCLI vSphere CLI command.
Prerequisites
Before creating a security policy, add a security association with the appropriate authentication and
encryption parameters as described in Add an IPsec Security Association.
Procedure
u
At the command prompt, enter the command esxcli network ip ipsec sp add with one or more
of the following options.
Option Description
--sp-source= source address Required. Specify the source IP address and prefix length.
--sp-destination= destination
address
Required. Specify the destination address and prefix length.
--source-port= port Required. Specify the source port. The source port must be a number between 0
and 65535.
--destination-port= port Required. Specify the destination port. The source port must be a number
between 0 and 65535.
vSphere Security
VMware, Inc. 209