拓?fù)?
需求,Beijing作為總部,需要與Company進(jìn)行連接,同時(shí)SH部分采用雙線(xiàn)介入ISP保證網(wǎng)絡(luò)高可用性,現(xiàn)需求,在SH1down的情況下,SH2接替SH1的工作保證VPN連接的持續(xù)有效性.
Beijing 主要配置:
Beijing配置與傳統(tǒng)的IPsec L2L VPN配置毫無(wú)區(qū)別
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 117.1.1.10
crypto ipsec transform-set cisco esp-3des esp-md5-hmac
crypto map vpn 10 ipsec-isakmp
set peer 117.1.1.10
set transform-set cisco
match address vpn
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface FastEthernet0/0
ip address 124.1.1.1 255.255.255.0
duplex half
crypto map vpn
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
ip access-list extended vpn permit ip 1.1.1.0 0.0.0.255 2.2.2.0 0.0.0.255
SH1主要配置:
SH配置首先要使用DPD進(jìn)行檢測(cè),從而保證在IPsec SA中端后,備份設(shè)備能夠啟動(dòng).
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco address 124.1.1.1
crypto isakmp keepalive 10 periodic
crypto ipsec transform-set cisco esp-3des esp-md5-hmac
crypto map cisco 10 ipsec-isakmp
set peer 124.1.1.1
set transform-set cisco
match address vpn r
everse-route tag 10 static
使用反向路由注入,將感興趣流注入成靜態(tài)路由,完成數(shù)據(jù)點(diǎn)有路由,使用關(guān)鍵字static在沒(méi)有SA的時(shí)候產(chǎn)生路由(Active設(shè)備)
interface FastEthernet2/0
ip address 117.1.1.8 255.255.255.0
duplex half
standby 1 ip 117.1.1.10
standby 1 priority 150
standby 1 preempt
standby 1 name Redunvpn
crypto map cisco redundancy Redunvpn
在講MAP應(yīng)用的時(shí)候,要加上關(guān)鍵字redundancy并且調(diào)用standby的名字.
interface FastEthernet3/0
ip address 10.1.1.1 255.255.255.0
duplex half
router eigrp 10
redistribute static route-map vpntraffic
將注入路由分布進(jìn)內(nèi)部網(wǎng)絡(luò)
network 10.1.1.0 0.0.0.255
no auto-summary
ip route 0.0.0.0 0.0.0.0 FastEthernet2/0
ip access-list extended vpn permit ip 2.2.2.0 0.0.0.255 1.1.1.0 0.0.0.255
route-map vpntraffic permit 10 match tag 10
另一個(gè)SH2配置與SH1配置無(wú)太大區(qū)別,就不羅列了.
實(shí)驗(yàn)結(jié)果:
1.ping測(cè)試
2.Active加解密情況:






