应用情况,公司总部分总互连,都有公网IP

  R1路由器上连通性配置
  R1(config)#interface e0
  R1(config-if)#ip address 10.1.1.1 255.255.255.0
  R1(config-if)#no shutdown
  R1(config)#interface e1
  R1(config-if)#ip address 1.1.1.1 255.255.255.0
  R1(config-if)#no shutdown
  R1(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2
  R2路由器上连通性配置
  R2(config)#interface e0
  R2(config-if)#ip address 1.1.1.2 255.255.255.0
  R2(config-if)#no shutdown
  R2(config)#interface e1
  R2(config-if)#ip address 2.2.2.2 255.255.255.0
  R2(config-if)#no shutdown
  R2(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.1
  R1路由器IpSec配置
  R1(config)#crypto isakmp enable (optional)默认启用
  R1路由器IpSec isakmp 配置(阶段一的策略)
  R1(config)#crypto isakmp policy 10
  R1(config-isakmp)#hash md5
  R1(config-isakmp)#authentication pre-shared
  R1(config-isakmp)#encryption 3des
  R1(config-isakmp)#group 2
  R1路由器Pre-Share认证配置
  R1(config)#crypto isakmp key cisco address 10.1.1.2
  R1路由器IpSec变换集配置(阶段二的策略)
  R1(config)#crypto ipsec transform-set cisco esp-3des esp-md5-hmac R1 (cfg-crypto-trans)#mode tunnel
  R1路由器加密图的配置
  R1(config)#crypto map cisco10 ipsec-isakmp
  R1(config-crypto-map)#set peer 10.1.1.2
  R1(config-crypto-map)#set transform-set cisco
  R1(config-crypto-map)#match address 101
  R1路由器定义感兴趣流量
  R1(config)#access-list 101 permit ip 1.1.1.0 0.0.0.255 2.2.2.0 0.0.0.255 R1路由器加密图绑定到接口
  R1(config)#interface e0
  R1(config-if)#crypto map cisco
  4、R2路由器IpSec配置
  R2(config)#crypto isakmp enable (optional)默认启用
  R2路由器IpSec isakmp 配置(阶段一的策略)
  R2(config)#crypto isakmp policy 10
  R2(config-isakmp)#hash md5
  R2(config-isakmp)#authentication pre-share
  R2(config-isakmp)#encryption 3des
  R2(config-isakmp)#group 2
  R2路由器Pre-Share认证配置
  R2(config)#crypto isakmp key cisco address 10.1.1.1
  R2路由器IpSec变换集配置(阶段二的策略)
  R2(config)#crypto ipsec transform-set cisco esp-3des esp-md5-hmac
  R2(cfg-crypto-trans)#mode tunnel
  R2路由器加密图的配置
  R2(config)#crypto map cisco 10 ipsec-isakmp
  R2(config-crypto-map)#set peer 10.1.1.1

最近更新