Guest

Cisco Catalyst 6500 Series Switches

IPSec VPN Acceleration Services Module Installation and Configuration Note

Table Of Contents

IPsec VPN Acceleration Services Module Installation and Configuration Note

Contents

Understanding How the VPN Module Works

Overview

Catalyst Switch Outside Ports and Inside Ports

VPN Module Outside Port and Inside Port

Port VLAN and Interface VLAN

Supported Features

Supported Features in Release 12.2(9)YO4 and Release 12.2(14)SY

Supported Features in Release 12.2(14)SY

Supported Features in Release 12.2(17b)SXA

Supported Features in Release 12.2(18)SXD

Supported Features in Release 12.2(18)SXD1

Supported Features in Release 12.2(18)SXE

Supported Features in Release 12.2(18)SXF

Modules Supported with the VPN Module in Releases 12.2(17b)SXA and 12.2(17d)SXB

Hardware and Software Requirements

Software Requirements

Hardware Requirements

Front Panel Description

Installing and Removing the VPN Module

Safety Overview

Required Tools

Removing a VPN Module

Installing a VPN Module

Verifying the Installation

Configuring a VPN Using the VPN Module

Hardware- and Software-Based Cryptographic Modes

Transitioning In and Out of Hardware-Based Cryptographic Mode

Effects of Exiting the Hardware-Based Cryptographic Mode on Existing IPsec SAs

Configuring the VPN Module Using the crypto engine slot Command

Configuration Summaries

Access Port Mode Summary

Routed Port Mode Summary

Trunk Port Mode Summary

VPN Module Feature Configuration Guidelines and Configuration Procedures

Interaction with Other Features

Preventing VPN Module Misconfigurations

Miscellaneous Guidelines

Handling Multicast Traffic

Configuring MTU Settings

Configuring Trunk Ports

Configuring the VPN Module Inside Port and Outside Port

Using Multiple VPN Modules in a Chassis

Using IPsec Stateful Failover and the VPN Module

Using IPsec NAT Transparency

Using TopN Acceleration

Using IPsec Anti-Replay Window Size Expansion

Using Easy-VPN Client

Using Dead-Peer-Detection

Using WAN Interfaces

Using Look-Ahead Fragmentation

Using GRE Tunneling

Using QoS

Using Per-Crypto Map IPsec Security Association (SA) Idle Timers

Using Sequenced ACLs

Using VRF-Aware IPsec

Using VPN Module-to-Module Failover

Using DMVPN

Using Deny Policies in ACLs

Using the Invalid SPI Recovery Protocol

Port Configuration Procedures

Configuring a VPN Access Port Connection

Configuring a VPN Routed Port Connection

Configuring a VPN Trunk Port Connection

Displaying the VPN Running State

Configuring VPN Module-to-Module Failover

Configuration Examples

Access Ports

Catalyst Switch 1 (Access Port)

Catalyst Switch 2 (Access Port)

Routed Ports

Catalyst Switch 1 (Routed Port)

Catalyst Switch 2 (Routed Port)

Trunk Ports

Catalyst Switch 1 (Trunk Port)

Catalyst Switch 2 (Trunk Port)

ATM Ports

Catalyst Switch 1 (ATM Port)

Catalyst Switch 2 (ATM Port)

Frame Relay Ports

Catalyst Switch 1 (Frame Relay Port)

Catalyst Switch 2 (Frame Relay Port)

GRE Tunneling

Catalyst Switch 1

Catalyst Switch 2

HSRP

Active Catalyst Switch Configuration

Standby Catalyst Switch Configuration

Remote Catalyst Switch Configuration

QoS

Switch 1 Configuration

Switch 2 Configuration

Related Documentation

Obtaining Documentation and Submitting a Service Request


IPsec VPN Acceleration Services Module Installation and Configuration Note


Product Number: WS-SVC-IPSEC-1

This publication describes how to install and configure the IPsec Virtual Private Network (VPN) Acceleration Services Module in the Catalyst 6500 series switches and Cisco 7600 series routers.


Tip When configuring policy-based routing (PBR) with a Supervisor Engine 2 and a VPN module installed, you must ensure that your PBR configuration is done correctly. If PBR is not configured correctly, all traffic might be handled by the MSFC2 rather than being hardware-switched. Refer to the following URL for detailed information on configuring PBR:

http://www-tac.cisco.com/Support_Library/Hardware/Cat6000/hwfib-native-pbr.html



NoteThroughout this publication, the IPsec VPN Acceleration Services Module is referred to as the VPN module.

Throughout this publication, the term crypto is used to refer to cryptographic.

Throughout this publication, except where specifically differentiated, the term supervisor engine refers to Supervisor Engine 1, Supervisor Engine 2, and Supervisor Engine 720. Additionally, the term Multilayer Switch Feature Card (MSFC) refers to MSFC, MSFC2, and MSFC3.

The VPN module does not support TACACS+ authentication for IPsec. (CSCee33200)



Note For information on the latest caveats and updates for the VPN module, refer to the following publications:

Cisco IOS Release 12.2(9)YO4 or later release notes at this URL: http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/relnotes/ol_2864.htm

Cisco IOS Release 12.2(14)SY or later release notes at this URL: http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/relnotes/ol_3975.htm

Cisco IOS Release 12.2(17b)SXA or later release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm

Cisco IOS Release 12.2(18)SXD or later release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm

Cisco IOS Release 12.2(18)SXD1 or later release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm

Cisco IOS Release 12.2(18)SXE or later release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm

Cisco IOS Release 12.2(18)SXF or later release notes at this URL:
http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SXF/native/release/notes/OL_4164.html


Contents

This publication consists of these sections:

Understanding How the VPN Module Works

Supported Features

Modules Supported with the VPN Module in Releases 12.2(17b)SXA and 12.2(17d)SXB

Hardware and Software Requirements

Front Panel Description

Installing and Removing the VPN Module

Configuring a VPN Using the VPN Module

Configuring VPN Module-to-Module Failover

Configuration Examples

Related Documentation

Obtaining Documentation and Submitting a Service Request

Understanding How the VPN Module Works

These sections describe the functionality of the VPN module:

Overview

Catalyst Switch Outside Ports and Inside Ports

VPN Module Outside Port and Inside Port

Port VLAN and Interface VLAN

Overview

The VPN module is a Gigabit Ethernet IPsec cryptographic module that you can install in the
Catalyst 6500 series switches and Cisco 7600 series routers. The VPN module provides bump-in-the-wire (BITW) IPsec implementation using VLANs.


Note BITW is an IPsec implementation that starts egress packet processing after the IP stack has finished with the packet and completes ingress packet processing before the IP stack receives the packet.


Configuring VPNs using the VPN module is similar to configuring VPNs on routers running Cisco IOS software. When you configure VPNs with the VPN module, you attach crypto maps to VLANs (using interface VLANs); when you configure VPNs on routers running Cisco IOS software, you configure individual interfaces.


Note With the VPN module, crypto maps are still attached to individual interfaces but the set of interfaces allowed is restricted to "interface VLANs."


When you configure a VPN on the Cisco routers, a packet is sent to a routed interface that is associated with an IP address. If the interface has an attached crypto map, the software checks that the packet is on an access control list (ACL) that is specified by the crypto map. If a match occurs, the packet is transformed (encrypted) before it is routed to the appropriate IPsec peer; otherwise, the packet is routed in the clear (unencrypted) state.

When you configure the VPN module, the same cryptographic operations are performed as on Cisco routers. The VPN module's implementation of VPN is generally the same as on Cisco routers other than the use of interface VLANs and some configuration guidelines that are specific to the VPN module (for details, see the "VPN Module Feature Configuration Guidelines and Configuration Procedures" section).


Note For detailed information on Cisco IOS IPsec cryptographic operations and policies, refer to the "IP Security and Encryption" section of the Cisco IOS Security Configuration Guide, Release 12.2.

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fsecur_c/fipsenc/index.htm


When you configure the VPN module on the Catalyst 6500 series switches and Cisco 7600 series routers, you ensure that all packets coming from or going to the Internet pass through the VPN module. The VPN module has an extensive set of policies that validate a packet before the packet is sent onto the local (trusted) LAN. The VPN module can use multiple Fast Ethernet or Gigabit Ethernet ports on other Catalyst 6500 series modules to connect to the Internet through WAN routers. Packets that are received from the WAN routers pass through the VPN module for IPsec processing.

On the local LAN side, traffic between the LAN ports can be routed or bridged on multiple Fast Ethernet or Gigabit Ethernet ports. Because the local LAN traffic is not encrypted or decrypted, it does not pass though the VPN module.

The VPN module does not maintain routing information, route, or change the MAC header of a packet (except for the VLAN ID from one VLAN to another).

Catalyst Switch Outside Ports and Inside Ports

The Fast Ethernet or Gigabit Ethernet ports on the Catalyst 6500 series switch and Cisco 7600 series routers that connect to the WAN routers are referred to as Catalyst switch outside ports. These ports connect the local LAN to the Internet or to remote sites. Cryptographic policies are applied to the Catalyst switch outside ports.

The Fast Ethernet or Gigabit Ethernet ports on the Catalyst 6500 series switch and Cisco 7600 series routers that connect to the local LAN are referred to as Catalyst switch inside ports.

The VPN module sends encrypted packets to the Catalyst switch outside ports and decrypted packets to the Policy Feature Card 2 (PFC2) for Layer-3 forwarding to the Catalyst switch inside ports.

VPN Module Outside Port and Inside Port

The VPN module appears to the CLI as a module with two Gigabit Ethernet ports. The VPN module has no external connectors; the Gigabit Ethernet ports connect the VPN module to the switch backplane and Switch Fabric Module (if installed).

One Gigabit Ethernet port handles all the traffic going to and coming from the Catalyst switch outside ports. This port is referred to as the VPN module outside port. The other Gigabit Ethernet port handles all traffic going to and coming from the local LAN or inside ports. This port is referred to as the VPN module inside port.


Note For detailed information on configuration guidelines and restrictions for the VPN module outside and inside port, see the "VPN Module Feature Configuration Guidelines and Configuration Procedures" section.


Port VLAN and Interface VLAN

Your VPN configuration can have one or more Catalyst switch outside ports. To handle the packets from multiple Catalyst switch outside ports, you need to direct the packets from multiple Catalyst switch outside ports to the VPN module outside port by placing the Catalyst switch outside ports in a VLAN with the outside port of the VPN module. This VLAN is referred to as the port VLAN. The port VLAN is a Layer 2-only VLAN. You do not configure Layer 3 addresses or features on this VLAN; the packets within the port VLAN are bridged by the PFC2.

Before the router can forward the packets using the correct routing table entries, the router needs to know which interface that a packet was received on. For each port VLAN, you need to create another VLAN so that the packets from every Catalyst switch outside port are presented to the router with the corresponding VLAN ID. This VLAN contains only the VPN module inside port and is referred to as the interface VLAN. The interface VLAN is a Layer 3-VLAN. You configure the Layer 3 address and Layer 3 features, such as ACLs and the crypto map, to the interface VLAN.

After you create and configure the port VLAN and the interface VLAN, you tie the VLANs together using the crypto connect vlan command. See the "Configuring a VPN Using the VPN Module" section for detailed information. Figure 1 shows the port VLAN and interface VLAN configurations.

Figure 1 Port VLAN and Interface VLAN Configuration Example

Port VLAN 501 and port VLAN 502 are the port VLANs that are associated with the Catalyst switch outside ports W1 and W2.

Interface VLAN 1 and interface VLAN 2 are the interface VLANs that correspond to port VLAN 501 and port VLAN 502.

You configure the IP address, ACLs, and crypto map that apply to the Catalyst switch outside port W1 on interface VLAN 1. You configure the features that apply to the Catalyst switch outside port W2 on interface VLAN 2.

Packets coming from the WAN through port W1 (port W1 belongs to port VLAN 501) are directed by the PFC2 to the VPN module outside port. The VPN module decrypts the packets and changes the VLAN to interface VLAN 1 and then presents the packet to the router through the VPN module inside port. The PFC2 then routes the packet to the proper destination.

Packets going from the LAN to the outside ports are first routed by the PFC2. Based on the route, the PFC2 routes the packets to one of the interface VLANs and directs the packet to the VPN module inside port. The VPN module applies the cryptographic policies that are configured on the corresponding interface VLAN, encrypts the packet, changes the VLAN ID to the corresponding port VLAN, and sends the packet to the Catalyst switch outside port through the VPN module outside port.

Supported Features

These sections list the supported features for the VPN module:

Supported Features in Release 12.2(9)YO4 and Release 12.2(14)SY

Supported Features in Release 12.2(14)SY

Supported Features in Release 12.2(17b)SXA

Supported Features in Release 12.2(18)SXD

Supported Features in Release 12.2(18)SXD1

Supported Features in Release 12.2(18)SXE

Supported Features in Release 12.2(18)SXF


Note Software crypto is not supported in any release for the VPN module.


Supported Features in Release 12.2(9)YO4 and Release 12.2(14)SY

The VPN module supports the following features in Cisco IOS Release 12.2(9)YO4 and later releases and Cisco IOS Release 12.2(14)SY and later releases:

IPsec support through Cisco IOS software and the VPN module

Certificate Authorities/Public Key Infrastructure (CA/PKI) support

Tunneling protocols

IPsec (IPv4) tunnel and transport modes (RFC 2401)

IPsec encryption/decryption

DES/3DES

HMAC-SHA-1

HMAC-MD5

Internet Key Exchange (IKE) acceleration

Perfect Forward Secrecy (PFS)

RSA encryption

RSA signature

Diffie-Hellman groups 1, 2, 5

Interoperability—Interoperable with all Cisco IOS and appliance platforms

Capacity

8000 tunnels (no IKE keepalive, no Dead-Peer-Detection [DPD])

5000 tunnels (no IKE keepalive, DPD okay)

2000 tunnels (IKE keepalive)


Note DPD is supported in Cisco IOS Release 12.2(14)SY or later releases.



Note Capacities are typically higher when IKE keepalive uses DPD.


Configuration, management, and reporting

Existing Cisco IOS IPsec CLI (one new configuration command, crypto connect vlan)

Existing standard IPsec network management

VPN Device Manager (VDM) (requires VPN software release 1.2)


Note VDM contains only basic IPsec support and cannot be used to configure multiple VPN modules or VPN module features added in Cisco IOS Release 12.2(14)SY.


For complete configuration details for VDM, refer to this URL:
http://www.cisco.com//univercd/cc/td/doc/product/software/ios121/121newft/121limit/121e/121e6/vdm_e.htm

Supported Features in Release 12.2(14)SY

The VPN module supports the following features in Cisco IOS Release 12.2(14)SY and later releases:

Interchassis active/standby IPsec stateful failover

Easy-VPN clients (the Easy-VPN client version should be 3.6 or later)

IPsec NAT transparency

Onboard acceleration of VDM TopN queries for IPsec

IPsec anti-replay window size expansion from 32 entries to 64 entries

DPD

Hot Standby Router Protocol (HSRP) and reverse route injection (RRI)

Onboard GRE acceleration

QoS

Support for up to 10 VPN modules per chassis

IPsec over the FlexWAN module (WS-X6182-2PA) with the following supported port adapters:

PA-4T+: 4-port serial port adapter, enhanced

PA-T3: 1-port T3

PA-E3: 1-port E3

PA-T3+: 1-port T3 enhanced

PA-2T3+: 2-port T3 enhanced

PA-MC-2T1: 2-port multichannel T1

PA-MC-8T1: 8-port multichannel T1

PA-MC-T3: 1-port multichannel T3

PA-MC-E3: 1-port multichannel E3

PA-A3-T3: T3 ATM

PA-A3-OC3MM: OC3 ATM multimode

PA-A3-OC3SMI: OC3 ATM single-mode IR

PA-A3-OC3SML: OC3 ATM single-mode LR

PA-POS-OC3MM: OC3 POS multimode

PA-POS-OC3SMI: OC3 POS single-mode IR

PA-POS-OC3SML: OC3 POS single-mode LR

PA-H: 1-port HSSI

PA-2H: 2-port HSSI

You may have a VPN module in the same chassis with the following service modules:

Firewall Services Module (WS-SVC-FWM-1-K9)

Intrusion Detection System Module 2 (WS-SVC-IDS2BUNK9)

Network Analysis Module 1 (WS-SVC-NAM-1), Network Analysis Module 2 (WS-SVC-NAM-2)


Note You can install a maximum of four service modules of any one kind per chassis (such as four Firewall Services Modules and four Network Analysis Modules per chassis). The exception is the Intrusion Detection System Module 2 (IDSM2); you can only install two IDSM2s per chassis.


Supported Features in Release 12.2(17b)SXA

In addition to supporting the features that are listed in the "Supported Features in Release 12.2(9)YO4 and Release 12.2(14)SY" and "Supported Features in Release 12.2(14)SY" sections, the VPN module supports the following features in Cisco IOS Release 12.2(17b)SXA and later releases:

New crypto engine slot configuration command (for details, see the "Configuring the VPN Module Using the crypto engine slot Command" section)

VPN module-to-module failover

Support for Supervisor Engine 720

Support for the Optical Services Modules (OSMs)

Support for the following 48-port 10/100BASE-TX switching modules:

WS-X6148-RJ-45

WS-X6148-RJ-45V

WS-X6148-RJ-21

WS-X6148-RJ-21V


Note For complete details on Cisco IOS Release 12.2(17b)SXA, see the release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm


Supported Features in Release 12.2(18)SXD

In addition to supporting the features in Cisco IOS Release 12.2(9)YO4, Cisco IOS Release 12.2(14)SY, Cisco IOS Release 12.2(14)SY, and Cisco IOS Release 12.2(17b)SXA, the VPN module supports the following features in Cisco IOS Release 12.2(18)SXD and later releases:

Per-crypto map (and global) IPsec security association (SA) idle timers (for details, see the "Using Per-Crypto Map IPsec Security Association (SA) Idle Timers" section)

Sequenced ACLs (for details, see the "Using Sequenced ACLs" section)

Easy VPN Server features

Distinguished Name-Based Crypto Maps

IKE: Initiate Aggressive Mode

Real-Time Resolution for IPsec Tunnel Peer

IPsec VPN Accounting

Trusted Root Certification Authority

Certificate Security Attribute-Based Access Control

Trustpoint CLI

Multiple RSA Key Pair Support

Manual Certificate Enrollment (TFTP and Cut-and-Paste)

Source Interface Selection for Outgoing Traffic with Certificate Authority

IP Security VPN Monitoring

Encrypted Preshared Key

Crypto Conditional Debug Support

Certificate Autoenrollment

VPN module implementation—IP security site-to-site/gateway-to-gateway or through a remote access application


Note For complete details on Cisco IOS Release 12.2(18)SXD, see the release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm


Supported Features in Release 12.2(18)SXD1

In addition to supporting the features in Cisco IOS Release 12.2(9)YO4, Cisco IOS Release 12.2(14)SY, Cisco IOS Release 12.2(14)SY, Cisco IOS Release 12.2(17b)SXA, and Cisco IOS Release 12.2(18)SXD, the VPN module supports the following features in Cisco IOS Release 12.2(18)SXD1 and later releases:

VRF-aware IPsec (for details, see the "Using VRF-Aware IPsec" section)

VPN-module-to-VPN module failover (for details, see the "Using VPN Module-to-Module Failover" section)


Note For complete details on Cisco IOS Release 12.2(18)SXD1, see the release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm


Supported Features in Release 12.2(18)SXE

