--- title: "crypto ipsec" slug: "crypto-ipsec" tags: ["Reference", "CMS 11.x", "EX 11.x", "HX 10.x", "FX 11.x", "AX 11.x", "NX 11.x", "IVX 11.x", "Customer", "Network Security"] updated: 2026-08-04T17:22:22Z published: 2026-08-04T17:22:22Z canonical: "docs.trellix.com/crypto-ipsec" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # crypto ipsec > [!NOTE] > Note > > This command is now deprecated. It will be removed in a future release. ### Description Configures IPSec cryptographic settings. Use the **no** form of this command to clear the settings. ### Syntax **crypto ipsec** {**ike** | **peer**} **crypto ipsec ike** [**clear sa** {**peer** {*IPv4 address or IPv6 address* | **any local***IPv4 address or IPv6 address*}} | **restart**] **crypto ipsec peer***paddress***local***laddress***keying** {**ike** | **manual**} **crypto ipsec peer***paddress***local***laddress***keying manual** {<**cr**> | **auth** | **encrypt** | **local-spi** | **mode** | **remote-spi**} **crypto ipsec peer***paddress***local***laddress***keying ike auth** {**hmac-md5** | **hmac-sha1** | **null**} **crypto ipsec peer***paddress***local***laddress***keying ike encrypt** {**3des-cbc** | **aes-cbc** | **null**} **crypto ipsec peer***paddress***local***laddress***keying ike exchange-mode** {**main** | **aggressive** | **base**} **crypto ipsec peer** *paddress***local***laddress***keying ike lifetime***seconds* **crypto ipsec peer***paddress***local***laddress***keying ike mode** {**transport** | **tunnel**} **crypto ipsec peer** *paddress***local***laddress***keying ike pfs-group***gname* **crypto ipsec peer***paddress***local***laddress***keying ike preshared-key***kname* **crypto ipsec peer***paddress***local***laddress***keying ike prompt-preshared-key** **crypto ipsec peer***paddress***local***laddress***enable** [**no**] **crypto ipsec peer***paddress***local***laddress* ### User role Admin. ### Parameters **ike** Manages the IKE (ISAKMP) process or database state. - **clear sa**—Clears IKE-generated ISAKMP and IPsec security associations (peers may be affected). - **peer** *IPv4 address or IPv6 address*—Clears security associations for the specified IKE peer (remote peers are affected). - **any local** *IPv4 address or IPv6 address*—Clears security associations for all IKE peerings with a specific local address (remote peers are affected). - **restart**—Restarts the IKE (ISAKMP) daemon (clears all IKE state; peers may be affected). **peer** paddress Configures an IPv4 or IPv6 IPsec cryptographic peer IP address. **local** laddress Local IP address. **manual** Configures IPsec using manual keys via the following options: - **auth**—Configures the authentication algorithm for this IPsec peering. - **crypto ipsec peer** *paddress* **local** *laddress* **keying manual auth** {**hmac-md5** | **hmac-sha1** | **null**} - hmac-md5 authentication, hmac-sha1 authentication, or null (encryption without authentication). - **encrypt**—Configures the encryption algorithm for this IPsec peering. - **crypto ipsec peer** *paddress* **local** *laddress* **keying manual encrypt** {**3des-cbc** | **aes-cbc** | **null**} - 3des-cbc encryption, aes-cbc encryption, or null (uses null encryption per RFC 2410). - **local-spi**—Configures the local SPI for this manual IPsec peering. - **mode**—Configures the peering mode for this IPsec peering. - **remote-spi**—Configures the remote SPI for this manual IPsec peering. **auth** {**hmac-md5** | **hmac-sha1**} Authentication algorithm. **encrypt** {**3des-cbc** | **aes-cbc** | **null**} Encryption algorithms. With the **null** option, encryption per RFC 2410 is still used for proposal. **exchange-mode** {**main** | **aggressive** | **base**} Internet Key Exchange (IKE) exchange mode for the IPsec peer (**main**, **aggressive**, or **base**). **lifetime** *seconds* Duration (seconds) of an IKE group for the IPsec peer. **mode** {**transport** | **tunnel**} Type of IPsec connection (**tunnel** or **transport**). **pfs-group** *gname* Name of the perfect forward secrecy (PFS) group for the IPsec peer. **preshared-key** kname Preshared key for authenticating the IPsec peer. **prompt-preshared-key** Indication that the system should prompt for the preshared key. The system prompts for the key when you press ENTER. **enable** Enables this IPSec peering. ### Example The following example assigns the main IKE exchange mode for the IPsec peer. ``` hostname (config) # crypto ipsec peer 192.168.5.4 local 192.168.4.3 exchange-mode main ``` [show crypto ipsec](/network-and-platform/docs/show-crypto-ipsec)