6.0.3

Table Of Contents
Procedure
u
At the command prompt, enter the command esxcli network ip ipsec sa add with one or more of the
following options.
Option Description
--sa-source= source address
Required. Specify the source address.
--sa-destination= destination
address
Required. Specify the destination address.
--sa-mode= mode
Required. Specify the mode, either transport or tunnel.
--sa-spi= security parameter index
Required. Specify the security parameter index. The security parameter
index identies the security association to the host. It must be a
hexadecimal with a 0x prex. Each security association you create must
have a unique combination of protocol and security parameter index.
--encryption-algorithm=
encryption algorithm
Required. Specify the encryption algorithm using one of the following
parameters.
n
3des-cbc
n
aes128-cbc
n
null ( provides no encryption)
--encryption-key= encryption key
Required when you specify an encryption algorithm. Specify the
encryption key. You can enter keys as ASCII text or as a hexadecimal with
a 0x prex.
--integrity-algorithm=
authentication algorithm
Required. Specify the authentication algorithm, either hmac-sha1 or hmac-
sha2-256.
--integrity-key= authentication
key
Required. Specify the authentication key. You can enter keys as ASCII text
or as a hexadecimal with a 0x prex.
--sa-name=name
Required. Provide a name for the security association.
Example: New Security Association Command
The following example contains extra line breaks for readability.
esxcli network ip ipsec sa add
--sa-source 3ffe:501:ffff:0::a
--sa-destination 3ffe:501:ffff:0001:0000:0000:0000:0001
--sa-mode transport
--sa-spi 0x1000
--encryption-algorithm 3des-cbc
--encryption-key 0x6970763672656164796c6f676f336465736362636f757432
--integrity-algorithm hmac-sha1
--integrity-key 0x6970763672656164796c6f67736861316f757432
--sa-name sa1
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
vSphere Security
240 VMware, Inc.