In addition to supporting the features in Cisco IOS Release 12.2(9)YO4, Cisco IOS Release 12.2(14)SY, Cisco IOS Release 12.2(14)SY, Cisco IOS Release 12.2(17b)SXA, Cisco IOS Release 12.2(18)SXD, and Cisco IOS Release 12.2(18)SXD1, the VPN module supports the following features in Cisco IOS Release 12.2(18)SXE and later releases:

Enhanced GRE tunnel takeover criteria—The VPN module attempts to takeover the GRE tunnel interface only if the Supervisor Engine 720 is unable to process the GRE tunnel interface in hardware. If the Supervisor Engine 720 cannot process the GRE tunnel interface in hardware, the VPN module will determine if it can take over the interface (for details, see the "Using GRE Tunneling" section)

VRF-aware with chassis-to-chassis stateful failover (for details, see the "Using VRF-Aware with Chassis-to-Chassis Stateful Failover" section)

VRF-aware with module-to-module stateful failover (for details, see the "Using VPN Module-to-Module Failover" section)

Dynamic Multipoint VPN (DMVPN) (for details, see the "Using DMVPN" section)

Enhancements for using deny policies in ACLs (for details, see the "Using Deny Policies in ACLs" section)

Invalid SPI recovery protocol support (for details, see the "Using the Invalid SPI Recovery Protocol" section)


Note For complete details on Cisco IOS Release 12.2(18)SXE, see the release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm


Supported Features in Release 12.2(18)SXF

No new features are added in Cisco IOS Release 12.2(18)SXF.


Note For complete details on Cisco IOS Release 12.2(18)SXF, see the release notes at this URL:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/122sx/ol_4164.htm


Modules Supported with the VPN Module in Releases 12.2(17b)SXA and 12.2(17d)SXB

Table 1 lists the modules that are supported with the VPN module in Cisco IOS Release 12.2(17b)SXA and 12.2(17d)SXB.


Note Support for Supervisor Engine 720 started in Cisco IOS Release 12.2(17b)SXA and support for Supervisor Engine 2 started in Cisco IOS Release 12.2(17d)SXB.


Table 1 Modules Supported with the VPN Module in Cisco IOS Release 12.2(17b)SXA and 12.2(17d)SXB

Modules
                            Supervisor Engine Support
 
Supervisor Engine 2
Supervisor Engine 720

WS-C6500-SFM

X

 

WS-C6500-SFM2

X

 

WS-X6024-10FL-MT

X

X

WS-X6248A-TEL

X

X

WS-X6248A-RJ-45

X

X

WS-X6316-GE-TX

X

X

WS-X6324-100FX-MM

X

X

WS-X6324-100FX-SM

X

X

WS-X6348-RJ-45

X

X

WS-X6348-RJ-21

X

X

WS-X6348-RJ21V

X

X

WS-X6348-RJ45V

X

X

WS-X6148-RJ-45

X

X

WS-X6148-RJ-21

X

X

WS-X6148-RJ21V

X

X

WS-X6148-RJ45V

X

X

WS-X6148-GE-TX

X

X

WS-X6148V-GE-TX

X

X

WS-X6408A-GBIC

X

X

WS-X6416-GBIC

X

X

WS-X6416-GE-MT

X

X

WS-X6516-GBIC

X

X

WS-X6516A-GBIC

X

X

WS-X6516-GE-TX

X

X

WS-X6548-RJ-45

X

X

WS-X6548-RJ-21

X

X

WS-X6548-GE-TX

X

X

WS-X6548V-GE-TX

X

X

WS-X6524-100FX-MM

X

X

WS-X6501-10GEX4

   

WS-X6502-10GE

X

X

WS-X6816-GBIC

X

X

OSM-1OC48-POS-SI

X

X

OSM-1OC48-POS-SL

X

X

OSM-1OC48-POS-SS

X

X

OSM-1OC48-POS-SI+

X

X

OSM-1OC48-POS-SL+

X

X

OSM-1OC48-POS-SS+

X

X

OSM-2OC48/1DPT-SS

X

X

OSM-2OC48/1DPT-SI

X

X

OSM-2OC48/1DPT-SL

X

X

OSM-2OC12-POS-MM

X

X

OSM-2OC12-POS-SI

X

X

OSM-2OC12-POS-SL

X

X

OSM-2OC12-POS-MM+

X

X

OSM-2OC12-POS-SI+

X

X

OSM-4GE-WAN-GBIC

X

X

OSM-4OC12-POS-MM

X

X

OSM-4OC12-POS-SI

X

X

OSM-4OC12-POS-SL

X

X

OSM-4OC12-POS-SI+

X

X

OSM-8OC3-POS-MM

X

X

OSM-8OC3-POS-SI

X

X

OSM-8OC3-POS-SL

X

X

OSM-8OC3-POS-SI+

X

X

OSM-4OC3-POS-SI

X

X

OSM-4OC3-POS-SL+

X

X

OSM-16OC3-POS-MM

X

X

OSM-16OC3-POS-SI

X

X

OSM-16OC3-POS-SL

X

X

OSM-16OC3-POS-SI+

X

X

OSM-2OC12-ATM-MM

X

X

OSM-2OC12-ATM-SI

X

X

OSM-2OC12-ATM-MM+

X

X

OSM-2OC12-ATM-SI+

X

X

OSM-1CHOC12/T3-SI

X

X

OSM-1CHOC12/T1-SI

   

OSM-12CT3/T1

   

OSM-2+4GE-WAN+

X

X

WS-6182-2PA

X

X

WS-6582-2PA

X

X

WS-SVC-IDSM2-BUN-K9

X

X

WS-SVC-NAM1

X

X

WS-SVC-NAM2

X

X

WS-X6066-SLB-APC

X

X

WS-SVC-CSG-1

X

X

WS-SVC-FWM-1-K9

X

X

WS-SVC-SSL-1-K9

X

X

WS-SVC-MWAM-1

   

WS-SVC-CMM

X

X

WS-SVC-CMM-6T1

X

X

WS-SVC-CMM-6E1

X

X

WS-X6248-RJ-45

X

X

WS-X6748-GE-TX

X

X

WS-X6704-10GE

X

X

WS-X6724-SFP

X

X

WS-X6748-SFP

X

X

WS-SVC-WLAN-1-K91

 

X

WS-SVC-MWAM-1

X

X2

1 Support for the WS-SVC-WLAN-1-K9 module started in Cisco IOS Release 12.2(18)SXD.

2 Support for Supervisor Engine 720 with the WS-SVC-MWAM-1 module started in Cisco IOS Release 12.2(18)SXD1.


Hardware and Software Requirements

This section describes the hardware and software requirements for the VPN module.

Software Requirements

This section lists the software requirements for the VPN module:

Cisco IOS Release 12.2(9)YO4 or later releases

Cisco IOS Release 12.2(14)SY or later releases

Cisco IOS Release 12.2(17b)SXA or later releases

Cisco IOS Release 12.2(18)SXD or later releases

Cisco IOS Release 12.2(18)SXD1or later releases

Cisco IOS Release 12.2(18)SXE or later releases

Cisco IOS Release 12.2(18)SXF or later releases

Hardware Requirements

This section lists the hardware requirements for the VPN module:

The following Catalyst 6500 series switches are supported:

Catalyst 6503 switch

Catalyst 6506 switch

Catalyst 6509 switch

Catalyst 6513 switch


Note With Cisco IOS Release 12.2(9)YO4, you can install only one VPN module per chassis.



Note With Cisco IOS Release 12.2(14)SY or later releases, you can install up to 10 VPN modules per chassis. For more information, see the "Using Multiple VPN Modules in a Chassis" section.


The following Cisco 7600 series routers are supported:

7603 router (CISCO7603)

7606 router (CISCO7606)

7609 router (CISCO7609)

7609 router (OSR-7609)


Note The 7606 router is not supported in Cisco IOS Release 12.2(9)YO4.


Supervisor Engine 720 (MSFC3 and PFC3)

Supervisor Engine 2 (MSFC2 and PFC2)

All Catalyst 6500 series Fast Ethernet and Gigabit Ethernet switching modules are supported with the exception of the WS-X6148-RJ-45 and WS-X6148-RJ-21 modules which are first supported in Cisco IOS Release 12.2(17b)SXA.


Note The FlexWAN module and the Optical Services Modules (OSMs) are not supported by Cisco IOS Release 12.2(9)YO4.

Support for the FlexWAN module is added with Cisco IOS Release 12.2(14)SY (see the "Supported Features in Release 12.2(14)SY" section for a complete list of supported port adapters). OSMs are not supported by Cisco IOS Release 12.2(14)SY.

OSMs are supported by Cisco IOS Release 12.2(17b)SXA.



Note The VPN module MSFC DRAM requirements are as follows:

- Up to 500 tunnels with 128-MB DRAM
- Up to 4,000 tunnels with 256-MB DRAM
- Up to 8,000 tunnels with 512-MB DRAM

These numbers are chosen to leave some memory available for routing protocols and other applications. However, your particular use of the MSFC may demand more memory than the quantities that are listed above. In an extreme case, you could have one tunnel but still require 512-MB DRAM for other protocols and applications running on the MSFC.

The Supervisor Engine 720 MSFC3 (WS-SUP720) ships with 512-MB DRAM. The Supervisor Engine 2 MSFC2 (WS-X6K-S2U-MSFC2) ships with 256-MB DRAM. The Supervisor Engine 2 MSFC2 (WS-X6K-S2-MSFC2) ships with 128-MB DRAM.

For MSFC2 DRAM upgrade information, refer to the following publication at this URL:

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/cfgnotes/78_6953.htm


Front Panel Description

The LED on the VPN module front panel (see Figure 2) indicates the status of the module. Table 2 describes the LED operation.

Figure 2 VPN Module Front Panel

Table 2 VPN Module LED Description

LED
Color/Description

STATUS

The STATUS LED shows the status as follows:

Normal initialization sequence

Orange—Module is booting or running diagnostics

Green—All diagnostics pass; module is operational

Fault during initialization sequence

Orange—Module is booting or running diagnostics

Red—Diagnostic test fails; module is not operational

Environmental monitoring

Orange—Overtemperature condition (minor threshold exceeded)

Red—Overtemperature condition (major threshold exceeded)


Installing and Removing the VPN Module

These sections describe how to remove and install the VPN module in the Catalyst 6500 series switches:

Safety Overview

Required Tools

Removing a VPN Module

Installing a VPN Module

Verifying the Installation

Safety Overview

Safety warnings appear throughout these procedures indicating tasks that may harm you if performed incorrectly. A warning symbol precedes each warning statement.

Warning


IMPORTANT SAFETY INSTRUCTIONS

This warning symbol means danger. You are in a situation that could cause bodily injury. Before you work on any equipment, be aware of the hazards involved with electrical circuitry and be familiar with standard practices for preventing accidents. Use the statement number provided at the end of each warning to locate its translation in the translated safety warnings that accompanied this device. Statement 1071

SAVE THESE INSTRUCTIONS

Waarschuwing

BELANGRIJKE VEILIGHEIDSINSTRUCTIES

Dit waarschuwingssymbool betekent gevaar. U verkeert in een situatie die lichamelijk letsel kan veroorzaken. Voordat u aan enige apparatuur gaat werken, dient u zich bewust te zijn van de bij elektrische schakelingen betrokken risico's en dient u op de hoogte te zijn van de standaard praktijken om ongelukken te voorkomen. Gebruik het nummer van de verklaring onderaan de waarschuwing als u een vertaling van de waarschuwing die bij het apparaat wordt geleverd, wilt raadplegen.

BEWAAR DEZE INSTRUCTIES

Varoitus

TÄRKEITÄ TURVALLISUUSOHJEITA

Tämä varoitusmerkki merkitsee vaaraa. Tilanne voi aiheuttaa ruumiillisia vammoja. Ennen kuin käsittelet laitteistoa, huomioi sähköpiirien käsittelemiseen liittyvät riskit ja tutustu onnettomuuksien yleisiin ehkäisytapoihin. Turvallisuusvaroitusten käännökset löytyvät laitteen mukana toimitettujen käännettyjen turvallisuusvaroitusten joukosta varoitusten lopussa näkyvien lausuntonumeroiden avulla.

SÄILYTÄ NÄMÄ OHJEET

Attention

IMPORTANTES INFORMATIONS DE SÉCURITÉ

Ce symbole d'avertissement indique un danger. Vous vous trouvez dans une situation pouvant entraîner des blessures ou des dommages corporels. Avant de travailler sur un équipement, soyez conscient des dangers liés aux circuits électriques et familiarisez-vous avec les procédures couramment utilisées pour éviter les accidents. Pour prendre connaissance des traductions des avertissements figurant dans les consignes de sécurité traduites qui accompagnent cet appareil, référez-vous au numéro de l'instruction situé à la fin de chaque avertissement.

CONSERVEZ CES INFORMATIONS

Warnung

WICHTIGE SICHERHEITSHINWEISE

Dieses Warnsymbol bedeutet Gefahr. Sie befinden sich in einer Situation, die zu Verletzungen führen kann. Machen Sie sich vor der Arbeit mit Geräten mit den Gefahren elektrischer Schaltungen und den üblichen Verfahren zur Vorbeugung vor Unfällen vertraut. Suchen Sie mit der am Ende jeder Warnung angegebenen Anweisungsnummer nach der jeweiligen Übersetzung in den übersetzten Sicherheitshinweisen, die zusammen mit diesem Gerät ausgeliefert wurden.

BEWAHREN SIE DIESE HINWEISE GUT AUF.

Avvertenza

IMPORTANTI ISTRUZIONI SULLA SICUREZZA

Questo simbolo di avvertenza indica un pericolo. La situazione potrebbe causare infortuni alle persone. Prima di intervenire su qualsiasi apparecchiatura, occorre essere al corrente dei pericoli relativi ai circuiti elettrici e conoscere le procedure standard per la prevenzione di incidenti. Utilizzare il numero di istruzione presente alla fine di ciascuna avvertenza per individuare le traduzioni delle avvertenze riportate in questo documento.

CONSERVARE QUESTE ISTRUZIONI

Advarsel

VIKTIGE SIKKERHETSINSTRUKSJONER

Dette advarselssymbolet betyr fare. Du er i en situasjon som kan føre til skade på person. Før du begynner å arbeide med noe av utstyret, må du være oppmerksom på farene forbundet med elektriske kretser, og kjenne til standardprosedyrer for å forhindre ulykker. Bruk nummeret i slutten av hver advarsel for å finne oversettelsen i de oversatte sikkerhetsadvarslene som fulgte med denne enheten.

TA VARE PÃ… DISSE INSTRUKSJONENE

Aviso

INSTRUÇÕES IMPORTANTES DE SEGURANÇA

Este símbolo de aviso significa perigo. Você está em uma situação que poderá ser causadora de lesões corporais. Antes de iniciar a utilização de qualquer equipamento, tenha conhecimento dos perigos envolvidos no manuseio de circuitos elétricos e familiarize-se com as práticas habituais de prevenção de acidentes. Utilize o número da instrução fornecido ao final de cada aviso para localizar sua tradução nos avisos de segurança traduzidos que acompanham este dispositivo.

GUARDE ESTAS INSTRUÇÕES

¡Advertencia!

INSTRUCCIONES IMPORTANTES DE SEGURIDAD

Este símbolo de aviso indica peligro. Existe riesgo para su integridad física. Antes de manipular cualquier equipo, considere los riesgos de la corriente eléctrica y familiarícese con los procedimientos estándar de prevención de accidentes. Al final de cada advertencia encontrará el número que le ayudará a encontrar el texto traducido en el apartado de traducciones que acompaña a este dispositivo.

GUARDE ESTAS INSTRUCCIONES

Varning!

VIKTIGA SÄKERHETSANVISNINGAR

Denna varningssignal signalerar fara. Du befinner dig i en situation som kan leda till personskada. Innan du utför arbete på någon utrustning måste du vara medveten om farorna med elkretsar och känna till vanliga förfaranden för att förebygga olyckor. Använd det nummer som finns i slutet av varje varning för att hitta dess översättning i de översatta säkerhetsvarningar som medföljer denna anordning.

SPARA DESSA ANVISNINGAR

Aviso

INSTRUÇÕES IMPORTANTES DE SEGURANÇA

Este símbolo de aviso significa perigo. Você se encontra em uma situação em que há risco de lesões corporais. Antes de trabalhar com qualquer equipamento, esteja ciente dos riscos que envolvem os circuitos elétricos e familiarize-se com as práticas padrão de prevenção de acidentes. Use o número da declaração fornecido ao final de cada aviso para localizar sua tradução nos avisos de segurança traduzidos que acompanham o dispositivo.

GUARDE ESTAS INSTRUÇÕES

Advarsel

VIGTIGE SIKKERHEDSANVISNINGER

Dette advarselssymbol betyder fare. Du befinder dig i en situation med risiko for legemesbeskadigelse. Før du begynder arbejde på udstyr, skal du være opmærksom på de involverede risici, der er ved elektriske kredsløb, og du skal sætte dig ind i standardprocedurer til undgåelse af ulykker. Brug erklæringsnummeret efter hver advarsel for at finde oversættelsen i de oversatte advarsler, der fulgte med denne enhed.

GEM DISSE ANVISNINGER

 



 



Warning


Only trained and qualified personnel should be allowed to install, replace, or service this equipment. Statement 1030



Caution During this procedure, wear grounding wrist straps to avoid ESD damage to the card. Do not directly touch the backplane with your hand or any metal tool, or you could shock yourself.

Warning


Blank faceplates and cover panels serve three important functions: they prevent exposure to hazardous voltages and currents inside the chassis; they contain electromagnetic interference (EMI) that might disrupt other equipment; and they direct the flow of cooling air through the chassis. Do not operate the system unless all cards, faceplates, front covers, and rear covers are in place. Statement 1029



Required Tools

These tools are required to install the VPN module in the Catalyst 6500 series switches:

Number 2 Phillips-head screwdriver

Antistatic mat or antistatic foam

Your own electrostatic discharge (ESD) grounding strap or the disposable ESD strap included with the system

Removing a VPN Module

This section describes how to remove an existing VPN module from a chassis slot.


Caution During this procedure, wear grounding wrist straps to avoid ESD damage to the card. Do not directly touch the backplane with your hand or any metal tool, or you could shock yourself.


Caution Before you install, operate, or service the system, read the Regulatory Compliance and Safety Information for the Catalyst 6500 Series Switches publication or the Regulatory Compliance and Safety Information for the Cisco 7600 Series Routers publication. These publications contain important safety information you should know before working with the system.

Warning


Invisible laser radiation may be emitted from disconnected fibers or connectors. Do not stare into beams or view directly with optical instruments. Statement 1051



To remove a VPN module from the chassis, perform these steps:


Step 1 Verify that the captive installation screws on all of the modules in the chassis are tight. This step assures that the space created by the removed module is maintained.


Note If the captive installation screws are loose, the electromagnetic interference (EMI) gaskets on the installed modules will push the modules toward the open slot, reducing the opening size and making it difficult to install the replacement module.


Step 2 Loosen the two captive installation screws on the VPN module.

Step 3 Depending on the orientation of the slots in the chassis (horizontal or vertical), perform one of the following two sets of steps.

Horizontal slots

a. Place your thumbs on the left and right ejector levers, and simultaneously rotate the levers outward to unseat the module from the backplane connector.

b. Grasp the front edge of the module, and slide the module part of the way out of the slot. Place your other hand under the module to support the weight of the module. Do not touch the module circuitry.

Vertical slots

