December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to create an encrypted VPN through the Internet by connecting two routers using preshared keys.
In this example, we show how to use IPSec to encrypt traffic from router to another through a GRE tunnel. Here is the configuration of the first router:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#crypto isakmp policyRouter1(config-isakmp)#10encr aesRouter1(config-isakmp)#256authentication pre-shareRouter1(config-isakmp)#groupRouter1(config-isakmp)#2exitRouter1(config)#crypto isakmp keyTUNNELKEY01address172.16.2.1no-xauthRouter1(config)#crypto ipsec transform-setTUNNEL-TRANSFORMah-sha-hmac esp-aes 256Router1(cfg-crypto-trans)#mode transportRouter1(cfg-crypto-trans)#exitRouter1(config)#crypto mapTUNNELMAP 10ipsec-isakmp% NOTE: This new crypto map will remain disabled until a peer and a valid access list have been configured. Router1(config-crypto-map)#set peerRouter1(config-crypto-map)#172.16.2.1set transform-setRouter1(config-crypto-map)#TUNNEL-TRANSFORMmatch addressRouter1(config-crypto-map)#102exitRouter1(config)#access-list102permit gre host172.16.1.1hostRouter1(config)#172.16.2.1interfaceRouter1(config-if)#Tunnel1ip addressRouter1(config-if)#192.168.1.1 255.255.255.252tunnel sourceRouter1(config-if)#172.16.1.1tunnel destinationRouter1(config-if)#172.16.2.1exitRouter1(config)#interfaceFastEthernet0/0 ...
Read now
Unlock full access