319
# Configure IPv4 advanced ACL 3101 to identify traffic between Switch A and Switch B.
[SwitchA] acl advanced 3101
[SwitchA-acl-ipv4-adv-3101] rule 0 permit ip source 1.1.1.1 0 destination 2.2.2.2 0
[SwitchA-acl-ipv4-adv-3101] quit
# Create an IPsec transform set named
tran1
.
[SwitchA] ipsec transform-set tran1
# Set the packet encapsulation mode to
tunnel
.
[SwitchA-ipsec-transform-set-tran1] encapsulation-mode tunnel
# Use the ESP protocol for the IPsec transform set.
[SwitchA-ipsec-transform-set-tran1] protocol esp
# Specify the encryption and authentication algorithms.
[SwitchA-ipsec-transform-set-tran1] esp encryption-algorithm des-cbc
[SwitchA-ipsec-transform-set-tran1] esp authentication-algorithm sha1
[SwitchA-ipsec-transform-set-tran1] quit
# Create a PKI entity named
entity1
.
[SwitchA] pki entity entity1
# Set the common name to
switcha
for the PKI entity.
[SwitchA-pki-entity-entity1] common-name switcha
[SwitchA-pki-entity-entity1] quit
# Create a PKI domain named
domain1
.
[SwitchA] pki domain domain1
# Set the certificate request mode to
auto
and set the password to
123
for certificate revocation.
[SwitchA-pki-domain-domain1] certificate request mode auto password simple 123
# Set an MD5 fingerprint for verifying the validity of the CA root certificate.
[SwitchA-pki-domain-domain1] root-certificate fingerprint md5
50c7a2d282ea710a449eede6c56b102e
# Specify the trusted CA 8088.
[SwitchA-pki-domain-domain1] ca identifier 8088
# Specify the URL of the registration server for certificate request through the SCEP protocol.
This example uses a URL of
http://192.168.222.1:446/eadbf9af4f2c4641e685f7a6021e7b298373feb7.
[SwitchA-pki-domain-domain1] certificate request url
http://192.168.222.1:446/eadbf9af4f2c4641e685f7a6021e7b298373feb7
# Specify the CA to accept certificate requests.
[SwitchA-pki-domain-domain1] certificate request from ca
# Specify the PKI entity for certificate request as
entity1
.
[SwitchA-pki-domain-domain1] certificate request entity entity1
# Specify RSA key pair
rsa1
with the
general
purpose for certificate request.
[SwitchA-pki-domain-domain1] public-key rsa general name rsa1
[SwitchA-pki-domain-domain1] quit
# Create an IKEv2 profile named
profile1
.
[SwitchA] ikev2 profile profile1
# Specify the local authentication method as RSA signatures.
[SwitchA-ikev2-profile-profile1] authentication-method local rsa-signature
# Specify the remote authentication method as RSA signatures.
[SwitchA-ikev2-profile-profile1] authentication-method remote rsa-signature
# Specify PKI domain
domain1
for the IKEv2 profile.