a. Place your thumbs on the ejector levers that are located at the top and bottom of the module, and simultaneously rotate the levers outward to unseat the module from the backplane connector.

b. Grasp the edges of the module, and slide the module straight out of the slot. Do not touch the module circuitry.

Step 4 Place the module on an antistatic mat or antistatic foam, or immediately reinstall it in another slot.

Step 5 If the slot is to remain empty, install a module filler plate to keep dust out of the chassis and to maintain proper airflow through the chassis.


Warning


Blank faceplates and cover panels serve three important functions: they prevent exposure to hazardous voltages and currents inside the chassis; they contain electromagnetic interference (EMI) that might disrupt other equipment; and they direct the flow of cooling air through the chassis. Do not operate the system unless all cards, faceplates, front covers, and rear covers are in place. Statement 1029


Installing a VPN Module

This section describes how to install a VPN module in the chassis.


Caution To prevent ESD damage, handle modules by the carrier edges only.


Caution During this procedure, wear grounding wrist straps to avoid ESD damage to the card. Do not directly touch the backplane with your hand or any metal tool, or you could shock yourself.

Warning


Invisible laser radiation may be emitted from disconnected fibers or connectors. Do not stare into beams or view directly with optical instruments. Statement 1051




Caution Before you install, operate, or service the system, read the Regulatory Compliance and Safety Information for the Catalyst 6500 Series Switches publication or the Regulatory Compliance and Safety Information for the Cisco 7600 Series Routers publication. These publications contain important safety information you should know before working with the system.

To install a VPN module in the chassis, perform these steps:


Step 1 Choose a slot for the VPN module.

Step 2 If possible, place VPN modules between empty slots that contain only module filler plates.

Step 3 Verify that the captive installation screws are tightened on all modules that are installed in the chassis. This step assures that the EMI gaskets on all modules are fully compressed in order to maximize the opening space for the new module or the replacement module.


Note If the captive installation screws are loose, the EMI gaskets on the installed modules will push adjacent modules toward the open slot, reducing the opening size and making it difficult to install the replacement module.


Step 4 Remove the module filler plate by removing the two Phillips pan-head screws from the filler plate. To remove a module, see the "Removing a VPN Module" section.

Step 5 Fully open both ejector levers on the new or replacement module. (See Figure 3.)

Step 6 Depending on the orientation of the slots in the chassis (horizontal or vertical), perform one of the two following sets of substeps.

Horizontal slots

a. Position the VPN module in the slot. (See Figure 3.) Make sure that you align the sides of the module carrier with the slot guides on each side of the slot.

b. Carefully slide the VPN module into the slot until the EMI gasket along the top edge of the module makes contact with the module in the slot above it and both ejector levers have closed to approximately 45 degrees with respect to the module faceplate. (See Figure 4.)

c. Using the thumb and forefinger of each hand, grasp the two ejector levers and press down to create a small (0.040 inch [1 mm]) gap between the module's EMI gasket and the module above it. (See Figure 4.)


Caution Do not exert too much pressure on the ejector levers because you will bend and damage them.

Figure 3 Positioning the Module in a Horizontal Slot Chassis

d. While pressing down, simultaneously close the left and right ejector levers to fully seat the VPN module in the backplane connector. The ejector levers are fully closed when they are flush with the module faceplate. (See Figure 5.)


Note Failure to fully seat the module in the backplane connector can result in error messages.


e. Tighten the two captive installation screws on the VPN module.


Note Make sure that the ejector levers are fully closed before tightening the captive installation screws.


Figure 4 Clearing the EMI Gasket in a Horizontal Slot Chassis

Figure 5 Ejector Lever Closure in a Horizontal Slot Chassis

Vertical slots

a. Position the VPN module in the slot. (See Figure 6.) Make sure that you align the sides of the switching-module carrier with the slot guides on the top and bottom of the slot.

b. Carefully slide the VPN module into the slot until the EMI gasket along the right edge of the module makes contact with the module in the slot adjacent to it and both ejector levers have closed to approximately 45 degrees with respect to the module faceplate. (See Figure 7.)

c. Using the thumb and forefinger of each hand, grasp the two ejector levers and exert a slight pressure to the left, deflecting the module approximately 0.040 inches (1 mm) to create a small gap between the module's EMI gasket and the module adjacent to it. (See Figure 7.)


Caution Do not exert too much pressure on the ejector levers because you will bend and damage them.

d. While pressing on the ejector levers, simultaneously close them to fully seat the VPN module in the backplane connector. The ejector levers are fully closed when they are flush with the module faceplate. (See Figure 8.)

e. Tighten the two captive installation screws on the module.


Note Make sure that the ejector levers are fully closed before tightening the captive installation screws.



Figure 6 Positioning the Module in a Vertical Slot Chassis

Figure 7 Clearing the EMI Gasket in a Vertical Slot Chassis

Figure 8 Ejector Lever Closure in a Vertical Slot Chassis

Verifying the Installation

Enter the show module [mod-num | all] command to verify that the system acknowledges the new VPN module and has brought it online.

This example shows the output of the show module command:

Router# show module
Mod Ports Card Type                              Model              Serial No.
--- ----- -------------------------------------- ------------------ -----------
  1    2  Catalyst 6000 supervisor 2 (Active)    WS-X6K-S2U-MSFC2   SAD055106AH
  2   16  SFM-capable 16 port 1000mb GBIC        WS-X6516-GBIC      SAD0546024C
  4   48  SFM-capable 48-port 10/100 Mbps RJ45   WS-X6548-RJ-45     SAD060904PU
  5    2  IPsec VPN Accelerator                  WS-SVC-IPSEC-1     SAD0636025E

