1-9
Cisco ASA Series CLI Configuration Guide
Chapter 1 Configuring LAN-to-LAN IPsec VPNs
Creating a Crypto Map and Applying It To an Interface
Step 1
To set the connection type to IPsec LAN-to-LAN, enter the
tunnel-group
command. The syntax is
tunnel-group
name
type
type,
where
name
is the name you assign to the tunnel group, and
type
is the
type of tunnel. The tunnel types as you enter them in the CLI are:
•
remote-access
(IPsec, SSL, and clientless SSL remote access)
•
ipsec-l2l
(IPsec LAN to LAN)
In the following example the name of the tunnel group is the IP address of the LAN-to-LAN peer,
10.10.4.108.
hostname(config)#
tunnel-group 10.10.4.108 type ipsec-l2l
hostname(config)#
Note
LAN-to-LAN tunnel groups that have names that are not an IP address can be used only if the
tunnel authentication method is Digital Certificates and/or the peer is configured to use
Aggressive Mode.
Step 2
To set the authentication method to preshared key, enter the ipsec-attributes mode and then enter the
ikev1
pre-shared-key
command to create the preshared key. You need to use the same preshared key on
both ASAs for this LAN-to-LAN connection.
The key is an alphanumeric string of 1-128 characters.
In the following example the IKEv1 preshared key is 44kkaol59636jnfx:
hostname(config)#
tunnel-group 10.10.4.108 ipsec-attributes
hostname(config-tunnel-ipsec)#
pre-shared-key 44kkaol59636jnfx
In the next example, the IKEv2 preshared key is configured also as 44kkaol59636jnfx:
hostname(config-tunnel-ipsec)#
ikev2 local-authentication pre-shared-key 44kkaol59636jnfx
Note
You must configure ikev2 remote-authentication pre-shared-key or a certificate to complete the
authentication.
Step 3
Save your changes.
hostname(config)#
write memory
hostname(config)#
To verify that the tunnel is up and running, use the
show vpn-sessiondb summary
,
show vpn-sessiondb
detail l2l
, or
show cry ipsec sa
command.
Creating a Crypto Map and Applying It To an Interface
Crypto map entries pull together the various elements of IPsec security associations, including the
following:
•
Which traffic IPsec should protect, which you define in an access list.
•
Where to send IPsec-protected traffic, by identifying the peer.
•
What IPsec security applies to this traffic, which a transform set specifies.
•
The local address for IPsec traffic, which you identify by applying the crypto map to an interface.
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: ......