欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程是网络协议方面的经验知识教程:站点到站点的VPN,下面是详细的分享!
站点到站点的VPN
总公司路由器
en
conf t
ip router 0.0.0.0 0.0.0.0 200.0.0.2
crypto isakmp policy 1
encryption 3des
hash sha
authentication pre-share
group 2
lifetime 10000
exit
crypto isakmp key benet address 201.0.0.2
access-list 100 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
crypto ipsec transform-set benet-set esp-des esp-sha-hmac
crypto ipsec security-association lifetime seconds 1800
crypto map benet-set 1 ipsec-isakmp
set peer 201.0.0.2
set transform-set benet-set
match address 100
exit
int f0/1
crypto map benet-set
end
wr
----------------------------------------------------------------------------------------------------------------------------
分公司路由器
en
conf t
ip roouter 0.0.0.0 0.0.0.0 201.0.0.1
crypto isakmp policy 1
encryption 3des
hash sha
authentication pre-share
group 2
lifetime 10000
exit
crypto isakmp key benet address 200.0.0.1
access-list 100 permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255
crypto ipsec transform-set benet-set esp-des esp-sha-hmac
crypto ipsec security-association lifetime seconds 1800
crypto map benet-set 1 ipsec-isakmp
set peer 200.0.0.1
set transform-set benet-set
match address 100
exit
int f0/0
crypto map benet-set
end
wr
用思科模拟器做此实验,在测试时多ping几次(PT有bug)
作者“董二”
以上就是关于站点到站点的VPN的网络协议知识分享,更多电脑教程请移步到>>电脑教程。
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
