use

crypto-ikev1/ikev2-peer commands

Associates IKEv1/IKEv2 policy with the IKEv1/IKEv2 peer respectively

Supported on the following devices:

Syntax

use ikev1-policy <IKEV1-POLICY-NAME>
use ikev2-policy <IKEV2-POLICY-NAME>

Parameters

use ikev1-policy <IKEV1-POLICY-NAME>
use ikev1-policy <IKEV1-POLICY-NAME> Specify the IKEv1 policy name.

The local IKEv1 policy and the peer IKEv1 policy must have matching group settings for successful negotiations.

use ikev2-policy <IKEV2-POLICY-NAME>
use ikev2-policy <IKEV2-POLICY-NAME> Specify the IKEv2 policy name.

The local IKEv2 policy and the peer IKEv2 policy must have matching group settings for successful negotiations.

Example

nx9500-6C8809(config-profile-default-ap8533-ikev1-peer-peer1)#use ikev1-policy test-ikev1policy

nx9500-6C8809(config-profile-default-ap8533-ikev1-peer-peer1)#show context
 crypto ikev1 peer peer1
  ip address 172.16.10.12
  remoteid dn SanJose
  localid email bob@examplecompany.com
  use ikev1-policy test-ikev1policy
nx9500-6C8809(config-profile-default-ap8533-ikev1-peer-peer1)#

nx9500-6C8809(config-profile-default-ap8533-ikev2-peer-peer1)#use ikev2-policy test-ikev2policy

nx9500-6C8809(config-profile-default-ap8533-ikev2-peer-peer1)#show context
 crypto ikev2 peer peer1
  remoteid address 157.235.209.63
  use ikev2-policy test-ikev2policy
nx9500-6C8809(config-profile-default-ap8533-ikev2-peer-peer1)#