Table Of Contents
Real-Time Resolution for IPSec Tunnel Peer
Restrictions for Real-Time Resolution for IPSec Tunnel Peer
Information About Real-Time Resolution for IPSec Tunnel Peer
Benefits of Real-Time Resolution Via Secure DNS
How to Configure Real-Time Resolution
Configuring Real-Time Resolution for IPSec Peers
Configuration Examples for Real-Time Resolution
Configuring Real-Time Resolution for an IPSec Peer: Example
Real-Time Resolution for IPSec Tunnel Peer
After a user specifies a host name (instead of an IP address) for remote IP Security (IPSec) peer, the Real-Time Resolution for IPSec Tunnel Peer feature allows the host name to be domain name server (DNS) resolved before the router establishes the IPSec tunnel. Thus, the router can immediately discover whether the IP address of the peer has changed.
Feature History for Real-Time Resolution for IPSec Tunnel Peer
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for Real-Time Resolution for IPSec Tunnel Peer
•
Information About Real-Time Resolution for IPSec Tunnel Peer
•
How to Configure Real-Time Resolution
•
Configuration Examples for Real-Time Resolution
Restrictions for Real-Time Resolution for IPSec Tunnel Peer
Secure DNS Requirement
It is recommended that you use this feature only with secure DNS and when the DNS responses can be authenticated. Otherwise, an attacker can spoof or forge DNS responses and have access to Internet Key Exchange (IKE) authentication data, such as a certificate. If an attacker has a certificate that is trusted by the initiating host, the attacker can successfully establish Phase 1 IKE security association (SA), or the attacker can try to guess the preshared key that is shared between the initiator and the actual responder.
DNS Initiator
DNS names resolution for remote IPSec peers will work only if they are used as an initiator. The first packet that is to be encrypted will trigger a DNS lookup; after the DNS lookup is complete, subsequent packets will trigger IKE.
Information About Real-Time Resolution for IPSec Tunnel Peer
To configure real-time resolution for your IPSec peer, you should understand the following concept:
•
Benefits of Real-Time Resolution Via Secure DNS
Benefits of Real-Time Resolution Via Secure DNS
When specifying the host name of a remote IPSec peer via the set peer command, you can also issue the dynamic keyword, which defers DNS resolution of the host name until right before the IPSec tunnel has been established. Deferring resolution enables the Cisco IOS software to detect whether the IP address of the remote IPSec peer has changed. Thus, the software can contact the peer at the new IP address.
If the dynamic keyword is not issued, the host name is resolved immediately after it is specified. So, the Cisco IOS software cannot detect an IP address change and, therefore, attempts to connect to the IP address that it previously resolved.
DNS resolution assures users that their established IPSec tunnel is secure and authenticated.
How to Configure Real-Time Resolution
This section contains the following procedure:
•
Configuring Real-Time Resolution for IPSec Peers
Configuring Real-Time Resolution for IPSec Peers
Use this task to configure a router to perform real-time DNS resolution with a remote IPSec peer; that is, the host name of peer is resolved via a DNS lookup right before the router establishes a connection (an IPSec tunnel) with the peer.
Prerequisites
Before creating a crypto map, you should perform the following tasks:
•
Define Internet Security Association Key Management Protocol (ISAKMP) policies.
•
Define IPSec transform sets.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
crypto map map-name seq-num ipsec-isakmp
4.
match address access-list-id
5.
set peer {host-name [dynamic] | ip-address}
6.
set transform-set transform-set-name1 [transform-set-name2...transform-set-name6]
DETAILED STEPS
Troubleshooting Tips
To display crypto map configuration information, use the show crypto map command.
What to Do Next
You need to apply a crypto map set to each interface through which IPSec traffic will flow. Applying the crypto map set to an interface instructs the router to evaluate all the interface's traffic against the crypto map set and to use the specified policy during connection or security association (SA) negotiation on behalf of traffic to be protected by crypto.
Configuration Examples for Real-Time Resolution
This section provides the following configuration example:
•
Configuring Real-Time Resolution for an IPSec Peer: Example
Configuring Real-Time Resolution for an IPSec Peer: Example
Figure 1 and the following example illustrate how to create a crypto map that configures the host name of a remote IPSec peer to DNS resolved via a DNS lookup right before the Cisco IOS software attempts to establish a connection with that peer.
Figure 1 Real-Time Resolution Sample Topology
! Configure the initiating router.hostname a.cisco.comip domain name cisco.comip name server 10.0.0.1!crypto map secure_b 10 ipsec-isakmpmatch address 140set peer b.cisco.com dynamicset transform-set xsetinterface serial1ip address 30.0.0.1crypto map secure_baccess-list 140 permit ...!! Configure the responding router (the remote IPSec peer).hostname b.cisco.com!crypto map secure_a 10 ipsec-isakmpmatch address 150set peer 30.0.0.1set transform-setinterface serial0/1ip address 40.0.0.1crypto map secure_aaccess-list 150 ...! DNS server configurationb.cisco.com 40.0.0.1 # the address of serial0/1 of b.cisco.comAdditional References
The following sections provide references related to Real-Time Resolution for IPSec Tunnel Peer.
Related Documents
Standards
MIBs
MIBs MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents the following modified command. All other commands used with this feature are documented in the Cisco IOS Release 12.3 T command reference publications.
set peer (IPSec)
To specify an IP Security (IPSec) peer in a crypto map entry, use the set peer command in crypto map configuration mode. To remove an IPSec peer from a crypto map entry, use the no form of this command.
set peer {host-name [dynamic] | ip-address}
no set peer {host-name [dynamic] | ip-address}
Syntax Description
Defaults
No peer is defined
Command Modes
Crypto map configuration
Command History
Usage Guidelines
Use this command to specify an IPSec peer for a crypto map.
This command is required for all static crypto maps. If you are defining a dynamic crypto map (with the crypto dynamic-map command), this command is not required, and in most cases is not used (because, in general, the peer is unknown).
For crypto map entries created with the crypto map map-name seq-num ipsec-isakmp command, you can specify multiple peers by repeating this command. The peer that packets are actually sent to is determined by the last peer that the router heard from (received either traffic or a negotiation request from) for a given data flow. If the attempt fails with the first peer, Internet Key Exchange (IKE) tries the next peer on the crypto map list.
For crypto map entries created with the crypto map map-name seq-num ipsec-manual command, you can specify only one IPSec peer per crypto map. If you want to change the peer, you must first delete the old peer and then specify the new peer.
You can specify the remote IPSec peer by its host name only if the host name is mapped to the peer's IP address in a DNS or if you manually map the host name to the IP address with the ip host command.
The dynamic Keyword
When specifying the host name of a remote IPSec peer via the set peer command, you can also issue the dynamic keyword, which defers DNS resolution of the host name until right before the IPSec tunnel has been established. Deferring resolution enables the Cisco IOS software to detect whether the IP address of the remote IPSec peer has changed. Thus, the software can contact the peer at the new IP address.
If the dynamic keyword is not issued, the host name is resolved immediately after it is specified. So, the Cisco IOS software cannot detect an IP address change and, therefore, attempts to connect to the IP address that it previously resolved.
Examples
The following example shows a crypto map configuration when IKE will be used to establish the security associations. In this example, a SA could be set up to either the IPSec peer at 10.0.0.1 or the peer at 10.0.0.2.
crypto map mymap 10 ipsec-isakmpmatch address 101set transform-set my_t_set1set peer 10.0.0.1set peer 10.0.0.2\The following example shows how to configure a router to perform real-time DNS resolution with a remote IPSec peer; that is, the host name of peer is resolved via a DNS lookup right before the router establishes a connection (an IPSec tunnel) with the peer.
crypto map secure_b 10 ipsec-isakmpmatch address 140set peer b.cisco.com dynamicset transform-set xsetinterface serial1ip address 30.0.0.1crypto map secure_baccess-list 140 permit ...Related Commands
Copyright © 2003 Cisco Systems, Inc. All rights reserved.

