[Contents] [Prev] [Next] [Index] [Report an Error]

Creating an IPSec Tunnel

To create an IPSec tunnel:

  1. Enter virtual router mode. Specify the VR that contains the source and destination addresses assigned to the tunnel interface.
    host1(config)#virtual-router vrA
    host1:vrA(config)#
  2. Create an IPSec tunnel, and specify the transport VR.
    host1:vrA(config)#interface tunnel ipsec:Aottawa2boston transport-virtual-router default
    host1:vrA(config-if)#
  3. Specify the IP address of this tunnel interface.
    host1:vrA(config-if)#ip address 10.3.0.0 255.255.0.0
  4. Specify the transform set that ISAKMP uses for SA negotiations.
    host1:vrA(config-if)#tunnel transform-set customerAprotection
  5. Configure the local endpoint of the tunnel.
    host1:vrA(config-if)#tunnel local-identity subnet 10.1.0.0 255.255.0.0
  6. Configure the peer endpoint of the tunnel.
    host1:vrA(config-if)#tunnel peer-identity subnet 10.3.0.0 255.255.0.0
  7. Specify an existing interface address that the tunnel uses as its source address.
    host1:vrA(config-if)#tunnel source 5.1.0.1
  8. Specify the address or identity of the tunnel destination endpoint.
    host1:vrA(config-if)#tunnel destination identity branch245.customer77.isp.net
    host1:vrA(config-if)#exit

    Note: FQDNs are used when tunnel destination endpoints do not have a fixed address, as in cable and DSL environments.

  9. For manual tunnels, specify the algorithm sets and the session key used for inbound SAs and for outbound SAs.
    host1:vrA(config-if)#tunnel session-key-inbound esp-des-hmac-md5 a7bd567917bd5679 bd5678a7bd567917bd567917bd567678
    host1:vrA(config-if)#tunnel session-key-outbound esp-3des-hmac-md5 421 567917bd567917bd567917bd545a17bd567917bd56784a7b fda183bef567917bd567917bd567917b
  10. (Optional) Configure PFS on this tunnel.
    host1:vrA(config-if)#tunnel pfs group 5
  11. (Optional) Set the tunnel type to signaled or manual. The default is signaled.
    host1:vrA(config-if)#tunnel signaling isakmp
  12. (Optional) Set the renegotiation time of the SAs in use by this tunnel.
    host1(config-if)#tunnel lifetime seconds 48000 kilobytes 249000
  13. (Optional) Set the MTU size for the tunnel.
    host1(config-if)#tunnel mtu 2240

interface tunnel

tunnel destination

tunnel lifetime

tunnel local-identity

tunnel mtu

tunnel peer-identity

tunnel pfs group

tunnel session-key-inbound

tunnel session-key-outbound

tunnel signaling

tunnel source

tunnel transform-set


[Contents] [Prev] [Next] [Index] [Report an Error]