To configure IPSec:
- host1(config)#ipsec transform-set customerAprotection
esp-3des-hmac-sha
- host1(config)#ipsec transform-set customerBprotection
ah-hmac-md5
- host1(config)#ipsec key manual pre-share 5.2.0.1
- host1(config-manual-key)#key customerASecret
After you enter a preshared key, the router encrypts the key and displays it in masked form to increase the security of the key. If you need to reenter the key, you can enter it in its masked form using this command.
To see the masked form of the key:
- host1#show config
- ipsec key manual pre-share 10.10.1.1
- masked-key “ AAAAGAAAAAcAAAACfd+SAsaVQ6Qeopt2rJOP6LDg+0hX5cMO”
To enter the masked key:
- host1(config-manual-key)#masked-key AAAAGAAAAAcAAAACfd+SAsaVQ6Qeopt2rJOP6LDg+0hX5cMO
- host1(config)#ipsec local-endpoint 10.10.1.1
transport-virtual-router vr#8
- host1(config)#ipsec lifetime kilobytes 42000000
ipsec key manual pre-share
- host1(config)#ipsec key manual pre-share ip
address 10.10.1.1
- host1(config-manual-key)#
- host1(config)#ipsec key manual pre-share identity branch245.customer77.isp.net
- host1(config-manual-key)#
- host1(config)#ipsec key manual pre-share identity user4919@branch245.customer77.isp.net
- host1(config-manual-key)#
ipsec lifetime
- host1(config)#ipsec lifetime kilobytes 42000000
- host1(config)#ipsec lifetime seconds 8600
ipsec local-endpoint
- host1(config)#ipsec local-endpoint 10.10.1.1
transport-virtual-router VR#8
ipsec transform-set
- host1(config)#ipsec transform-set espSet esp-3des-hmac-md5
esp-3des-null-auth
key
- host1(config-manual-key)#key dj5fe23owi8er49fdsa
- host1(config-manual-key)#key “ my key
with spaces”
masked-key
- host1#show config
- ipsec key manual pre-share 10.10.1.1
- masked-key “ AAAAGAAAAAcAAAACfd+SAsaVQ6Qeopt2rJOP6LDg+0hX5cMO”
- host1#configure terminal
- host1(config)#ipsec key manual pre-share 10.10.1.1
- host1(config-manual-key)#masked-key AAAAGAAAAAcAAAACfd+SAsaVQ6Qeopt2rJOP6LDg+0hX5cMO