IMPORTANT:
IMPORTANT:
Configuring ISAKMP Crypto Maps
configure
context ctxt_name
crypto map map_name ipsec-isakmp
set peer agw_address
set isakmp preshared-key isakmp_key
set mode { aggressive | main }
set pfs { group1 | group2 | group5 }
set transform-set transform_name
match address acl_name [ preference ]
match crypto-group group_name { primary | secondary }
end
Verifying the ISAKMP Crypto Map Configuration
show crypto map [ tag map_name | type ipsec-isakmp ]
Map Name : test_map2
========================================
Payload :
crypto_acl2: permit
tcp host 10.10.2.12 neq 35 any
Crypto map Type : ISAKMP
IKE Mode : MAIN
IKE pre-shared
key : 3fd32rf09svc
Perfect Forward Secrecy : Group2
Hard Lifetime :
28800 seconds
4608000 kilobytes
Number of Transforms: 1
Transform : test1
AH : none
ESP: md5
3des-cbc
Encaps mode: TUNNEL
Local Gateway: Not
Set
Remote Gateway: 192.168.1.1
CAUTION:
IMPORTANT:
Configuring Dynamic Crypto Maps
Verifying the Dynamic Crypto Map Configuration
show crypto map [ tag map_name | map-type
ipsec-dynamic ]
Map Name : test_map3
========================================
Crypto map Type : ISAKMP (Dynamic)
IKE Mode : MAIN
IKE pre-shared
key :
Perfect Forward Secrecy : Group2
Hard Lifetime :
28800 seconds
4608000 kilobytes
Transform : test1
AH : none
ESP: md5
3des-cbc
Encaps mode: TUNNEL
Local Gateway: Not
Set
Remote Gateway: Not
Set
CAUTION:
IMPORTANT:
IMPORTANT:
Configuring Manual Crypto Maps
configure
context ctxt_name
crypto map map_name ipsec-manual
set peer agw_address
match address acl_name [ preference ]
set transform-set transform_name
set session-key { inbound | outbound } { ah ah_spi [ encrypted ] key ah_key | esp esp_spi [ encrypted ] cipher encryption_key [ encrypted ] authenticator auth_key }
end
Verifying the Manual Crypto Map Configuration
show crypto map [ tag map_name | map-type
ipsec-manual ]
Map Name : test_map
========================================
Payload :
crypto_acl1: permit
tcp host 1.2.3.4 gt 30 any
Crypto map Type : manual(static)
Transform : test1
Encaps mode: TUNNEL
Transmit Flow
Protocol : ESP
SPI : 0x102 (258)
Hmac : md5, key: 23d32d23cs89
Cipher : 3des-cbc, key: 1234asd3c3d
Receive Flow
Protocol : ESP
SPI : 0x101 (257) Hmac : md5, key: 008j90u3rjp
Cipher : 3des-cbc, key: sdfsdfasdf342d32
Local Gateway: Not
Set
Remote Gateway: 192.168.1.40
CAUTION:
IMPORTANT:
IMPORTANT:
Applying a Crypto Map to an Interface