Mod MAC addresses                       Hw    Fw           Sw           Status
--- ---------------------------------- ------ ------------ ------------ -------
  1  0002.7e38.6c4c to 0002.7e38.6c4d   3.2   6.1(3)       6.2(2.107)   Ok
  2  0002.7ee0.28c0 to 0002.7ee0.28cf   3.0   6.1(3)       6.2(2.107)   Ok
  4  0001.63d6.94da to 0001.63d6.9509   4.2   6.3(1)       6.2(2.107)   Ok
  5  0060.0217.0000 to 0060.0217.0000   1.0   7.2(0.74-Eng 6.2(2.107)   Ok

Mod Sub-Module                  Model           Serial           Hw     Status
--- --------------------------- --------------- --------------- ------- -------
  1 Policy Feature Card 2       WS-F6K-PFC2     SAD055200K7      3.0    Ok
  1 Cat6k MSFC 2 daughterboard  WS-F6K-MSFC2    SAD055107JD      2.0    Ok
Router#

Configuring a VPN Using the VPN Module

These sections describe how to configure a VPN using the VPN module:

Hardware- and Software-Based Cryptographic Modes

Configuring the VPN Module Using the crypto engine slot Command

Configuration Summaries

VPN Module Feature Configuration Guidelines and Configuration Procedures

Port Configuration Procedures

Configuring a VPN Access Port Connection

Configuring a VPN Routed Port Connection

Configuring a VPN Trunk Port Connection

Displaying the VPN Running State

Configuration Examples

Access Ports

Routed Ports

Trunk Ports

ATM Ports

Frame Relay Ports

GRE Tunneling

HSRP

QoS


Tip To ensure a successful configuration of your VPN using the VPN module, read all of the configuration summaries and guidelines before you perform any configuration tasks.



Note To configure two VPN modules for automatic failover, see the "Configuring VPN Module-to-Module Failover" section.


Hardware- and Software-Based Cryptographic Modes

With Cisco IOS Releases 12.2(9)Y04 and 12.2(14)SY when the VPN module is configured and active in the chassis, software encryption by the MSFC2 is disabled. This mode of operation is referred to as hardware-based cryptographic mode. In hardware-based cryptographic mode, any software-based cryptographic configurations that use the MSFC2 have an undefined or unspecified effect. In hardware-based cryptographic mode, if you associate a crypto ACL with a non-VLAN interface, packets do not get encrypted or dropped. You need to remove the software-based cryptographic configuration from the interface and then configure the interface correctly for hardware-based cryptographic operation with the VPN module.

With Cisco IOS Release 12.2(17b)SXA, when you install and power on a VPN module, the chassis is automatically placed in hardware-based cryptographic mode. Only a removal of the VPN module and a reboot of the switch returns the switch to software-based cryptographic operation.

Transitioning In and Out of Hardware-Based Cryptographic Mode

These sections describe how to transition in and out of the hardware-based cryptographic mode.

Cisco IOS Release 12.2(9)YO4 or Later Releases and Cisco IOS Release 12.2(14)SY and Later Releases

When you add the crypto connect vlan command to the running configuration, you enter hardware-based cryptographic mode. When you remove the last crypto connect vlan command from the running configuration (using the no crypto connect vlan command), you exit the hardware-based cryptographic mode.


Note Switching to the software-based cryptographic mode (by entering the no crypto connect vlan command) does not automatically change the configuration and enable software-based cryptographic operation. To enable software-based cryptographic mode and have it function correctly, you have to remove the VPN module configuration and reconfigure the switch for software-based cryptographic operation.


Cisco IOS Release 12.2(17b)SXA and Later Releases

When you power on a chassis with a VPN module installed or if you insert a VPN module into a chassis, the module enters the hardware-based cryptographic mode. In this mode, the encryption and decryption is done by the VPN module. The MSFC stops performing encryption and decryption in software; the software-based cryptographic mode does not function in this mode. In the hardware-based cryptographic mode, you need to configure a VPN module-specific configuration.

A VPN module in a chassis is active only if power to the module is enabled. If the power to the VPN module is disabled, the module is in the inactive state. Use the [no] power enable module slot command to enable or disable power to the VPN module.

When you power on a chassis with an active VPN module, the chassis enters the hardware-based cryptographic mode even if there is no VPN module-specific configuration. If you power on a chassis with an inactive VPN module, the chassis enters the software-based cryptographic mode; any VPN module-specific configurations in the startup configuration are not implemented.

When a chassis is in the hardware-based cryptographic mode, it stays in the hardware-based cryptographic mode even if you remove the VPN module or turn off the power to the VPN module. In these cases, all the packets that normally would have gone through the VPN module are dropped.

If you power on a chassis with no VPN module or an inactive VPN module, the chassis enters the software-based cryptographic mode. Inserting a VPN module into the chassis or enabling power to the VPN module results in a change to the hardware-based cryptographic mode.

To switch from hardware-based cryptographic mode to software-based cryptographic mode, you need to remove the VPN module(s) or power off the VPN module(s) and reset the chassis.

After you enter the hardware-based cryptographic mode by inserting one VPN module into the chassis, inserting additional VPN modules has no effect on the cryptographic mode.

Effects of Exiting the Hardware-Based Cryptographic Mode on Existing IPsec SAs

These sections describe the configuration guidelines for exiting the hardware-based cryptographic mode on existing IPsec SAs.

Cisco IOS Release 12.2(9)YO4 or Later Releases

The configuration guidelines for Cisco IOS Release 12.2(9)YO4 or later releases are as follows:

When you enter the no crypto connect vlan command to break the connection between a port VLAN and the interface VLAN, the IPsec security associations (SAs) are not automatically removed.


Note The IPsec SAs may be removed by other features such as DPD or IKE keepalives.


If the no crypto connect vlan command is the last hardware-based cryptographic configuration command that you entered, then the IPsec SAs are removed automatically as part of the switchover from the hardware-based cryptographic mode to the software-based cryptographic mode.

Cisco IOS Release 12.2(14)SY and Later Releases and Cisco IOS Release 12.2(17b)SXA and Later Releases

The configuration guidelines for Cisco IOS Release 12.2(14)SY or later releases are as follows:

When you enter the no crypto connect vlan command on a crypto-connected routed, access, or trunk mode port, all the associated SAs are removed.

When you shut down a port VLAN, none of the associated SAs are removed.

When you shut down an interface VLAN, the hardware-based cryptographic mode will not be exited.

When you shut down an interface VLAN, all the associated SAs will not be removed.

When you enter the no ip address command on an interface VLAN, all the associated SAs will not be removed.

When you change the IP address on an interface VLAN by entering the ip address new-ip-address new-mask command, all the associated SAs are removed.

Note that the behavior described above depends on the type of interface as follows:

Ethernet interface:

shut down—SAs are removed.

no shut down—SAs are recreated on the VPN module.

WAN interface:

shut down (on reload)—No SAs are created on the VPN module (must do a no shut down first).

no shut down (first no shut down issued after a reload)—SAs are created on the VPN module.

shut down (after a no shut down)—SAs remain active on the VPN module.

Access/trunk mode ports:

shut down—SAs are never removed.

Configuring the VPN Module Using the crypto engine slot Command


Note This section applies to VPN modules running Cisco IOS Release 12.2(17b)SXA or later releases.


The crypto engine slot slot command makes it easier to assign interface VLANs to VPN modules. With this command, you do not need to explicitly add interface VLANs to the VPN module inside trunk port. Prior to Cisco IOS Release 12.2(17b)SXA, the VPN module that would be used to protect a particular interface was determined by adding VLANs to a VPN module inside trunk port as follows:

interface GigabitEthernet3/1 
no ip address 
switchport 
switchport trunk encapsulation dot1q 
switchport trunk allowed vlan 1,100,1002-1005
switchport mode trunk 

With Cisco IOS Release 12.2(17b)SXA and later releases, you can assign VPN modules to interfaces that require encryption using the crypto engine slot slot command as follows:

interface Vlan101
ip address 192.168.101.1 255.255.255.0
crypto map cmap
crypto engine slot 3

interface GigabitEthernet2/1
crypto connect vlan 101

Use the no crypto engine slot slot command to remove the interface VLAN from the inside trunk port.

Follow these guidelines and restrictions when configuring VPN modules using the crypto engine slot command:

We strongly recommend that you use the crypto engine slot command instead of manually adding and removing VLANs from the inside trunk port.

Adding a VLAN to an inside trunk port

When you add an interface VLAN to an inside trunk port and that interface VLAN is not already added to another inside trunk port, the "crypto engine slot" configuration state on the interface VLAN is combined. If the interface VLAN is already added to another inside trunk port, the command is rejected.

Removing a VLAN from an inside trunk port

When you remove an interface VLAN from an inside trunk port and a corresponding "crypto engine slot" configuration state exists, then that "crypto engine slot" configuration state is not removed. If you remove a VLAN that has a "crypto engine slot" configuration state, you need to manually add it back to recover. While in this inconsistent state, any attempt to enter the no crypto connect command is rejected.

Adding all VLANs to an inside trunk port at one time

You should not try to add all VLANs to an inside trunk port at one time (if you attempt this, you can recover by manually removing the VLANs from the inside trunk port).

Creating an interface VLAN

When you enter the crypto connect command, a target VLAN is made an interface VLAN if and only if the target VLAN is not currently an interface VLAN, and the target VLAN has been added to an inside trunk port. If the VLAN has been added to more than one inside trunk port, the crypto connect command is rejected.

Removing an interface VLAN

When you enter the no crypto connect command, the interface VLAN status is removed from a VLAN. Any associated "crypto engine slot" configuration state is not altered.

Using the crypto engine slot command

The crypto engine slot command is only available for VLANs prior to the VLANs being made interface VLANs by the crypto connect command.

If you enter the no crypto engine command and the interface VLAN is crypto-connected, the no crypto engine command is rejected. The no crypto engine command is allowed only after you enter the no crypto connect command, or before you enter the crypto connect command. Similarly, the crypto engine slot command is rejected if you enter it on a crypto-connected interface VLAN whose current crypto engine slot is different from the slot specified in the crypto engine slot command. To change the crypto engine slot on an interface VLAN, you must ensure that the VLAN is not crypto-connected.

If you change the crypto engine slot configuration on an interface VLAN, any IPsec and IKE SAs that are currently active on that interface VLAN are deleted.

Writing and showing the configuration

When you write the configuration or show the configuration, the "crypto engine slot" configuration state is expressed in the context of the associated interface VLAN. The interface VLAN is also shown as having been added to the appropriate inside trunk port. This is the case even if the configuration was loaded from a legacy (pre-"crypto engine slot") configuration file, or if VLANs were manually added instead of being added through the crypto engine slot command.

Loading an inconsistent configuration

By editing the crypto engine slot commands and inside trunk port VLANs, it is possible to produce an inconsistent configuration file.

For configuration examples using the crypto engine slot command, see the following sections:

Configuration Summaries

Using Multiple VPN Modules in a Chassis

Port Configuration Procedures

Configuration Summaries

These sections provide Ethernet configuration summaries for the three modes of operation that are supported by the VPN module:


Note For WAN interface configuration, see the "Using WAN Interfaces" section.


Access Port Mode Summary

Routed Port Mode Summary

Trunk Port Mode Summary

Access Port Mode Summary

This section summarizes the steps that are required to configure a Catalyst switch outside port as an access port (see the "Configuring a VPN Access Port Connection" section for detailed information):

1. Perform the following standard Cisco IOS encryption tasks:

a. Create an IKE policy, if necessary.

b. Create a preshared key entry, if necessary.

c. Create an ACL.

d. Create a crypto map.

2. Add an inside interface VLAN and outside access port VLAN to the VLAN database.

3. Create a Layer 3 inside interface VLAN, and attach a crypto map.


Note For Cisco IOS Release 12.2(17b)SXA or later releases: You also need to assign a crypto engine slot to the inside interface VLAN. For information on using the crypto engine slot command, see the "Configuring the VPN Module Using the crypto engine slot Command" section.


4. Create an outside interface VLAN for the outside access port VLAN.

5. Add the inside interface VLAN as an allowed VLAN to the VPN module inside trunk port (the VPN module ports are trunk ports by default).


Note Step 5 is not necessary when using Cisco IOS Release 12.2(17b)SXA or later releases.


6. Add a Catalyst switch outside port to the outside access port VLAN, and connect the outside access port VLAN to the inside interface VLAN using the crypto connect vlan command.


Note You can do the crypto connection from the port or from the port VLAN interface, but the crypto connect vlan command will always appear in the configuration of the port VLAN.


Routed Port Mode Summary

This section summarizes the steps that are required to configure a Catalyst switch outside port as a routed port (see the "Configuring a VPN Routed Port Connection" section for detailed information):

1. Perform the following standard Cisco IOS encryption tasks:

a. Create an IKE policy, if necessary.

b. Create a preshared key entry, if necessary.

c. Create an ACL.

d. Create a crypto map.

2. Add an inside interface VLAN to the VLAN database.

3. Create a Layer 3 inside interface VLAN, and attach a crypto map.


Note For Cisco IOS Release 12.2(17b)SXA or later releases: You also need to assign a crypto engine slot to the inside interface VLAN. For information on using the crypto engine slot command, see the "Configuring the VPN Module Using the crypto engine slot Command" section.


4. Add the inside interface VLAN as an allowed VLAN to the VPN module inside trunk port (the VPN module ports are trunk ports by default).


Note Step 4 is not necessary when using Cisco IOS Release 12.2(17b)SXA or later releases.


5. Connect the outside Catalyst routed port to the inside interface VLAN using the crypto connect vlan command.

Trunk Port Mode Summary


Caution When you configure an Ethernet port as a trunk port, all the VLANs are allowed on the trunk port by default. This default configuration does not work well with the VPN module and causes network loops. For detailed information on configuring trunks, see the "Trunks" section in the "Interaction with Other Features" section.

This section summarizes the steps that are required to configure a Catalyst switch outside port as a trunk port (see the "Configuring a VPN Trunk Port Connection" section for detailed information):

1. Perform the following standard Cisco IOS encryption tasks:

a. Create an IKE policy, if necessary.

b. Create a preshared key entry, if necessary.

c. Create an ACL.

d. Create a crypto map.

2. Add an inside interface VLAN and outside trunk port VLAN to the VLAN database.

3. Create a Layer 3 inside interface VLAN, and attach a crypto map.


Note For Cisco IOS Release 12.2(17b)SXA or later releases: You also need to assign a crypto engine slot to the inside interface VLAN. For information on using the crypto engine slot command, see the "Configuring the VPN Module Using the crypto engine slot Command" section.


4. Add the inside interface VLAN as an allowed VLAN to the VPN module inside trunk port (the VPN module ports are trunk ports by default).


Note Step 4 is not necessary when using Cisco IOS Release 12.2(17b)SXA or later releases.


5. Create the outside trunk port VLAN interface, and connect it to the inside interface VLAN using the crypto connect vlan command.

6. Configure a Catalyst switch outside port as a trunk port, and add the outside trunk port VLAN as an allowed VLAN to the outside port trunk.

VPN Module Feature Configuration Guidelines and Configuration Procedures

Use the VPN module feature configuration guidelines and configuration procedures in the following sections when configuring a VPN using the VPN module:

Interaction with Other Features

Preventing VPN Module Misconfigurations

Miscellaneous Guidelines

Handling Multicast Traffic

Configuring MTU Settings

Configuring Trunk Ports

Configuring the VPN Module Inside Port and Outside Port

Using Multiple VPN Modules in a Chassis

Using IPsec Stateful Failover and the VPN Module

Using IPsec NAT Transparency

Using TopN Acceleration

Using IPsec Anti-Replay Window Size Expansion

Using Easy-VPN Client

Using Dead-Peer-Detection

Using WAN Interfaces

Using Look-Ahead Fragmentation

Using GRE Tunneling

Using QoS

Using Per-Crypto Map IPsec Security Association (SA) Idle Timers

Using Sequenced ACLs

Using VRF-Aware IPsec

Using VPN Module-to-Module Failover

Using DMVPN

Using Deny Policies in ACLs

Using the Invalid SPI Recovery Protocol

Interaction with Other Features

Follow these configuration guidelines for configuring a VPN using the VPN module:


Caution This caution applies only to Cisco IOS Release 12.2(17b)SXA. It does not apply to Cisco IOS Release 12.2(17d)SXB and later releases.

The VPN module is not compatible with stateful switchover (SSO mode). The VPN module does not work if you enable SSO mode. If you enable SSO mode and there is a VPN module in the chassis, the following warning message is displayed: Warn:Card:<slot_num> can NOT co-exist with SSO mode---

You should either change the mode to RPR or RPR+, or remove the VPN module from the chassis.

EtherChannels

You can enter the crypto connect vlan command only from the following:

The associated port VLAN interface when the EtherChannel interface (port-channel interface) and participating interfaces are switch ports

The EtherChannel interface when the EtherChannel interface (port-channel interface) and participant interfaces are routed ports

ACL on a routed port without an IP address

When a routed port has a crypto connection, the IP ACLs that are attached to the routed port work correctly even if the routed port does not have an IP address.

HSRP configuration

Do not use the standby use-bia command. Always use a virtual HSRP MAC address for the router's MAC address.

HSRP/GRE is supported.


Note For an example, see the "HSRP" section.


Switched Port Analyzer (SPAN)

Interaction with the SPAN feature is as follows:

If the SPAN session is set up to copy all the traffic from the VPN module inside port, then all the traffic before encryption and after decryption is sent to the SPAN port.

If the SPAN session is set up to copy all the traffic from the VPN module outside port, then all the traffic before decryption and after encryption is sent to the SPAN port.

If the SPAN session is set up to copy all the traffic from the Catalyst switch outside port (the port that connects to the WAN router), then all the traffic before decryption and after encryption is sent to the SPAN port.

GRE tunnel interfaces

Attaching a crypto map set to a generic routing encapsulation (GRE) tunnel interface is not supported. You can attach a crypto map set to a GRE tunnel interface, but there are configuration restrictions. You can configure the GRE tunnel interface in the same manner as on other Cisco routers, but you cannot attach a crypto map set to the interface. Instead, you attach the crypto map set to all of the ingress/egress interfaces over which the GRE tunnel spans. Note that HSRP/GRE is supported.


Note For detailed configuration information, see the "Using GRE Tunneling" section.


Preventing VPN Module Misconfigurations

Follow these guidelines to prevent VPN module misconfigurations:

Removing a line in a crypto ACL causes all crypto maps using that ACL to be removed and reattached to the VPN module. This action causes all the SAs that are derived from the crypto maps, which referenced that ACL, to flap.

Do not convert existing crypto-connected port characteristics. When the characteristics of a crypto-connected access port or a routed port change (switch port to routed port or vice versa), the associated crypto connection is deleted.

The example in this section shows how a misconfiguration can affect the startup-configuration file. This example uses the following configuration:

The interface VLAN is 100.

The port VLAN is 200 on access port Gigabit Ethernet 1/1.

The VPN module is in slot 2.

In this example, a crypto connection exists, and when the associated interface VLAN is removed from the VPN module inside port, a misconfigured startup-configuration file is created.


Note With Cisco IOS Release 12.2(14)SY, it is no longer possible to remove an interface VLAN from the VPN module inside port while the crypto connection to the interface VLAN exists. You must first remove the crypto connection.


When you enter the write memory command, the following misconfigured startup-configuration file is created:

.
.
.
interface GigabitEthernet1/1
 no ip address
 snmp trap link-status
 switchport
 switchport access vlan 200
 switchport mode access
 crypto connect vlan 100
end
.
.
.
interface GigabitEthernet2/1
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005 <-- misconfiguration 
 switchport mode trunk
 flowcontrol receive on
 cdp enable
end
.
.
.

In this example, when you use this startup-configuration file to boot a switch, the misconfigured crypto connections are removed after the VPN module boots and this warning message is displayed:

%CRYPTO: crypto connection to VLAN 100 is removed from gi1/1 because VLAN 100 doesn't
belong to any IPsec Service Module.

Note that all the configurations on the interface VLAN, such as the crypto map, are intact.

Do not remove the interface VLAN or port VLAN from the VLAN database. All interface VLANs and port VLANs must be in the VLAN database. When you remove these VLANs from the VLAN database, the running traffic stops.

When you enter the crypto connect vlan command and the interface VLAN or port VLAN is not in the VLAN database, this warning message is displayed:

VLAN id 100 not found in current VLAN database. It may not function correctly unless
VLAN 100 is added to VLAN database.

When replacing a crypto map on an interface, always enter the no crypto map name [redundancy | ssp group] command before reapplying a crypto map on the interface.

Miscellaneous Guidelines

Follow these configuration guidelines for configuring a VPN using the VPN module:

Loopback interfaces

Attaching a crypto map set to a loopback interface is not supported. However, you can maintain an IPsec security association database independent of physical ingress/egress interfaces with the VPN module by entering the crypto map map-name local-address interface command.

If you apply the same crypto map set to each secure interface and enter the crypto map map-name local-address interface command with interface as a loopback interface, you will have a single security association database for the set of secure interfaces.


Note In VRF mode, the VPN feature supports up to 1024 local addresses (or tunnel source addresses). This limit is across the chassis (not per VPN module).


show crypto vlan command

When the interface VLAN belongs to the VPN module inside port, the show crypto vlan command output is as follows:

Interface VLAN 2 on IPsec Service Module port 7/1 connected to Fa8/3

When there is a crypto connection, but the VPN module inside port does not include the interface VLAN due to a misconfiguration, the output is as follows:

Interface VLAN 2 connected to Fa8/3 (no IPsec Service Module attached)


Note With Cisco IOS Release 12.2(14)SY, it is no longer possible to remove an interface VLAN from the VPN module inside port while the crypto connection to the interface VLAN exists. You must first remove the crypto connection.


show crypto engine commands

The show crypto engine command and all keyword variations (such as show crypto engine configuration) are not supported by the VPN module.

Supervisor engine switchover

After a supervisor engine switchover, the installed modules reboot and come back online. During this period, the VPN module's established tunnels (SAs) are temporarily lost and are reconstructed after the VPN module comes back online. The reconstruction is through IKE (it is not instantaneous).

Switching module removal

When you remove a switching module that has some ports participating in crypto connection, the crypto connections remain intact. When you reinsert the same type of switching module, the traffic starts to run again on all the crypto connections. You must manually remove the crypto connections that are associated with the removed switching module. You can enter the no crypto connect vlan command from any interface when the associated physical port is removed.

Rebooting a VPN module with crypto connections

When you reboot a VPN module that has crypto connections, the existing crypto connections are kept intact. The traffic starts running again when the VPN module reboots. When a crypto connection exists but the associated interface VLAN is missing from the VPN module inside port, the crypto connection is removed after the VPN module reboots.

When you remove a port VLAN or an interface VLAN with the no interface vlan command, the associated crypto connection is also removed.

With Cisco 7200 series routers and other Cisco software crypto platforms, if you configure a crypto map with an empty ACL (an ACL that is defined but has no lines) and attach the crypto map to an interface, all traffic going out of that interface is dropped. However, with the VPN module, all traffic goes out of the interface in the clear (unencrypted) state.

Handling Multicast Traffic

In Cisco IOS Release 12.2(9)YO and later releases, when a chassis contains a Switch Fabric Module the VPN module drops all multicast traffic. This action does not occur if there is no Switch Fabric Module installed. To handle this multicast traffic issue, in Cisco IOS Release 12.2(14)SY and later releases, the Cisco IOS software recognizes when a VPN module has been inserted into a chassis where there is a Switch Fabric Module and automatically configures a SPAN session to forward the multicast traffic.


Note The Firewall Services Module (WS-SVC-FWM-1-K9) and the Multiprocessor WAN Application Module (WS-SVC-MWAM-1) have the same multicast traffic issues as the VPN module. Although this publication covers the VPN module only, note that the other two service modules behave exactly as the VPN module when handling multicast traffic.


See Table 3 for the descriptions of the switching modes that are used when the Switch Fabric Module is installed.

Table 3 Switching Modes with Switch Fabric Module Installed

Modules
Switching Modes

Between fabric-enabled modules (no nonfabric-enabled modules installed)

Compact

Between fabric-enabled modules (when nonfabric-enabled modules are also installed)

Truncated

Between fabric-enabled and nonfabric-enabled modules

Flow-through

Between non-fabric-enabled modules

Flow-through


Follow these guidelines for multicast traffic:

With a Supervisor Engine 2, if there are two local SPAN sessions or one Remote SPAN (RSPAN) source session configured, the Cisco IOS software cannot generate another session for the VPN module multicast traffic. With this configuration, when you insert a VPN module, a syslog message is displayed directing you to remove one SPAN session.

When you insert a VPN module and the system is in compact mode, one SPAN session is used (if available). If the system is in flow-through mode or truncated mode, the VPN module uses flow-through mode.

If you install multiple service modules with the multicast traffic issue, they use the same SPAN session for forwarding multicast traffic. Use the show monitor command to display the current SPAN configuration.

If you insert a VPN module in a chassis that is in compact mode and the two local SPAN sessions or one Remote SPAN (RSPAN) source session are already configured, the switch is put in compact mode. In this situation, all multicast traffic that is sourced from the VPN module is dropped. A syslog message is displayed directing you to remove one SPAN session.

With a VPN module installed, if you insert a Switch Fabric Module in a chassis that is in flow-through mode and the two local SPAN sessions or one Remote SPAN (RSPAN) source session are already configured, the switch is put in compact mode. In this situation, all multicast traffic that is sourced from the VPN module is dropped. A syslog message is displayed directing you to remove one SPAN session.

If you insert a VPN module in a chassis that is in compact mode and the VPN module uses one of the automatically configured SPAN sessions without any problems, the system allows you to remove the VPN module and then manually configure both SPAN sessions. However, if you reinsert the VPN module, it is put in compact mode. In this situation, all multicast traffic that is sourced from the VPN module is dropped. A syslog message is displayed directing you to remove one SPAN session.

When you remove the last service module with the multicast issue from a chassis, the automatically configured SPAN session is cleared and made available for other use. The automatically configured SPAN session is also cleared when the last installed service module changes from compact to flow-through mode.

If you do not want to use the automatically configured SPAN session, you can clear the session using the no monitor session session_no command.

If you have cleared the automatically configured SPAN session and then want to reconfigure it without OIRing the VPN module, use the monitor session 1 service-module command.

Configuring MTU Settings


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


There are two MTU settings on the switch:

Global—The global MTU setting is used for dropping received packets whose length is greater than the specified MTU value. The global MTU value applies to all chassis ports. You use the system jumbomtu command in the global configuration mode to specify the global MTU.

Interface—The interface MTU setting is used for fragmenting packets. You use the mtu command in the interface configuration mode to specify the interface MTU.

Configurable interface MTU values depend on the interface type as follows:

The Fast Ethernet interface MTU is 1500 bytes (fixed, not configurable).

The Gigabit Ethernet interface MTU is as follows:

On a switch port, 1500 bytes is the default (use the no mtu command) or 9216 bytes (use the mtu 9216 command).

On a routed port, use any value from 1500 bytes to 9216 bytes (use the mtu 1500-9216 command).

On a Gigabit Ethernet interface, each Gigabit Ethernet interface can have a different interface MTU value.

The MTU for WAN interfaces is a variety of values depending on the encapsulation used.

The MTU for the VPN module interfaces is 4500 bytes (fixed, not configurable).

The switch makes forwarding decisions that are based on the MTU settings as follows:

The interface MTU setting is 1500 bytes. If the received packet length is greater than 1500 bytes, the packets are dropped.

The interface MTU setting is greater than 1500 bytes:

If the received packet length is greater than the global MTU value, the packets are dropped.

If the received packet length is less than or equal to the global MTU value, routing is performed and the outgoing interface is determined as the result of routing. Then, one of the following conditions apply:

If the received packet length is greater than the outgoing interface's interface MTU value, the packets are sent to the MSFC2 to be fragmented.

If the received packet length is less than or equal to the outgoing interface's interface MTU value, the packets are sent directly to the outgoing interface through hardware (PFC2).

If a packet goes to the MSFC for fragmentation, the GRE encapsulation is also done by the MSFC (this behavior does not apply to Cisco IOS Release 12.2(9)YO4 where the MSFC already handles the GRE encapsulation).

In Cisco IOS Release 12.2(18)SXF, the GRE fragmentation behavior of the VPN module is changed to be consistent with the fragmentation behavior of the route processor. For additional information, see the "Using GRE Tunneling" section.


Note For additional information on fragmentation of packets, see the "Using Look-Ahead Fragmentation" section.


Configuring Trunk Ports


Caution When you configure an Ethernet port as a trunk port, all the VLANs are allowed on the trunk port by default. This default configuration does not work well with the VPN module and causes network loops.

When you configure a trunk port for cryptographic connection, do not use the "all VLANs allowed" default. You need to explicitly specify all the desirable VLANs using the switchport trunk allowed vlan vlan-list command.

To verify the VLANs allowed by a trunk port, enter the show interface trunk command or the show int interface trunk command. The following display shows that all VLANs are allowed:

Router# show interfaces GigabitEthernet 2/1 trunk

Port      Mode         Encapsulation  Status        Native vlan
Gi2/1     on           802.1q         trunking      1

Port      Vlans allowed on trunk
Gi2/1     1-4094

Port      Vlans allowed and active in management domain
Gi2/1     1-4,7-8,513,1002-1005

Port      Vlans in spanning tree forwarding state and not pruned
Gi2/1     1-4,7-8,513,1002-1005
Router#

Due to an incorrect startup configuration or through the default trunk port configuration, an interface VLAN might be associated with a trunk port. When you try to remove the interface VLAN from the VLAN list, you might receive an error message similar to the following:

Router# conf t
Router(config)# int g1/1
Router(config-if)# switchport trunk allowed vlan rem 71
Command rejected:VLAN 61 is crypto connected to Vl62.

To remove the interface VLAN from the VLAN list, enter the following commands:

Router# conf t
Router(config)# int g1/1
Router(config-if)# no switchport mode trunk
Router(config-if)# switchport trunk allowed vlan 1
Router(config-if)# switchport mode trunk
Router(config-if)# switchport trunk allowed vlan add vlan-list

Note VLANs in the vlan-list must not include any interface VLANs.


To avoid having an interface VLAN incorrectly associated with a trunk port, when you put an Ethernet port into the trunk mode, enter the following commands in the exact order given:

Router# conf t
Router(config)# int g1/1
Router(config)# no shut
Router(config-if)# switchport 
Router(config-if)# switchport trunk allowed vlan 1
Router(config-if)# switchport trunk encapsulation dot1q
Router(config-if)# switchport mode trunk
Router(config-if)# switchport trunk allowed vlan add vlan-list

Note VLANs in the vlan-list must not include any interface VLANs.


A common mistake when configuring a trunk port occurs when you use the add option as follows: switchport trunk allowed vlan add 100. If the switchport trunk allowed vlan vlan-list command has not already been used, the add option does not make VLAN 100 the only allowed VLAN on the trunk port; all VLANs are still allowed after entering the command because all the VLANs are allowed by default. After you use the switchport trunk allowed vlan vlan-list command to add a VLAN, you can then use the switchport trunk allowed vlan add vlan-list command to add additional VLANs.


Note To remove unwanted VLANs from a trunk port, use the switch trunk allowed vlan remove command.



Caution Do not enter the switchport trunk allowed vlan all command on a secured trunk port. In addition, do not set the VPN module inside and outside ports to "all VLANs allowed."

Configuring the VPN Module Inside Port and Outside Port

Follow these guidelines for configuring the VPN module inside port and outside port:

Do not configure the VPN module outside port. Cisco IOS software configures the port automatically.

For Cisco IOS Release 12.2(17b)SXA or later releases: Do not configure the VPN module inside trunk port. Cisco IOS software configures the port automatically based on the crypto engine slot command. For details, see the "Configuring the VPN Module Using the crypto engine slot Command" section.

Do not change the port characteristics of the VPN module inside port. If you accidentally change the port characteristics, enter the following commands to return the port characteristics to the defaults:

Router(config-if)# switchport
Router(config-if)# no switchport access vlan
Router(config-if)# switchport trunk allowed vlan 1,1002-1005
Router(config-if)# switchport trunk encapsulation dot1q
Router(config-if)# switchport mode trunk

Do not remove a VLAN from the VPN module inside port. The running traffic stops when you remove an interface VLAN from the VPN module inside port while the crypto connection to the interface VLAN exists. The crypto connection is not removed and the crypto connect vlan command still shows up in the show running-config command display. If you enter the write memory command with this running configuration, your startup-configuration file would be misconfigured.


Note With Cisco IOS Release 12.2(14)SY, it is no longer possible to remove an interface VLAN from the VPN module inside port while the crypto connection to the interface VLAN exists. You must first remove the crypto connection.


Do not remove a VLAN from the VPN module outside port. The running traffic stops when you remove a port VLAN from the VPN module outside port while the crypto connection to the interface VLAN exists. The crypto connection is not removed and the crypto connect vlan command still shows up in the show running-config command display. Removing a VLAN from the VPN module outside port does not affect anything in the startup-configuration file because the port VLAN is automatically added to the VPN module outside port when the crypto connect vlan command is entered.

Using Multiple VPN Modules in a Chassis


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


Follow these guidelines when configuring multiple VPN modules in a chassis:

You can deploy up to ten VPN modules in a single chassis, with the restriction that no more than one VPN module may be used to perform IPsec services for any given interface VLAN.

Note that using the no switchport command followed by the switchport command re-adds all VLANs to a trunk port (this situation occurs when you are first switching to a routed port and then back to a switch port). For detailed information on configuring trunks, see the "Trunks" section in the "Interaction with Other Features" section.

As with single VPN module deployments, you must properly configure each VPN module's inside and outside port. You can add an interface VLAN only to the inside port of one VPN module. Do not add the same interface VLAN to the inside port of more than one VPN module.

Assigning interface VLANs to the inside ports of the VPN modules allow you to decide which VPN module can be used to provide IPsec services for a particular interface VLAN.


Note There is no support for using more than one VPN module to do IPsec processing for a single interface VLAN.



Note For Cisco IOS Release 12.2(17b)SXA or later releases: It is no longer necessary to explicitly add interface VLANs to the inside trunk ports of the VPN modules. Use the crypto engine slot command to achieve the same results. For information on using the crypto engine slot command, see the "Configuring the VPN Module Using the crypto engine slot Command" section.


SA-based load balancing is not supported.

The crypto map local address command does not cause SA databases to be shared among multiple VPN modules.

A summary of the switch 1 configuration that is used in the configuration example is as follows (see Figure 9).


Note For Cisco IOS Release 12.2(17b)SXA or later releases: A configuration example using the crypto engine slot command follows the configuration example below.


A VPN module is in slot 2 and slot 3 of switch 1.

In the configuration example, three exclamation points (!!!) precede descriptive comments.

Figure 9 Configuring Multiple VPN Modules Example

The following is a configuration example for switch 1:

crypto isakmp policy 1
 encr 3des
 hash md5
 authentication pre-share
 group 2
crypto isakmp key mykey address 10.8.1.1
crypto isakmp key mykey address 10.13.1.1
!
crypto ipsec transform-set xform1 ah-md5-hmac esp-des esp-sha-hmac
crypto ipsec transform-set xform2 esp-3des esp-sha-hmac
!
!!! crypto map applied to VLAN 12, which is
!!! assigned to "inside" port of VPN-SM in slot 3
crypto map cmap2 10 ipsec-isakmp
 set peer 10.8.1.1
 set transform-set xform1
 match address 102
!
!!! crypto map applied to VLAN 20, which is
!!! assigned to "inside" port of VPN-SM in slot 2
crypto map cmap3 10 ipsec-isakmp
 set peer 10.13.1.1
 set transform-set xform2
 match address 103
!
!!! "inside" port of VPN-SM in slot 2:
!!! encrypts traffic from VLAN 20, sending encrypted
!!! packets to VLAN 19 via "outside" port Gig2/2
interface GigabitEthernet2/1
 no ip address
 flowcontrol receive on
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,20,1002-1005
 switchport mode trunk
 cdp enable
!
!!! "outside" port of VPN-SM in slot 2:
!!! decrypts traffic from VLAN 19, sending decrypted
!!! packets to VLAN 20 via "inside" port Gig2/1
interface GigabitEthernet2/2
 no ip address
 flowcontrol receive on
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,19,1002-1005
 switchport mode trunk
 cdp enable
!
!!! "inside" port of VPN-SM in slot 3:
!!! encrypts traffic from VLAN 12, sending encrypted
!!! packets to VLAN 11 via "outside" port Gig3/2
interface GigabitEthernet3/1
 no ip address
 flowcontrol receive on
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,12,1002-1005
 switchport mode trunk
 cdp enable
!
!!! "outside" port of VPN-SM in slot 3:
!!! decrypts traffic from VLAN 11, sending decrypted
!!! packets to VLAN 12 via "inside" port Gig3/1
interface GigabitEthernet3/2
 no ip address
 flowcontrol receive on
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,11,1002-1005
 switchport mode trunk
 cdp enable
!
!!! "port" VLAN, crypto connected to VLAN 12 by VPN-SM on slot 3
interface Vlan11
 no ip address
 crypto connect vlan 12
!
!!! "interface" VLAN, assigned to VPN-SM on slot 3
interface Vlan12
 ip address 10.8.1.2 255.255.0.0
 crypto map cmap2
!
!!! "port" VLAN, crypto connected to VLAN 20 by VPN-SM on slot 2
interface Vlan19
 no ip address
 crypto connect vlan 20
!
!!! "interface" VLAN, assigned to VPN-SM on slot 2
interface Vlan20
 ip address 10.13.1.2 255.255.0.0
 crypto map cmap3
!
!!! connected to Host 1
interface FastEthernet6/1
 ip address 10.9.1.2 255.255.255.0
!
!!! connected to Host 2
interface FastEthernet6/2
 ip address 10.9.2.2 255.255.255.0
!
!!! connected to Switch 2
interface GigabitEthernet5/3
 switchport
 switchport mode access
 switchport access vlan 11
!
!!! connected to Switch 2
interface GigabitEthernet5/4
 switchport
 switchport mode access
 switchport access vlan 19
!
ip classless
!
!!! packets from Host 1 to Host 3 are routed from FastEthernet6/1
!!! to VLAN 12, encrypted with crypto map cmap2
!!! using VPN-SM in slot 3, and forwarded to peer 10.8.1.1
!!! through GigabitEthernet5/3
ip route 10.6.1.4 255.255.255.255 10.8.1.1
!
!!! packets from Host 2 to Host 4 are routed from FastEthernet6/2
!!! to VLAN 20, encrypted with crypto map cmap3
!!! using VPN-SM in slot 2, and forwarded to peer 10.13.1.1
!!! through GigabitEthernet5/4
ip route 10.6.2.1 255.255.255.255 10.13.1.1
!
!!! ACL matching traffic between Host 1 and Host 3
access-list 102 permit ip host 10.9.1.3 host 10.6.1.4
!
!!! ACL matching traffic between Host 2 and Host 4
access-list 103 permit ip host 10.9.2.1 host 10.6.2.1

For Cisco IOS Release 12.2(17b)SXA or later releases:

The following is a configuration example for switch 1 using the crypto engine slot command:


crypto isakmp policy 1 
 encr 3des 
 hash md5 
 authentication pre-share 
 group 2 
crypto isakmp key mykey address 10.8.1.1 
crypto isakmp key mykey address 10.13.1.1 
! 
crypto ipsec transform-set xform1 ah-md5-hmac esp-des esp-sha-hmac 
crypto ipsec transform-set xform2 esp-3des esp-sha-hmac 
! 
!!! crypto map applied to VLAN 12, which is 
!!! assigned to "inside" port of VPN-SM in slot 3 
crypto map cmap2 10 ipsec-isakmp 
 set peer 10.8.1.1 
 set transform-set xform1 
 match address 102 
! 
!!! crypto map applied to VLAN 20, which is 
!!! assigned to "inside" port of VPN-SM in slot 2 
crypto map cmap3 10 ipsec-isakmp 
 set peer 10.13.1.1 
 set transform-set xform2 
 match address 103 
! 
!!! "port" VLAN, crypto connected to VLAN 12 by VPN-SM on slot 3 
interface Vlan11 
 no ip address 
 crypto connect vlan 12 
! 
!!! "interface" VLAN, assigned to VPN-SM on slot 3 
interface Vlan12 
 ip address 10.8.1.2 255.255.0.0 
 crypto map cmap2 
 crypto engine slot 3 
! 
!!! "port" VLAN, crypto connected to VLAN 20 by VPN-SM on slot 2 
interface Vlan19 
 no ip address 
 crypto connect vlan 20 
! 
!!! "interface" VLAN, assigned to VPN-SM on slot 2 
interface Vlan20 
 ip address 10.13.1.2 255.255.0.0 
 crypto map cmap3 
 crypto engine slot 2 
! 
!!! connected to Host 1 
interface FastEthernet6/1 
 ip address 10.9.1.2 255.255.255.0 
! 
!!! connected to Host 2 
interface FastEthernet6/2 
 ip address 10.9.2.2 255.255.255.0 
! 
!!! connected to Switch 2 
interface GigabitEthernet5/3 
 switchport 
 switchport mode access 
 switchport access vlan 11 
! 
!!! connected to Switch 2 
interface GigabitEthernet5/4 
 switchport 
 switchport mode access 
 switchport access vlan 19 
! 
ip classless 
! 
!!! packets from Host 1 to Host 3 are routed from FastEthernet6/1 
!!! to VLAN 12, encrypted with crypto map cmap2 
!!! using VPN-SM in slot 3, and forwarded to peer 10.8.1.1 
!!! through GigabitEthernet5/3 
ip route 10.6.1.4 255.255.255.255 10.8.1.1 
! 
!!! packets from Host 2 to Host 4 are routed from FastEthernet6/2 
!!! to VLAN 20, encrypted with crypto map cmap3 
!!! using VPN-SM in slot 2, and forwarded to peer 10.13.1.1 
!!! through GigabitEthernet5/4 
ip route 10.6.2.1 255.255.255.255 10.13.1.1 
! 
!!! ACL matching traffic between Host 1 and Host 3 
access-list 102 permit ip host 10.9.1.3 host 10.6.1.4 
! 
!!! ACL matching traffic between Host 2 and Host 4 
access-list 103 permit ip host 10.9.2.1 host 10.6.2.1 

Using IPsec Stateful Failover and the VPN Module


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.



Note With Cisco IOS Release 12.2(18)SXD1 and later releases up to Cisco IOS Release 12.2(18)SXE, chassis-to-chassis failover is supported only in crypto-connect mode (LAN-to-LAN or remote access), it is not supported with GRE or VRF. With Cisco IOS Release 12.2(18)SXE and later releases, chassis-to-chassis failover is supported in VRF mode (but is not supported with GRE).


For complete configuration information for Cisco IOS IPsec stateful failover support, refer to this URL: http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6586/ps6635/white_paper_c11_472859.html

Follow these guidelines when configuring IPsec stateful failover:

When configuring an IPsec stateful failover with the VPN module, note that all VPN module configuration rules apply. You must apply crypto maps to interface VLANs, and you must attach interface VLANs to the VPN module inside port.

When configuring an IPsec stateful failover with a VPN module in two chassis, note that the hardware configurations of both chassis must be exactly the same. For example, in one chassis if the VPN module that is in slot 2 is used to protect interface VLAN 100 and the VPN module that is in slot 3 is used to protect interface VLAN 101, the exact same configuration must be reflected in the second chassis. An example of a misconfiguration would be if the VPN module in slot 3 of the second chassis is used to protect interface VLAN 100.

Do not use an IPsec stateful failover with Easy-VPN clients or IKE keepalives. An IPsec stateful failover may be used with peers when DPD is used.

Do not add nonexistent or inadequately configured HSRP standby groups to the state synchronization protocol (SSP) configuration because this action disables high-availability features until the configuration is corrected.

The recommended HSRP timer values are 1 second for hello timers and 3 seconds for hold timers. These values should prevent an undesirable failover that is caused by temporary network congestion or transient, high CPU loads.

These timer values can be adjusted upward if you are running high loads or have a large number of HSRP groups. Temporary failures and load-related system stability can be positively affected by raising the timer values as needed. The hello timer value should be approximately a third of the hold timer value.

Use the HSRP "delay" timers to allow a device to finish booting/initializing/synchronizing before participating as a high-availability pair. Set the "minimum" delay at 30 seconds or more to help prevent active/standby flapping and set the "reload" delay at some value greater than the minimum. You can use the delay timers to reflect the complexity and size of a particular configuration on various hardware. The delay timers tend to vary from platform to platform.

Sequence number updates from active to standby have a 20-second minimum interval per SA.

Due to dependence on HSRP, an IPsec stateful failover does not work for secured WAN ports (IPsec over FlexWAN module port adapters).

Use the reverse route injection (RRI) feature to allow dynamic routing information updates during the HSRP and IPsec failover. For complete configuration information on RRI support, refer to this URL: http://www.cisco.com/en/US/partner/tech/tk583/tk372/technologies_tech_note09186a00800942f7.shtml

The following is a configuration example for the active chassis that is configured for an IPsec stateful failover (at the end of this example, see the configuration example for the standby chassis):


Note These configuration examples do not protect the SSP traffic. To protect the SSP traffic, you will need to define a new crypto map and attach it to the SSP interface without the "ssp" tag. The ACL for this crypto map can be derived from the remote IP address and the TCP port that are defined in the SSP group.


Active# show run
Building configuration...

Current configuration : 2235 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Active
!
boot system flash sup-bootflash:
!
redundancy
 main-cpu
  auto-sync standard
ip subnet-zero
!
!
no ip domain-lookup
!
!
ssp group 100
 remote 40.0.0.2
 redundancy KNIGHTSOFNI
no mls ip multicast aggregate
no mls ip multicast non-rpf cef
!
crypto isakmp policy 1
 encr 3des
 authentication pre-share
crypto isakmp key NEEWOMM address 0.0.0.0 0.0.0.0
crypto isakmp ssp 100
!
!
crypto ipsec security-association lifetime seconds 86400
!
crypto ipsec transform-set TS1 esp-3des esp-sha-hmac 
!
crypto map ha ha replay-interval inbound 10 outbound 1000
crypto map ha 10 ipsec-isakmp   
 set peer 172.16.31.3
 set transform-set TS1 
 match address 101
!
!
spanning-tree extend system-id
no spanning-tree vlan 4
!
!
!
interface GigabitEthernet1/1
 no ip address
 no ip redirects
 crypto connect vlan 4
!
interface GigabitEthernet1/2
 ip address 40.0.0.1 255.255.255.0
 no ip redirects
 standby delay minimum 35 reload 60
 standby ip 40.0.0.100
 standby timers 1 3 
 standby preempt
 standby track GigabitEthernet1/1
!
interface GigabitEthernet3/1
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,4,1002-1005
 switchport mode trunk
 flowcontrol receive on
 cdp enable
!
interface GigabitEthernet3/2
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 flowcontrol receive on
 cdp enable
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan4
 ip address 172.16.31.1 255.255.255.0
 standby delay minimum 35 reload 60
 standby ip 172.16.31.100
 standby timers 1 3
 standby preempt
 standby name KNIGHTSOFNI
 standby track GigabitEthernet1/1
 standby track GigabitEthernet1/2
 crypto map ha ssp 100
!
ip classless
ip route 10.11.1.1 255.255.255.255 172.16.31.3
no ip http server
ip pim bidir-enable
!
access-list 101 permit ip host 40.0.0.3 host 10.11.1.1
arp 127.0.0.12 0000.2100.0000 ARPA
!
!
!
line con 0
line vty 0 4
 login
 transport input lat pad mop telnet rlogin udptn nasi ssh
!         
end

The following is a configuration example for the standby chassis that is configured for IPsec stateful 
failover:

StandBy# show run
Building configuration...

Current configuration : 2236 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname StandBy
!
boot system flash sup-bootflash:
!
redundancy
 main-cpu
  auto-sync standard
ip subnet-zero
!
!
no ip domain-lookup
!
!
ssp group 100
 remote 40.0.0.1
 redundancy KNIGHTSOFNI
no mls ip multicast aggregate
no mls ip multicast non-rpf cef
!
crypto isakmp policy 1
 encr 3des
 authentication pre-share
crypto isakmp key NEEWOMM address 0.0.0.0 0.0.0.0
crypto isakmp ssp 100
!
!
crypto ipsec security-association lifetime seconds 86400
!
crypto ipsec transform-set TS1 esp-3des esp-sha-hmac 
!
crypto map ha ha replay-interval inbound 10 outbound 1000
crypto map ha 10 ipsec-isakmp   
 set peer 172.16.31.3
 set transform-set TS1 
 match address 101
!
!
spanning-tree extend system-id
no spanning-tree vlan 4
!
!
!
interface GigabitEthernet1/1
 no ip address
 no ip redirects
 crypto connect vlan 4
!
interface GigabitEthernet1/2
 ip address 40.0.0.2 255.255.255.0
 no ip redirects
 standby delay minimum 35 reload 60
 standby ip 40.0.0.100
 standby timers 1 3
 standby preempt
 standby track GigabitEthernet1/1
!
interface GigabitEthernet3/1
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,4,1002-1005
 switchport mode trunk
 flowcontrol receive on
 cdp enable
!
interface GigabitEthernet3/2
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 flowcontrol receive on
 cdp enable
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan4
 ip address 172.16.31.2 255.255.255.0
 standby delay minimum 35 reload 60
 standby ip 172.16.31.100
 standby timers 1 3
 standby preempt
 standby name KNIGHTSOFNI
 standby track GigabitEthernet1/1
 standby track GigabitEthernet1/2
 crypto map ha ssp 100
!
ip classless
ip route 10.11.1.1 255.255.255.255 172.16.31.3
no ip http server
ip pim bidir-enable
!
access-list 101 permit ip host 40.0.0.3 host 10.11.1.1
arp 127.0.0.12 0000.2100.0000 ARPA
!
!
!
line con 0
line vty 0 4
 login
 transport input lat pad mop telnet rlogin udptn nasi ssh
!         
end

Using IPsec NAT Transparency


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


For complete configuration information for Cisco IOS IPsec NAT transparency support, refer to this URL: http://www.cisco.com/en/US/docs/ios/12_2t/12_2t13/feature/guide/ftipsnat.html

There is no VPN module-specific configuration requirements or restrictions for IPsec NAT transparency. Use the standard Cisco IOS configuration that is described at the above URL.

Using TopN Acceleration


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.



Note TopN acceleration is not supported in Cisco IOS Releases 12.2(18)SXD and 12.2(18)SXD1.


For complete configuration information for TopN acceleration support, refer to this URL: http://www.cisco.com/en/US/docs/ios/12_2t/fun/command/reference/fft310.html

Using IPsec Anti-Replay Window Size Expansion


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


The per-security association (SA) anti-replay window size has been increased to 64 from 32. No configuration is required to obtain the larger anti-replay window size.

Using Easy-VPN Client


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.



Caution You need to clear all other crypto configurations from your running configuration on the Cisco IOS-based Easy-VPN client that you are using to connect to the VPN module. If an ISAKMP policy is configured, it takes precedence over the preinstalled Easy-VPN ISAKMP policies and the connection will fail. Other clients such as the VPN3000 and PIX systems running Easy-VPN will prevent you from configuring Easy-VPN unless all crypto configurations are removed.

For complete configuration information for Easy-VPN client support, refer to this URL: http://www.cisco.com/en/US/products/sw/secursw/ps2308/products_user_guide_chapter09186a00800e7251.html#xtocid2

For complete configuration information for Easy-VPN server (router side) support, refer to this URL: http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_feature_guide09186a0080087d1e.html

The following is a configuration example of the router-side configuration:

!
version 12.2
!
hostname User1
!
boot system flash:c6sup22-jk2sv-mz
logging snmp-authfail
logging buffered 1000000 debugging
aaa new-model
aaa authentication login authen local
aaa authorization network author local
!
username unity password 0 uc
ip subnet-zero
no ip source-route
!
mpls ldp logging neighbor-changes
mls flow ip destination
mls flow ipx destination
!
crypto isakmp policy 1
 encr 3des
 hash md5
 authentication pre-share
 group 2
crypto isakmp key 12345 address 0.0.0.0 0.0.0.0
crypto isakmp keepalive 10 2
!
crypto isakmp client configuration group group1
 key 12345
 domain cisco.com
 pool pool1
!
crypto isakmp client configuration group default
 key 12345
 domain cisco.com
 pool pool2
!
crypto ipsec transform-set myset3 esp-3des esp-md5-hmac
!
crypto dynamic-map test_dyn 1
 set transform-set myset3
 reverse-route
!
! Static client mapping
crypto map testtag client authentication list authen
crypto map testtag isakmp authorization list author
crypto map testtag client configuration address respond
crypto map testtag 10 ipsec-isakmp
 set peer 10.5.1.4
 set security-association lifetime seconds 900
 set transform-set myset3
 match address 109
!
! Dynamic client mapping
crypto map test_dyn client authentication list authen
crypto map test_dyn isakmp authorization list author
crypto map test_dyn client configuration address respond
crypto map test_dyn 1 ipsec-isakmp dynamic test_dyn
!
!
no spanning-tree vlan 513
!
redundancy
  main-cpu
  auto-sync running-config
  auto-sync standard
!
interface GigabitEthernet2/1
 no ip address
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,513,1002-1005
 switchport mode trunk
!
interface GigabitEthernet2/2
 no ip address
 shutdown
!
interface GigabitEthernet6/1
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,513,1002-1005
 switchport mode trunk
 cdp enable
!
interface GigabitEthernet6/2
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,2,1002-1005
 switchport mode trunk
 cdp enable
!
interface Vlan1
 no ip address
 shutdown
!
interface Vlan2
 no ip address
 crypto connect vlan 513
!
interface Vlan513
 ip address 10.5.1.1 255.255.0.0
 crypto map test_dyn
!
ip local pool pool1 22.0.0.2
ip local pool pool2 23.0.0.3
ip classless
ip pim bidir-enable
!
access-list 109 permit ip host 10.5.1.1 host 22.0.0.2
arp 127.0.0.12 0000.2100.0000 ARPA
!
snmp-server enable traps tty
snmp-server enable traps ipsec tunnel start
snmp-server enable traps ipsec tunnel stop
!
line con 0
line vty 0 4
 password lab
 transport input lat pad mop telnet rlogin udptn nasi
!
end

Using Dead-Peer-Detection


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


For complete configuration information for Cisco IOS Dead-Peer-Detection (DPD) support, refer to this URL:
http://www.cisco.com/en/US/products/sw/secursw/ps2308/products_user_guide_chapter09186a00800ecb3d.html

Using WAN Interfaces


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


Follow these guidelines when configuring WAN interfaces:

Configuring WAN interfaces is the same as configuring Ethernet routed interfaces. From the WAN subinterface, make a crypto connection to the interface VLAN as follows:

interface Vlan101
ip address 192.168.101.1 255.255.255.0
no mop enabled
crypto map cwan

interface ATM6/0/0.101 point-to-point
pvc 0/101
crypto connect vlan 101

You must configure a crypto connection on subinterfaces for ATM and Frame Relay. For example, the following configuration will not work:

interface ATM6/0/0
pvc 0/101
crypto connect vlan 101

For ATM and Frame Relay, there is no SVC support, no RFC-1483/1490 bridging, and no point-to-multipoint support.

For Point-to-Point Protocol (PPP) and Multilink PPP (MLPPP), you must make the physical interface passive for routing protocols, as follows:

router ospf 10
        passive-interface multilink1

For PPP and MLPPP, there is no Bridging Control Protocol (BCP) support.

WAN interface configuration examples are as follows:

Crypto Connection for a Channelized T3 Port Adapter in the FlexWAN Module

Crypto Connection for an ATM Port Adapter in the FlexWAN Module

Crypto Connection for a POS Port Adapter in the FlexWAN Module

Crypto Connection for a Channelized T3 Port Adapter in the FlexWAN Module

The configuration for this example is as follows:

The FlexWAN module is in slot 2.

The channelized T3 port adapter is in bay 0.

The VPN module is in slot 5.

VLAN 201—serial2/0/0/1:0 (HDLC)

VLAN 206—serial2/0/0/6:0 (PPP)

VLAN 211—multilink1 (MLPPP)

!
controller T3 2/0/0
 t1 1 channel-group 0 timeslots 1-24
 t1 2 channel-group 0 timeslots 1-24
 t1 3 channel-group 0 timeslots 1-24
 t1 4 channel-group 0 timeslots 1-24
 t1 5 channel-group 0 timeslots 1-24
 t1 6 channel-group 0 timeslots 1-24
 t1 7 channel-group 0 timeslots 1-24
 t1 8 channel-group 0 timeslots 1-24
 t1 9 channel-group 0 timeslots 1-24
 t1 10 channel-group 0 timeslots 1-24
 t1 11 channel-group 0 timeslots 1-24
 t1 12 channel-group 0 timeslots 1-24
 t1 13 channel-group 0 timeslots 1-24
 t1 14 channel-group 0 timeslots 1-24
 t1 15 channel-group 0 timeslots 1-24
 t1 16 channel-group 0 timeslots 1-24
 t1 17 channel-group 0 timeslots 1-24
 t1 18 channel-group 0 timeslots 1-24
 t1 19 channel-group 0 timeslots 1-24
 t1 20 channel-group 0 timeslots 1-24
 t1 21 channel-group 0 timeslots 1-24
 t1 22 channel-group 0 timeslots 1-24
 t1 23 channel-group 0 timeslots 1-24
 t1 24 channel-group 0 timeslots 1-24
 t1 25 channel-group 0 timeslots 1-24
 t1 26 channel-group 0 timeslots 1-24
 t1 27 channel-group 0 timeslots 1-24
 t1 28 channel-group 0 timeslots 1-24
!
!
interface Multilink1
 ip unnumbered Vlan211
 no cdp enable
 ppp multilink
 multilink-group 1
 crypto connect vlan 211
!
interface Serial2/0/0/1:0
 no ip address
 no fair-queue
 no cdp enable
 crypto connect vlan 201
!
interface Serial2/0/0/6:0
 ip unnumbered Vlan206
 encapsulation ppp
 no fair-queue
 no cdp enable
 crypto connect vlan 206
!
interface Serial2/0/0/11:0
 no ip address
 encapsulation ppp
 no cdp enable
 ppp chap hostname m1
 ppp multilink
 multilink-group 1
!
interface Serial2/0/0/12:0
 no ip address
 encapsulation ppp
 no cdp enable
 ppp chap hostname m1
 ppp multilink
 multilink-group 1
!
interface Serial2/0/0/13:0
 no ip address
 encapsulation ppp
 no cdp enable
 ppp chap hostname m1
 ppp multilink
 multilink-group 1
!
interface GigabitEthernet5/1
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,201,206,211,1002-1005
 switchport mode trunk
 cdp enable
!
interface Vlan206
 ip address 192.168.206.1 255.255.255.0
 no mop enabled
!
interface Vlan211
 ip address 192.168.211.1 255.255.255.0
 no mop enabled
!

Crypto Connection for an ATM Port Adapter in the FlexWAN Module

The configuration for this example is as follows:

The FlexWAN module is in slot 6.

The ATM port adapter is in bay 0.

The VPN module is in slot 5.

VLAN 201—serial2/0/0/1:0 (HDLC)

VLAN 101—ATM6/0/0.101

!
interface GigabitEthernet5/1
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,101,1002-1005
 switchport mode trunk
 cdp enable
!
interface ATM6/0/0
 no ip address
 atm clock INTERNAL
!
interface ATM6/0/0.101 point-to-point
 pvc 1/101 
 !
 crypto connect vlan 101
!
interface Vlan101
 ip address 192.168.101.1 255.255.255.0
 no mop enabled
!

Crypto Connection for a POS Port Adapter in the FlexWAN Module

The configuration for this example is as follows:

The FlexWAN module is in slot 6.

The POS port adapter is in bay 1.

The VPN module is in slot 5.

VLAN 16—pos6/1/0.16

!
frame-relay switching
!
!
interface GigabitEthernet5/1
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,16,1002-1005
 switchport mode trunk
 cdp enable
!
interface POS6/1/0
 no ip address
 encapsulation frame-relay
!!!
!!! The peer POS interface config does not need
!!! to have the following two lines.
!!!
 no keepalive
 clock source internal
 frame-relay intf-type dce
!
interface POS6/1/0.16 point-to-point
 no cdp enable
 frame-relay interface-dlci 16   
 crypto connect vlan 16
!
interface Vlan16
 ip address 192.168.16.1 255.255.255.0
 no mop enabled

Using Look-Ahead Fragmentation


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


Follow these guidelines for using Look-Ahead Fragmentation (LAF):

Large packets can increase the IPsec packet size beyond the MTU causing the IPsec packets to be fragmented. When this situation occurs, the receiving IPsec peer must reassemble the packets prior to decryption. This action can cause serious loading for many VPN gateway devices. The solution is to fragment the packets before IPsec decryption and let the end devices bear the reassembly load.

If there is no large packet connectivity through an IPsec peer, turn off LAF (the peer may be discarding fragments found inside the IPsec packets).

If an IPsec peer is experiencing high CPU utilization with large packet flows, verify that LAF is enabled (the peer may be reassembling large packets).

For complete configuration information for LAF, refer to this URL:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_feature_guide09186a0080115533.html

Using GRE Tunneling


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


In Catalyst 6500 series switches or Cisco 7600 series routers, GRE encapsulation and decapsulation is traditionally performed by the route processor. When routing indicates that encapsulated packets for a GRE tunnel will egress through an interface VLAN that is attached to a VPN module inside port, that VPN module will seize the GRE tunnel when certain criteria are met. By seizing the tunnel, the VPN module takes the GRE encapsulation and decapsulation duty from the route processor. This action offloads the route processor from packet-processing tasks and also allows GRE scaling with additional VPN modules.

No explicit configuration changes are required to use this feature; configure GRE as you normally would. If routing sends the GRE-encapsulated packets out an interface VLAN, and all other takeover criteria are met, the VPN module will seize the GRE tunnel.

The GRE takeover behavior of the VPN module varies by software release as follows:

In Cisco IOS Release 12.2(9)YO and additional YO builds, the route processor performs all GRE encapsulation and decapsulation.

Beginning with Cisco IOS Release 12.2(14)SY, the VPN module takes over GRE encapsulation and decapsulation for all GRE tunnels that egress through the VPN module. However, if a Distributed Forwarding Card (DFC) is present in the switch, GRE encapsulation and decapsulation is done by the route processor. In that case, the GRE performance is limited by the software.

Beginning with Cisco IOS Release 12.2(17a)SX, the VPN module takes over the GRE tunnel interface if the takeover criteria is satisfied regardless of whether a DFC daughter card is present in the switch.

Beginning with Cisco IOS Release 12.2(18)SXE, the supervisor engine performs all GRE encapsulation and decapsulation, except in the following situations for GRE tunnels that egress through the VPN module:

If IP PIM is configured on the tunnel interface, the VPN module will take over the GRE tunnel.

If a Supervisor Engine 720 is present but is unable to process the GRE tunnel interface in hardware, the VPN module will determine whether it can take over the interface. In earlier releases, if the GRE tunnel meets the criteria for takeover by both the supervisor engine and the VPN module, the VPN module overrides the supervisor engine and takes over the tunnel.

Follow these guidelines for configuring GRE tunneling:

The VPN module is able to accelerate packet processing for up to 1023 GRE tunnels per chassis with Cisco IOS Release 12.2(14)SY or later releases (1024 tunnels per chassis with Cisco IOS Release 12.2(17b)SXA or later releases; excess tunnels go through the route processor. The switch supports any number of GRE tunnels, but adding more VPN modules does not increase the 1023/1024 tunnels per-chassis maximum. If you configure more than 1023/1024 tunnels per chassis, you could overload the route processor. Monitor the route processor CPU utilization when configuring more than 1023/1024 tunnels per chassis.

If routing information changes and the GRE-encapsulated packets no longer egress through an interface VLAN, the VPN module yields the GRE tunnel. After the VPN module yields the tunnel, the route processor resumes encapsulation and decapsulation which increases CPU utilization on the route processor.


Caution Ensure that your GRE tunnel configuration does not overload the route processor.

A delay occurs (up to 10 seconds) between routing changes and the VPN module seizing the GRE tunnel.

Tunnel mode is the only GRE mode that is supported. You may use the ttl and tos options with the tunnel mode.

The following options are not supported: checksum enabled, sequence check enabled, tunnel key feature configured, and IP security options. If any of these options are specified, the VPN module will not seize the GRE tunnel.

If the crypto engine gre vpnblade command is configured but the tunnel configuration contains features that are not supported in hardware by the VPN module, the route processor performs all GRE encapsulation and decapsulation.

If the crypto engine gre supervisor command is configured but the tunnel configuration contains features that are not supported in hardware by the supervisor engine, the route processor performs all GRE encapsulation and decapsulation.

The VPN module takes over the GRE tunnels when the route to the tunnel destination (the tunnel peer) is pointing to one of the interface VLANs configured on the VPN module inside port (port 1). If the tunnel destination is reachable through one of the interface VLANs, the VPN module takes over the tunnel.

With Supervisor Engine 720 and Cisco IOS Release 12.2(18)SXE or later releases, one VLAN is used for each GRE tunnel regardless of whether the VPN module takes over the tunnel. In releases prior to Cisco IOS Release 12.2(18)SXE, two VLANS are used for Supervisor Engine 720 if, and only if, the VPN module takes over the tunnel. With Supervisor Engine 2, only one VLAN is used for all software releases if, and only if, the VPN module takes over the tunnel; no VLAN is used if the VPN module does not take over the tunnel.

Use the show crypto vlan command to verify that the VPN module has seized the GRE tunnel:

Router-2# show crypto vlan
Interface VLAN 101 on IPsec Service Module port 7/1 connected to AT4/0/0.101
    Tunnel101 is accelerated via IPsec SM in slot 7
Router-2#

GRE tunneling of all non-IP packets is done by the route processor even if the tunnel is seized by the VPN module.

Configuring "service policy" on GRE tunnel interfaces is not supported.

The GRE fragmentation behavior of the VPN module differs according to the software release as follows:

In releases earlier than Cisco IOS Release 12.2(18)SXE, the GRE fragmentation behavior of the VPN module is determined by the IP MTU of the tunnel interface and the Layer 2 MTU of the egress interface. In order to prevent fragmentation or packet loss, both the tunnel and egress interface MTU should be configured as the largest predicted GRE/IPsec packet size (IP length plus GRE overhead plus IPsec overhead). If the IP MTU of the tunnel interface is left at its default value, the GRE fragmentation behavior is determined by the Layer 2 MTU of the egress interface.

In Cisco IOS Release 12.2(18)SXE, the GRE fragmentation behavior of the VPN module is determined by the VLAN MTU and the Layer 2 MTU of the egress interface. In order to prevent fragmentation or packet loss, the VLAN MTU should be configured as the largest predicted GRE packet size (IP length plus GRE overhead), and the egress interface MTU should be configured as the largest predicted GRE/IPsec packet size (IP length plus GRE overhead plus IPsec overhead).

In Cisco IOS Release 12.2(18)SXF, the GRE fragmentation behavior of the VPN module is changed to be consistent with the fragmentation behavior of the route processor. If GRE encapsulation is performed by the VPN module, prefragmentation of outbound packets will be based on the IP MTU of the tunnel interface. After GRE encapsulation is performed by the VPN module, depending on the IPsec look ahead fragmentation (LAF) settings, further fragmentation may occur. The IPsec fragmentation behavior is unchanged from Cisco IOS Release 12.2(18)SXE, and is based on the IPsec MTU configuration of the egress interface.

For GRE tunneling configuration examples, see the "GRE Tunneling" section.

Using QoS


Note This section applies to VPN modules running Cisco IOS Release 12.2(14)SY or later releases.


The VPN module uses the QoS capabilities of the Catalyst 6500 series switches and Cisco 7600 series router software. Before configuring QoS for the VPN module, refer to this URL:

http://www.cisco.com/en/US/products/hw/switches/ps700/products_tech_note09186a008014a29f.shtml

The VPN module supports two-level, strict-priority QoS (high priority versus low priority). To take advantage of the VPN module's QoS capability, you must use standard QoS commands to ensure that the CoS of packets are marked on ingress. You must configure the CoS map for the VPN module inside and outside ports. The VPN module behaves according to the settings of the inside and outside ports. You must enable QoS globally for the VPN module to acknowledge the CoS mapping.

For example, if the CoS map of the inside and outside ports map CoS value 5 to the high-priority queue and you have globally enabled QoS, the VPN module will give traffic marked CoS 5 higher priority than traffic marked with any of the other seven CoS values. If you alter the CoS map of the inside and outside ports so that CoS 6 additionally maps to the high-priority queue, then packets marked with either CoS 5 or CoS 6 will be given higher priority within the VPN module.

As many as three high-priority CoS map values are supported per VPN module. When global QoS is enabled, the CoS value of 5 is preconfigured. This allows you to add only two more values in addition to the preconfigured CoS 5 value. For QoS configuration examples, see the "QoS" section.

Using Per-Crypto Map IPsec Security Association (SA) Idle Timers


Note This section applies to VPN modules running Cisco IOS Release 12.2(18)SXD or later releases.


When a router running Cisco IOS software creates an IPsec SA for a peer, resources must be allocated to maintain the SA. The SA requires both memory and several managed timers. For idle peers, these resources are wasted. If enough resources are wasted by idle peers, the router could be prevented from creating new SAs with other peers. The IPsec SA idle timers feature introduces a configurable idle timer to monitor SAs for activity, allowing SAs for idle peers to be deleted. The idle timers can be configured either globally, on a per-crypto map basis, or through an isakmp profile. The benefits of this feature include the following:

Increased availability of resources

Improved scalability of Cisco IOS IPsec deployments

For detailed information on configuring IPsec SA idle timers, refer to the following Cisco IOS documentation:

/en/US/docs/ios/12_2t/12_2t15/feature/guide/ftsaidle.html#wp1027129


Note The VPN module rounds up the CLI-configured interval to the nearest 10 minute interval. For example, if you configured 12 minutes for idle timeout, the VPN module uses a value of 20 minutes for idle timeout. Additionally, because of the way the VPN module does idle timeout detection, it can take anywhere between T to 3T for idle timeout detection. Therefore, in this example, idle timeout happens anywhere between 20 to 60 minutes.


Using Sequenced ACLs


Note This section applies to VPN modules running Cisco IOS Release 12.2(18)SXD or later releases.


Access-control lists (ACLs) are made up of access-control entries (ACEs). Prior to Cisco IOS Release 12.2(18)SXD, ACEs were processed in the order that they were entered. Additionally, when you deleted one ACE, all of the ACEs in the ACL were removed. With sequenced ACLs, ACEs can be entered with a sequence number in front of the ACE and the ACEs are then processed by sequence number. Additionally, ACEs can now be deleted one at a time by using the sequence number in the front of the ACE that you want to delete. The sequence numbers do not appear in the configuration but they can be displayed using the show access-list command.

Using VRF-Aware IPsec


Note This section applies to VPN modules running Cisco IOS Release 12.2(18)SXD1 or later releases.



Note Cisco IOS Release 12.2(15)T introduced VPN-aware IPsec for Cisco routers. The implementation and configuration of VPN-aware IPsec for the VPN module differs from the Cisco IOS Release 12.2(15)T version. However, refer to the 12.2(15)T documentation at the following URL for information on configuring crypto keyrings, ISAKMP profiles, and ISAKMP profile crypto maps:

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122t/122t15/ft_vrfip.htm



Note Tunnel protection is supported in the VRF-aware IPsec mode. For information on configuring tunnel protection, see the "Using Tunnel Protection" section.



Note VPN-aware IPsec with the VPN module is supported only on the Supervisor Engine 720.


These sections describe how to configure VRF-aware IPsec on the VPN module:

Functional Overview

Configuring VRF-Aware IPsec

Configuration Overview

Guidelines and Restrictions

Example Configurations

Using Tunnel Protection

Using VRF-Aware with Chassis-to-Chassis Stateless Failover

Using VRF-Aware with Chassis-to-Chassis Stateful Failover

Functional Overview

The VRF-aware IPsec feature introduces IPsec tunnel mapping to Multiprotocol Label Switching (MPLS) VPNs. Using the VRF-aware IPsec feature, you can map IPsec tunnels to Virtual Routing and Forwarding (VRF) instances using a single public-facing address.

With the VRF-aware IPsec feature, packets belonging to a specific VRF instance are routed through the VPN module for IPsec processing. Through the CLI, you associate a VRF instance with an interface VLAN that has been configured to point to the VPN module. An interface VLAN must be created for each VRF instance. Packets traveling from an MPLS cloud to the Internet that are received from an inside VRF instance are routed to an interface VLAN and then to the VPN module for IPsec processing. The VPN module modifies the packets so that they are placed on a special Layer 3 VLAN for routing to the WAN-side port after they leave the VPN module.


Note Inside VRFs are the VRFs on the unprotected (LAN) side.


Packets traveling in the inbound direction from a protected port on which the crypto engine slot command has been entered hit an ACL and are redirected to the VPN module where they are processed according to the Security Parameter Index (SPI) contained in the packet's IPsec header. Processing on the VPN module ensures that the decapsulated packet is mapped to the appropriate interface VLAN corresponding to the inside VRF. This interface VLAN has been associated with a specific VRF instance, so packets are routed within the VRF instance to the correct inside interface.

Configuring VRF-Aware IPsec

To configure the VRF-aware IPsec feature (see the example configuration in this section for assistance in following the configuration steps), perform these steps:


Step 1 Enter the ip vrf vrf_name command. A VRF instance is created with its own separate routing table.

Step 2 Enter the crypto engine mode vrf command from global configuration mode.


Note After creating a VRF instance with the ip vrf vrf_name command, the crypto engine mode vrf command should always be the next step in your configuration procedure.


Step 3 Enter the crypto map map_name command. This command attaches a crypto map to an interface VLAN.


Note If your IPsec configuration is not using tunnel protection, you must enter the crypto map map_name local-address public_interface command (Step 4) where the public_interface is the interface that has the local address of the router. After doing this, continue the procedure with Step 5.

If your IPsec configuration is using tunnel protection, you do not need to perform Steps 4, 5, and 6. Instead, enter the ip vrf forwarding vrf-name command on the tunnel interfaces. After doing this, continue the procedure with Step 7.


Step 4 Enter the crypto map map_name local-address public_interface command. In VRF mode, the VPN feature supports up to 1024 local addresses. This limit is across the chassis (not per VPN module).

Step 5 Enter the ip vrf forwarding vrf-name command on the interface VLAN.


Note The ip vrf forwarding vrf-name command clears any IP address that was previously configured on the interface.


Step 6 Enter the ip vrf forwarding vrf-name command on the inside interface.

Step 7 Enter the crypto engine slot slot_num command on the WAN-side interface.

Step 8 Enter the crypto engine slot slot_num command on the interface VLAN.

Configuration Overview

Traditional Cisco IOS IPsec with the VPN module is configured by attaching crypto maps to interface VLANs and then crypto-connecting a physical port to the interface VLAN. For VRF-aware IPsec with the VPN module, the idea of interface VLANs is preserved, but the crypto connect vlan CLI command is not used. When a packet comes into an interface on a specific VRF, the packet must get to the proper interface VLAN. A route must be installed so that packets destined for that particular subnet in that particular VRF are directed to that interface VLAN. This can be achieved through the following configuration options:

Configuring an IP address on the interface VLAN that is in the same subnet as the packets destination IP address. For example, packets are trying to reach subnet 10.1.1.x and their destination IP address is 10.1.1.1 as follows:

int vlan 100
 ip vrf forwarding coke
 ip address 10.1.1.254  255.255.255.0 <-- same subnet as 10.1.1.x that we are trying 
to reach.
 crypto map mymap
 crypto engine slot 4

Configuring a static route as follows:

ip route vrf coke 10.1.1.0 255.255.255.0 vlan 100

Configuring routing protocols. You configure BGP, OSPF, or other routing protocols so that remote routers broadcast their routes


Note Do not configure routing protocols unless you are using tunnel protection.


Configuring Reverse Route Injection (RRI). You configure RRI so that a route gets installed when the remote end initiates an IPsec session (as in remote access situations).

With VRF-aware IPsec, the router sees the interface VLAN as a point-to-point connection; the packets are placed directly onto the interface VLAN. Each VRF instance has its own interface VLAN.

When a crypto map is attached to an interface VLAN and the ip vrf forwarding command has associated that VLAN with a particular VRF instance, the software creates a point-to-point connection so that all routes pointing to the interface VLAN do not attempt to run the Address Resolution Protocol (ARP). Through normal routing within the VRF instance, packets to be processed by the VPN module are sent to the interface VLAN. You may configure features on the interface VLAN. The IP address of the interface VLAN must be on the same subnet as the desired destination subnet for packets to be properly routed.

Entering the ip vrf forwarding command on an inside interface ensures that all packets coming in on that interface are routed correctly within that VRF instance.

When you enter the crypto engine slot command on an interface and enable the crypto engine mode vrf command, a special ACL is installed that forces all incoming Encapsulating Security Payload (ESP)/Authentication Header (AH) IPsec packets addressed to a system IP address to be sent to the VPN module WAN-side port. NAT Traversal (NAT-T) packets are also directed to the VPN module by the special ACL.


Note You must enter the vrf vrf_name command from within the context of an ISAKMP profile. This command does not apply to the VRF-aware crypto infrastructure; it applies only to generic crypto processing. When the ISAKMP profile is added to a crypto map set, the VRF becomes the default VRF for all of the crypto maps in the list. Individual crypto maps may override this default VRF by specifying another policy profile that contains a different VRF. If no profile is applied to a crypto map tag, it inherits the VRF from the interface if you have configured the interface with the ip vrf forwarding command.

All packets destined for a protected outside interface received in this VRF context are placed on the associated interface VLAN. Similarly, all decapsulated ingress packets associated with this VRF are placed on the appropriate interface VLAN so that they may be routed in the proper VRF context.


An example configuration for VRF-aware IPsec follows:

ip vrf pepsi
 rd 1000:1
 route-target export 1000:1
 route-target import 1000:1
!
ip vrf coke
 rd 2000:1
 route-target export 2000:1
 route-target import 2000:1

crypto engine mode vrf

interface vlan 100
 ip vrf forwarding pepsi
 ip address 10.2.1.1 255.255.255.0
 crypto engine slot 3
 crypto map map100

interface vlan 200
 ip vrf forwarding coke
 ip address 10.2.1.1 255.255.255.0
 crypto engine slot 3
 crypto map map200

interface gi1/1 (hidden VLAN 1000)
 ip address 171.1.1.1
 crypto engine slot 3

! BASIC MPLS CONFIGURATION
mpls label protocol ldp
tag-switching tdp router-id Loopback0
mls ip multicast flow-stat-timer 9
no mls flow ip
no mls flow ipv6
!
! CONFIGURE THE INTERFACE CONNECTED TO THE MPLS BACKBONE WITH LABEL/TAG SWITCHING
interface GigabitEthernet2/12
 ip address 20.1.0.34 255.255.255.252
 logging event link-status
 speed nonegotiate
 mpls label protocol ldp
 tag-switching ip

In the above example, the gi1/1 interface is where the IPsec packets ingress/egress and the gi2/12 interface is the MPLS backbone interface configured with tag switching. Packets entering the switch through gi2/12 arrive with different tags that direct them to a specific VRF.

The VPN module is located in slot 3. VLAN 100 and VLAN 200 are allowed VLANs for interface gi3/1. Interface gi3/1 is the VPN module's clear port. All traffic that is to be encrypted enters the VPN module through the clear port and all traffic that is decrypted exits the VPN module through the clear port.

A special Layer 3 VLAN is created for the VPN module. All IPsec packets are directed to this VLAN after encapsulation so they may be Layer 3 routed. Additionally, an ACL is installed on each selected public interface (PE) configured with the crypto engine slot command. The ACL directs IPsec traffic (AH or ESP packets) addressed to a system IP address for inbound processing directly to the VPN module's secure port. Encrypted traffic exits the VPN module and decrypted traffic enters the VPN module through the secure port.

Guidelines and Restrictions

This section describes the guidelines and restrictions for using VRF-aware IPsec in Cisco IOS Release 12.2(18)SXD1 or later releases and Cisco IOS Release 12.2(18)SXE or later releases. Features listed are supported (or unsupported) in both releases unless noted otherwise:

Supported features in VRF mode are as follows:

Remote access into a VRF (provider edge [PE]) with the following:

Reverse Route Injection (RRI)

Proxy AAA (one VRF is proxied to a dedicated AAA)

Customer edge-provider edge (CE-PE) encryption using tunnel protection with the following:

Routing update propagation between CEs

IGP/eBGP routing update propagation between the PE and CEs

Overlapping IP address space in VRFs

Chassis-to-chassis stateless failover (PE to PE failover)

512 VRFs

512 TP tunnels (when configured on a PE)

Support for 1024 TP tunnels (with Cisco IOS Release 12.2(17b)SXA or later releases)

Module-to-module failover (supported in 12.2(18)SXE only)


Note See the "Using VPN Module-to-Module Failover" section.


Multicast VPN (supported in 12.2(18)SXE only)

More than one VPN module in a chassis (supported in 12.2(18)SXE only)

Supported features in crypto-connect mode are as follows:

Support for 2048 GRE/IPsec tunnels (with 12.2(18)SXD or later releases)

Chassis-to-chassis failover with generic IPsec and Radius access (RA) (stateless and stateful)

Chassis-to-chassis failover with GRE/IPsec (stateless and stateful)

Module-to-module failover with generic IPsec and RA (supported in 12.2(18)SXE only)

Non-IP version 4 traffic over TP tunnels (supported in 12.2(18)SXD1 only)

QoS support on the VPN module

DMVPN tunnels (tunnel protection and NHRP) (supported in 12.2(18)SXE only)

Unsupported features in VRF mode are as follows:

More than one VPN module in a chassis


Note Cisco IOS Release 12.2(18)SXE or later releases support more than one VPN module in a chassis. In VRF mode, there are no configuration differences between multiple VPN module operation and single VPN module operation. For multiple VPN module operation, the only change is to the output of the show crypto vlan command, an example follows:

Interface Tu1 on IPsec Service Module port Gi7/1 connected to VRF vrf1
Interface VLAN 2 on IPsec Service Module port Gi8/1 connected to VRF vrf2


Chassis-to-chassis stateful failover (PE-PE failover)

CE-PE IPsec-only tunnels

MPLS over GRE (tag switching on tunnel interfaces)

PE-PE encryption (IPsec only) over MPLS

PE-PE encryption (tunnel protection) over MPLS

Multicast VPN (MVPN) (unsupported in 12.2(18)SXD1 only)

Non-IP version 4 traffic over TP tunnels (unsupported in 12.2(18)SXE only)

Software-switched TP tunnels

QoS support on the VPN module

Policy-based routing (PBR) (unsupported in 12.2(18)SXE only)

You should not apply an ACL to the ingress interface because it will interfere with the packet flow. If an ACL is applied to the ingress interface during the configuration of VRF mode, nondeterministic behavior will result. For example, with an ingress (WAN-side, protected interface) gi 6/1:

Interface Gigabit 6/1
 crypto engine slot 6
 match address 100 <--- You should not add this ACL to the port. 
access-list 100 permit ip host 10.9.1.3 host 10.6.1.4

Unsupported features in crypto-connect mode for 12.2(18)SXD1 are as follows:

RSA-ENCR and RSA-SIG with chassis-to-chassis failover

Chassis-to-chassis failover with tunnel protection (stateless and stateful)

Tunnel protection

Xauth with stateful failover

Unsupported features in crypto-connect mode for 12.2(18)SXE are as follows:

RSA-ENCR and RSA-SIG with chassis-to-chassis failover

Chassis-to-chassis failover with tunnel protection (stateless and stateful)

Tunnel protection (without NHRP/DMVPN)

Module-to-module failover with tunnel protection

Module-to-module failover with GRE/IPsec

Xauth with stateful failover

Unsupported features in any mode for 12.2(18)SXD1 are as follows:

VPN module-to-VPN module failover

Switching between VRF and crypto-connect modes

GRE keepalives on TP tunnels

A distinct crypto map is required per interface (you cannot reuse crypto maps)

Unsupported features in any mode for 12.2(18)SXE are as follows:

Switching between VRF and crypto-connect modes

GRE keepalives on TP tunnels

GRE keepalives on multipoint GRE/DMVPN tunnels

Any GRE extension forces the tunnel to a slow path

A distinct crypto map is required per interface (you cannot reuse crypto maps)

Nested tunnels

A DMVPN hub router behind a NAT gateway

Multi-module support with DMVPN

Multicast transit traffic over DMVPN tunnels

Non-IP version 4 traffic over TP tunnels

DMVPN and chassis-to-chassis failover (SSP) enabled tunnels configured simultaneously

Tunnel mode DMVPN tunnels when spoke routers are behind a NAT device (NHRP registrations will have the nontranslated address and spoke-to-spoke tunnels will fail)

DMVPN hierarchical hubs

Reassembly of fragmented GRE packets (platform restriction)

Unlike other VPN feature configuration, when configuring the VRF-aware IPsec feature, you do not use the crypto connect vlan num command.

The VPN module supports one or more outside interfaces (the exact number is determined by your system resources).

When you create an ISAKMP profile, you must use the vrf vrf_name command.

Secondary IP addresses on interfaces is not supported.

The reverse route "remote peer" option is not supported.

Explicit front-door VRFs (FVRFs) are not supported except for the explicit global (default) VRF.

Inside VRFs (IVRFs), the VRFs on the unprotected (LAN) side are supported.

This guideline applies to 12.2(18)SXD1 only; it does not apply to 12.2(18)SXE.

Do not use the no interface vlan vlan_num command when deconfiguring a VLAN that has been configured with the ip vrf forwarding command. Using the no interface vlan vlan_num command fails to remove the VRF forwarding information from the interface. You need to deconfigure an interface the same way you configured it as shown in the following example:

Interface VLAN 100 is configured as follows:

int vlan 100
 ip vrf forwarding coke
 ip address x.x.x.x
 cmap
 crypto engine slot x

Interface VLAN 100 is deconfigured the correct way as follows:

 conf t
 int vlan 100
 no ip vrf forwarding coke
 no cmap
 no crypto engine slot x

Interface VLAN 100 is deconfigured the incorrect way as follows:

no int vlan 100

When deconfigured incorrectly, the next time the VLAN 100 interface is reconfigured, it will still be in VRF "coke" which the user will not be aware of:

conf t
int vlan 100

This behavior is tracked with caveat CSCea58224.

Because front-door VRFs (FVRFs) are not supported, there is a fundamental effect on routing protocols. If you intend to use routing protocols instead of static routes, you should use tunnel protection. This behavior is tracked with caveat CSCef42113.

With release 12.2(18)SXD1, do not use the mls mpls tunnel-recir command when configuring tunnel protection. Using this command results in nondeterministic behavior.

With release 12.2(18)SXE, you must use the mls mpls tunnel-recir command when configuring tunnel protection with MPLS.

Example Configurations

This section provides these example configurations:

VPN Module Configuration without VRF-Aware IPsec

VPN Module Configuration with VRF-Aware IPsec - Example 1

VPN Module Configuration with VRF-Aware IPsec - Example 2

VPN Module PE and CE Configuration Examples

VPN Module Configuration without VRF-Aware IPsec

The VPN module without VRF-aware IPsec configuration follows:


Note The VPN module configuration commands are in bold.


crypto engine slot 3
!
crypto isakmp policy 1
 authentication pre-share
crypto isakmp key 12345 address 0.0.0.0 0.0.0.0
!
crypto ipsec transform-set ts esp-3des esp-sha-hmac 
 mode transport
!
crypto map map 10 ipsec-isakmp   
 set peer 171.1.1.2
set transform-set ts
 match address 101
!
!
interface GigabitEthernet3/1
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,100,1002-1005
 switchport mode trunk
 flowcontrol receive on
!
interface GigabitEthernet3/2
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 flowcontrol receive on
!
interface GigabitEthernet2/1
 ip address 10.1.1.1 255.255.255.0
!
interface GigabitEthernet2/2
 no ip address
 crypto connect vlan 100
!
interface Vlan100
 ip address 171.1.1.1 255.255.255.0
 crypto map map
!
access-list 101 permit ip 10.1.1.0 0.0.0.255 10.2.1.0 0.0.0.255

VPN Module Configuration with VRF-Aware IPsec - Example 1

The VPN module with VRF-aware IPsec configuration (Example 1) follows:


Note The VPN module VRF-aware IPsec configuration commands are in bold. The minimum required commands necessary for operation are underlined.


!
ip vrf pepsi
 rd 1000:1
 route-target export 1000:1
 route-target import 1000:1
!
ip vrf coke
 rd 2000:1
 route-target export 2000:1
 route-target import 2000:1
!
crypto engine mode vrf
!
crypto keyring key0 
  pre-shared-key address 0.0.0.0 0.0.0.0 key happy-piggy
!
crypto isakmp policy 1
 authentication pre-share
crypto isakmp profile prof1
 vrf pepsi
 keyring key0
 match identity address 1.1.1.2 255.255.255.255
crypto isakmp profile prof2
 vrf coke
 keyring key0
 match identity address 2.2.2.2 255.255.255.255
!
crypto ipsec transform-set ts esp-3des esp-sha-hmac 
 mode transport
!
crypto map map100 10 ipsec-isakmp   
 set peer 171.1.1.2
 set transform-set ts
 set isakmp-profile prof1
 match address 101
!
crypto map map200 10 ipsec-isakmp   
 set peer 171.1.1.2
 set transform-set ts
 set isakmp-profile prof2
 match address 101
!
interface GigabitEthernet3/1
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,100, 200, 1002-1005
 switchport mode trunk
 flowcontrol receive on
!
interface GigabitEthernet3/2
 mtu 4500
 no ip address
 snmp trap link-status
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 flowcontrol receive on
!
interface GigabitEthernet1/1
 ip address 171.1.1.1 255.255.255.0
 crypto engine slot 3
!
interface GigabitEthernet2/1
 ip vrf forwarding pepsi
 ip address 10.1.1.1 255.255.255.0
!
interface GigabitEthernet2/2
 ip vrf forwarding coke
 ip address 10.1.1.1 255.255.255.0
!
.
.
.
!
interface Vlan100
 ip vrf forwarding pepsi
 ip address 10.2.1.1 255.255.255.0
 crypto engine slot 3
 crypto map map 100 local-address ge1/1
 crypto map map100
!
interface Vlan200
 ip vrf forwarding coke
 ip address 10.2.1.1 255.255.255.0
 crypto engine slot 3
 crypto map map 100 local-address ge1/1
 crypto map map200
!
access-list 101 permit ip 10.1.1.0 0.0.0.255 10.2.1.0 0.0.0.255

The following example shows that you may configure multiple outside interfaces and set the different peer addresses in the crypto maps accordingly.

!
interface GigabitEthernet1/1
 ip address 171.1.1.1 255.255.255.0
 crypto engine slot 3
!
!
interface GigabitEthernet1/2
 ip address 170.1.1.1 255.255.255.0
 crypto engine slot 3
!
crypto map map100 10 ipsec-isakmp   
 set peer 171.1.1.2
 set transform-set ts
 set isakmp-profile prof1
 match address 101
!
crypto map map200 10 ipsec-isakmp   
 set peer 170.1.1.2
 set transform-set ts
 set isakmp-profile prof2
 match address 101
!

The following example configuration shows that you can also configure the interface VLAN to use an IP address that is different from the actual destination network subnet, and add a static route:

!
interface Vlan100
 ip vrf forwarding pepsi
 ip address 10.3.1.1 255.255.255.0
 crypto map map100
 crypto engine slot 3
!
ip route vrf coke 10.2.1.0 255.255.255.0 Vlan 100

VPN Module Configuration with VRF-Aware IPsec - Example 2

The VPN module with VRF-aware IPsec configuration (Example 2) follows:


Note The VPN module VRF-aware IPsec configuration commands and related IPsec commands are in bold.


7600-IPsec# show run
Building configuration...

Current configuration :11492 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service counters max age 10
!
hostname 7600-Aswan
!
boot system flash disk0:s72033-jk9o3sv-mz
enable password lab
!
username lab password 0 lab
username sunil@vpn1 password 0 lab
username sunil@vpn2 password 0 lab
aaa new-model
aaa authentication login vpn group radius local
aaa authorization network vpn group radius local 
aaa accounting update periodic 30
aaa accounting network vpn start-stop group radius
!
aaa session-id common
ip subnet-zero
!
!
ip ftp username nsite
ip ftp password lab
no ip domain-lookup
!
ip vrf vpn1
 rd 100:1
 route-target export 100:1
 route-target import 100:1

!
ip vrf vpn2
 rd 101:1
 route-target export 101:1
 route-target import 101:1

!
mls ip multicast flow-stat-timer 9
no mls flow ip
no mls flow ipv6
mls qos
mls cef error action freeze
mpls label protocol ldp
mpls ldp router-id loopback0
tag-switching ip default route

!
! 
crypto keyring vpn2 
  pre-shared-key address 223.1.1.10 key vpn1123

crypto keyring vpn2 
  pre-shared-key address 223.1.1.20 key vpn2123
!
crypto isakmp policy 1
 encr 3des
 authentication pre-share
 group 2
crypto isakmp keepalive 45 3

crypto isakmp profile vpn1
 vrf vpn1
 keyring vpn1
 match identity group address 223.1.1.10 255.255.255.255

crypto isakmp profile vpn1-ra
 vrf vpn1
 match identity group vpn1group
 client authentication list vpn
 isakmp authorization list vpn
 accounting vpn
crypto isakmp profile vpn2
 vrf vpn2
 keyring vpn2
 match identity address 223.1.1.20 255.255.255.255 
!
crypto ipsec security-association lifetime seconds 80000
!
crypto ipsec transform-set VPN esp-3des esp-sha-hmac 
!
crypto dynamic-map vpn1 1
set transform-set ipsec 
set isakmp-profile vpn1-ra
!
crypto map vpn1 local-address GigabitEthernet 4/1
crypto map vpn1 10 ipsec-isakmp 
 set peer 223.1.1.10
 set transform-set VPN 
 set isakmp-profile vpn1
 match address ACL
 reverse-route
crypto map vpn 6000 ipsec-isakmp dynamic vpn1
crypto map vpn2 local-address GigabitEthernet4/1
crypto map vpn2 10 ipsec-isakmp 
 set peer 223.1.1.20
 set transform-set VPN 
 set isakmp-profile vpn2
 match address ACL
 reverse-route
!
crypto engine mode vrf
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
diagnostic cns publish cisco.cns.device.diag_results
diagnostic cns subscribe cisco.cns.device.diag_commands
!
redundancy
 mode sso
 main-cpu
 auto-sync running-config
!

vlan internal allocation policy ascending
vlan access-log ratelimit 2000
!
!
!
interface Loopback1
 description id for ldp
 ip address 101.1.1.1 255.255.255.252

!
interface FastEthernet3/1
 description MGMT-TFTP VLAN
 no ip address
 speed 100
 duplex full
 switchport
 switchport access vlan 700
 switchport mode access
!

....
....
!
interface GigabitEthernet4/1
 description Internet Link 
 ip address 30.1.1.2 255.255.255.0
 load-interval 30
 speed nonegotiate
 crypto engine slot 5
!
interface GigabitEthernet4/2
 no ip address
 shutdown
!
interface GigabitEthernet4/3
 no ip address
 shutdown 
!
interface GigabitEthernet4/4
 description To 7200-PE-1 (g0/2)
 no ip address
 load-interval 30
 speed nonegotiate
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 201,202
 switchport mode trunk
!
interface GigabitEthernet4/5
 no ip address
 shutdown
!
interface GigabitEthernet4/6
 no ip address
 shutdown
!
interface GigabitEthernet4/7
 no ip address
 load-interval 30
 speed nonegotiate
 switchport
 switchport access vlan 701
 switchport mode access
!
!
interface GigabitEthernet5/1
 description VPNSM I-VLAN's
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,101-103,1002-1005
 switchport mode trunk
 spanning-tree portfast trunk
!
interface GigabitEthernet5/2
 description VPNSM P-VLAN
 no ip address
 flowcontrol receive on
 flowcontrol 
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 spanning-tree portfast trunk
!
interface GigabitEthernet6/1
 ip address 100.1.1.1 255.255.255.0
 mpls label protocol ldp
 tag-switching ip
!
interface GigabitEthernet6/2
 no ip address
 shutdown
!
!
interface Vlan101
 description Interface-VLAN for VRF vpn1
 ip vrf forwarding vpn1
 ip address 10.1.1.1 255.255.255.0
 load-interval 30
 crypto map vpn1
 crypto engine slot 5
!
interface Vlan102
 description Interface-VLAN for VRF vpn2
 ip vrf forwarding vpn2
 ip address 10.1.1.1 255.255.255.0
 load-interval 30
 crypto map vpn2
 crypto engine slot 5
!
interface Vlan201
 description to FWSM
 ip vrf forwarding vpn1
 ip address 11.1.1.1 255.255.255.0
!
interface Vlan202
 description TO FWSM
 ip vrf forwarding vpn2
 ip address 11.1.1.1 255.255.255.0
!
interface Vlan700
 description TFTP-MGMT Interface
 ip address 100.1.1.21 255.255.255.0
!
router ospf 1
 log-adjacency-changes
 network 101.1.1.1 0.0.0.0 area 0
 network 100.1.1.0 0.0.0.255 area 0
 !
 router bgp 1001
 bgp log-neighbor-changes
 neighbor 151.1.1.1 remote-as 1001
 neighbor 151.1.1.1 update-source Loopback0
 neighbor 153.1.1.1 remote-as 1001
 neighbor 153.1.1.1 update-source Loopback0
 neighbor 171.1.1.1 remote-as 1001
 neighbor 171.1.1.1 update-source Loopback0
 !
 address-family ipv4
 redistribute connected
 redistribute static
 no neighbor 151.1.1.1 activate
 no neighbor 153.1.1.1 activate
 no neighbor 171.1.1.1 activate
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family vpnv4
 neighbor 151.1.1.1 activate
 neighbor 151.1.1.1 send-community extended
 neighbor 153.1.1.1 activate
 neighbor 153.1.1.1 send-community both
 neighbor 171.1.1.1 activate
 neighbor 171.1.1.1 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf vpn1
 redistribute connected
 redistribute static
 redistribute eigrp 1
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family ipv4 vrf vpn2
 redistribute connected
 redistribute static
 no auto-summary
 no synchronization
 exit-address-family
 !
 !
ip local pool vpn1 20.1.0.0 20.1.5.254 group vpn1
ip local pool vpn2 20.1.0.0 20.1.5.254 group vpn2
ip classless
ip route 0.0.0.0 0.0.0.0 GigabitEthernet4/1 30.1.1.10
ip route vrf vpn1 0.0.0.0 0.0.0.0 11.1.1.2
ip route vrf vpn2 0.0.0.0 0.0.0.0 11.1.1.2
no ip http server
!
!
ip access-list extended ACL
 permit ip host 192.168.1.1 host 172.10.8.1
ip radius source-interface Vlan700 
!
logging 100.1.1.44
access-list 10 permit any
!
snmp-server community public RO
snmp-server community nsite-ro RO
snmp-server community nsite-rw RW
snmp-server trap link ietf
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps chassis
snmp-server enable traps module
snmp-server enable traps tty
snmp-server enable traps casa
snmp-server enable traps vtp
snmp-server enable traps vlancreate
snmp-server enable traps vlandelete
snmp-server enable traps bgp
snmp-server enable traps syslog
snmp-server enable traps rtr
snmp-server enable traps isakmp policy add
snmp-server enable traps isakmp policy delete
snmp-server enable traps isakmp tunnel start
snmp-server enable traps isakmp tunnel stop
snmp-server enable traps ipsec cryptomap add
snmp-server enable traps ipsec cryptomap delete
snmp-server enable traps ipsec cryptomap attach
snmp-server enable traps ipsec cryptomap detach
snmp-server enable traps ipsec tunnel start
snmp-server enable traps ipsec tunnel stop
snmp-server enable traps ipsec too-many-sas
snmp-server enable traps srp
snmp-server enable traps sonet
snmp-server enable traps mpls traffic-eng
snmp-server enable traps mpls ldp
snmp-server enable traps voice poor-qov
snmp-server enable traps mpls vpn
snmp-server host 100.1.1.1 version 2c public 
snmp-server host 100.1.1.44 public 
snmp-server host 100.1.1.44 version 2c trap 
!
radius-server host 100.1.1.4 auth-port 1645 acct-port 1646
radius-server source-ports 1645-1646
radius-server key cisco
radius-server vsa send accounting
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
line vty 0 4
 exec-timeout 0 0
 password lab

VPN Module PE and CE Configuration Examples

The VPN module PE configuration example follows:

Cat6509# sh run
Building configuration...

Current configuration : 9558 bytes
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service counters max age 10
!
hostname Cat6509
!
boot system flash sup-bootflash:s72033-jk9sv-mz.ROCKIES_SXD_THROTTLE_INTEG_04091
2
logging snmp-authfail
enable password cisco
!
no aaa new-model
clock timezone pst -7
ip subnet-zero
!
!
no ip domain-lookup
!
ip vrf blue
 rd 300:10
 route-target export 300:10
 route-target import 300:10
!
ip vrf red
 rd 100:10
 route-target export 200:10
 route-target import 200:10
!
ip multicast-routing 
ip multicast-routing vrf red 
mpls label protocol ldp
mls ip multicast flow-stat-timer 9
no mls flow ip
no mls flow ipv6
mls cef error action freeze
!
!
!
!
!
!
!         
! 
crypto keyring test 
  pre-shared-key address 10.1.1.2 key cisco
!
crypto isakmp policy 10
 encr 3des
 authentication pre-share
crypto isakmp key cisco address 192.168.32.2
crypto isakmp key cisco address 11.1.1.2
crypto isakmp key cisco address 192.168.31.2
crypto isakmp keepalive 10
!
!
crypto ipsec transform-set test esp-3des esp-md5-hmac 
crypto ipsec transform-set repro esp-3des esp-sha-hmac 
!
crypto ipsec profile red
 set transform-set test 
!
crypto ipsec profile test
 set transform-set test 
!
!         
crypto map test 10 ipsec-isakmp 
 ! Incomplete
 set peer 10.1.1.2
 set transform-set test 
 match address 101
!
crypto map repro 10 ipsec-isakmp 
 set peer 192.168.32.2
 set transform-set repro 
 match address repro
!
crypto engine mode vrf
!
power redundancy-mode combined
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
diagnostic cns publish cisco.cns.device.diag_results
diagnostic cns subscribe cisco.cns.device.diag_commands
!
redundancy
 mode sso
 main-cpu
  auto-sync running-config
  auto-sync standard
!
vlan internal allocation policy ascending
vlan access-log ratelimit 2000
!
!
interface Loopback0
 ip address 192.168.1.1 255.255.255.255
!
interface Tunnel0
 ip vrf forwarding red
 ip address 10.2.1.1 255.255.255.0
 tunnel source 10.1.1.1
 tunnel destination 10.1.1.2
 tunnel protection ipsec profile test
 crypto engine slot 4
!
interface Tunnel1
 ip vrf forwarding blue
 ip address 11.2.1.1 255.255.255.0
 tunnel source 11.1.1.1
 tunnel destination 11.1.1.2
 tunnel protection ipsec profile test
 crypto engine slot 4
!
interface Tunnel2
 no ip address
!
interface Tunnel31
 ip vrf forwarding red
 ip address 31.1.1.1 255.255.255.0
 shutdown
 tunnel source 192.168.31.1
 tunnel destination 192.168.31.2
 tunnel protection ipsec profile test
 crypto engine slot 4
!
interface Tunnel32
 ip vrf forwarding red
 ip address 32.1.1.1 255.255.255.0
 tunnel source 192.168.32.1
 tunnel destination 192.168.32.2
 tunnel protection ipsec profile test
 crypto engine slot 4
!
interface GigabitEthernet2/1
 ip address 192.168.31.1 255.255.255.0
 crypto engine slot 4
!
interface GigabitEthernet2/2
 no ip address
 shutdown
!
.
.
.
!
interface GigabitEthernet2/16
 no ip address
 shutdown
!
interface GigabitEthernet3/1
 no ip address
 shutdown
!
interface GigabitEthernet3/2
 no ip address
 shutdown
!
interface GigabitEthernet3/3
 no ip address
 shutdown
!
interface GigabitEthernet3/4
 no ip address
 shutdown
!
interface POS3/1
 ip address 192.168.32.1 255.255.255.0
 mls qos trust dscp
 clock source internal
 crypto engine slot 4
!
interface POS3/2
 no ip address
 shutdown
 mls qos trust dscp
!
interface POS3/3
 no ip address
 shutdown
 mls qos trust dscp
!
interface POS3/4
 no ip address
 shutdown
 mls qos trust dscp
!
interface GigabitEthernet4/1
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 spanning-tree portfast trunk
!
interface GigabitEthernet4/2
 no ip address
 flowcontrol receive on
 flowcontrol send off
 switchport
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan 1,1002-1005
 switchport mode trunk
 spanning-tree portfast trunk
!
interface GigabitEthernet5/1
 no ip address
 shutdown
!
interface GigabitEthernet5/2
 no ip address
 shutdown
!
interface GigabitEthernet7/1
 ip address 17.8.15.1 255.255.0.0
!
interface GigabitEthernet7/2
 no ip address
 shutdown
!
interface GigabitEthernet7/3
 no ip address
 shutdown 
.
.
.
!
interface GigabitEthernet7/9
 no ip address
 shutdown
!
interface GigabitEthernet7/10
 ip address 10.1.1.1 255.255.255.0
 crypto engine slot 4
!
interface GigabitEthernet7/11
 ip address 11.1.1.1 255.255.255.0
 crypto engine slot 4
!
interface GigabitEthernet7/12
 no ip address
 shutdown
.
.
.
!
interface GigabitEthernet7/19
 no ip address
 shutdown
!
interface GigabitEthernet7/20
 ip address 192.168.30.1 255.255.255.0
 mpls label protocol ldp
 tag-switching ip
!
interface GigabitEthernet7/21
 no ip address
 shutdown
.
.
.
!
interface GigabitEthernet7/41
 ip vrf forwarding red
 ip address 192.168.41.1 255.255.255.0
 ip pim sparse-dense-mode
!
interface GigabitEthernet7/42
 no ip address
.
.
.
!
interface GigabitEthernet7/48
 no ip address
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!         
interface Vlan32
 no ip address
 no mop enabled
 crypto map repro
!
interface Vlan100
 no ip address
 no mop enabled
!
interface Vlan110
 no ip address
 no mop enabled
!
router ospf 1
 log-adjacency-changes
 passive-interface GigabitEthernet7/10
 network 10.0.0.0 0.255.255.255 area 0
 network 192.168.1.0 0.0.0.255 area 0
 network 192.168.30.0 0.0.0.255 area 0
!
router ospf 10 vrf red
 log-adjacency-changes
 redistribute bgp 1 subnets
 redistribute rip subnets
 network 10.2.1.0 0.0.0.255 area 0
!
router rip
 version 2
 !
 address-family ipv4 vrf red
 redistribute ospf 10 metric 10
 redistribute bgp 1 metric 10
 network 31.0.0.0
 network 32.0.0.0
 network 192.168.41.0
 no auto-summary
 exit-address-family
!
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 neighbor 192.168.3.1 remote-as 1
 neighbor 192.168.3.1 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
 neighbor 192.168.3.1 activate
 neighbor 192.168.3.1 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf red
 redistribute ospf 10
 redistribute rip
 no auto-summary
 no synchronization
 exit-address-family
 !
 address-family ipv4 vrf blue
 neighbor 11.2.1.2 remote-as 65001
 neighbor 11.2.1.2 activate
 no auto-summary
 no synchronization
 network 11.2.1.0 mask 255.255.255.0
 exit-address-family
!
ip classless
ip route 0.0.0.0 0.0.0.0 17.8.0.1
ip route 192.168.9.0 255.255.255.0 Tunnel32
ip route 192.168.43.0 255.255.255.0 Tunnel32
no ip http server
!
!
!
ip access-list extended repro
 permit gre host 192.168.32.1 host 192.168.32.2
ip access-list extended to2651
ip access-list extended to3745
ip access-list extended to7609
!
access-list 199 permit ip host 10.1.1.2 host 192.168.6.1
!
!
!
control-plane
!
!
!
dial-peer cor custom
!
!
!
!         
line con 0
 exec-timeout 0 0
line vty 0 4
 login
!
!
end

The VPN module CE configuration example follows:

Cat7609# sh run
Building configuration...

Current configuration : 7309 bytes
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service counters max age 10
!
hostname 7609
!
boot system flash disk0:c6k222-jk9o3sv-mz.ROCKIES_SXD_THROTTLE_INTEG_040912
boot bootldr bootflash:c6msfc2-boot-mz.121-19.E1.bin
enable password cisco
!
no aaa new-model
clock timezone pst -7
ip subnet-zero
!
!
!
ip multicast-routing 
!! 
!
crypto isakmp policy 10
 encr 3des
 authentication pre-share
crypto isakmp key cisco address 192.168.32.1
crypto isakmp key cisco address 192.168.31.1
!
!
crypto ipsec transform-set repro esp-3des esp-md5-hmac 
crypto ipsec transform-set test esp-3des esp-md5-hmac 
!
crypto ipsec profile test
 set transform-set test 
!
!
crypto map repro 10 ipsec-isakmp 
 set peer 192.168.32.1
 set transform-set repro 
 match address repro
!
crypto map test 10 ipsec-isakmp 
 set peer 192.168.31.1
 set transform-set test 
 match address tope
!
spanning-tree mode pvst
spanning-tree extend system-id
diagnostic cns publish cisco.cns.device.diag_results
diagnostic cns subscribe cisco.cns.device.diag_commands
!
redundancy
 mode sso
 main-cpu
  auto-sync running-config
!
vlan internal allocation policy ascending
!
!
interface Loopback0
 ip address 192.168.9.1 255.255.255.0
!
interface Tunnel31
 ip address 31.1.1.2 255.255.255.0
 shutdown
 tunnel source Vlan31
 tunnel destination 192.168.31.1
 crypto engine slot 4
!
interface Tunnel32
 ip address 32.1.1.2 255.255.255.0
 tunnel source Vlan32
 tunnel destination 192.168.32.1
 crypto engine slot 4
!