
1-10
Cisco ASA Series CLI Configuration Guide
Chapter 1 Configuring LAN-to-LAN IPsec VPNs
Creating a Crypto Map and Applying It To an Interface
For IPsec to succeed, both peers must have crypto map entries with compatible configurations. For two
crypto map entries to be compatible, they must, at a minimum, meet the following criteria:
•
The crypto map entries must contain compatible crypto access lists (for example, mirror image
access lists). If the responding peer uses dynamic crypto maps, the entries in the ASA crypto access
list must be “permitted” by the peer’s crypto access list.
•
The crypto map entries each must identify the other peer (unless the responding peer is using a
dynamic crypto map).
•
The crypto map entries must have at least one transform set in common.
If you create more than one crypto map entry for a given interface, use the sequence number (seq-num)
of each entry to rank it: the lower the seq-num, the higher the priority. At the interface that has the crypto
map set, the ASA evaluates traffic against the entries of higher priority maps first.
Create multiple crypto map entries for a given interface if either of the following conditions exist:
•
Different peers handle different data flows.
•
You want to apply different IPsec security to different types of traffic (to the same or separate peers),
for example, if you want traffic between one set of subnets to be authenticated, and traffic between
another set of subnets to be both authenticated and encrypted. In this case, define the different types
of traffic in two separate access lists, and create a separate crypto map entry for each crypto access
list.
To create a crypto map and apply it to the outside interface in global configuration mode, perform the
following steps in either single or multiple context mode:
Step 1
To assign an access list to a crypto map entry, enter the
crypto map match address
command.
The syntax is
crypto map
map-name seq-num
match address
aclname
. In the following example the
map name is abcmap, the sequence number is 1, and the access list name is
l2l_list
.
hostname(config)#
crypto map abcmap 1 match address l2l_list
hostname(config)#
Step 2
To identify the peer (s) for the IPsec connection, enter the
crypto map set peer
command.
The syntax is
crypto map
map-name seq-num
set peer
{
ip_address1
|
hostname1
}[...
ip_address10
|
hostname10
]. In the following example the peer name is 10.10.4.108.
hostname(config)#
crypto map abcmap 1 set peer 10.10.4.108
hostname(config)#
Step 3
To specify an IKEv1 transform set for a crypto map entry, enter the
crypto map ikev1 set transform-set
command.
The syntax is
crypto map
map-name seq-num
ikev1 set transform-set
transform-set-name
.
In the following example the transform set name is
FirstSet
.
hostname(config)#
crypto map abcmap 1 set transform-set FirstSet
hostname(config)#
Step 4
To specify an IKEv2 proposal for a crypto map entry, enter the
crypto map ikev2 set ipsec-proposal
command:
The syntax is
crypto map
map-name seq-num set
ikev2 ipsec-proposal
proposal-name
.
In the following example the proposal name is
secure
.
With the crypto map command, you can specify multiple IPsec proposals for a single map index. In that
case, multiple proposals are transmitted to the IKEv2 peer as part of the negotiation, and the order of the
proposals is determined by the administrator upon the ordering of the crypto map entry.
Summary of Contents for 5505 - ASA Firewall Edition Bundle
Page 28: ...Glossary GL 24 Cisco ASA Series CLI Configuration Guide ...
Page 61: ...P A R T 1 Getting Started with the ASA ...
Page 62: ......
Page 219: ...P A R T 2 Configuring High Availability and Scalability ...
Page 220: ......
Page 403: ...P A R T 2 Configuring Interfaces ...
Page 404: ......
Page 499: ...P A R T 2 Configuring Basic Settings ...
Page 500: ......
Page 533: ...P A R T 2 Configuring Objects and Access Lists ...
Page 534: ......
Page 601: ...P A R T 2 Configuring IP Routing ...
Page 602: ......
Page 745: ...P A R T 2 Configuring Network Address Translation ...
Page 746: ......
Page 845: ...P A R T 2 Configuring AAA Servers and the Local Database ...
Page 846: ......
Page 981: ...P A R T 2 Configuring Access Control ...
Page 982: ......
Page 1061: ...P A R T 2 Configuring Service Policies Using the Modular Policy Framework ...
Page 1062: ......
Page 1093: ...P A R T 2 Configuring Application Inspection ...
Page 1094: ......
Page 1191: ...P A R T 2 Configuring Unified Communications ...
Page 1192: ......
Page 1333: ...P A R T 2 Configuring Connection Settings and QoS ...
Page 1334: ......
Page 1379: ...P A R T 2 Configuring Advanced Network Protection ...
Page 1380: ......
Page 1475: ...P A R T 2 Configuring Modules ...
Page 1476: ......
Page 1549: ...P A R T 2 Configuring VPN ...
Page 1550: ......
Page 1965: ...P A R T 2 Configuring Logging SNMP and Smart Call Home ...
Page 1966: ......
Page 2059: ...P A R T 2 System Administration ...
Page 2060: ......
Page 2098: ...1 8 Cisco ASA Series CLI Configuration Guide Chapter 1 Troubleshooting Viewing the Coredump ...
Page 2099: ...P A R T 2 Reference ...
Page 2100: ......