星型网络 Dynamic IPsec ×××
原创
©著作权归作者所有:来自51CTO博客作者ilovetg2008的原创作品,请联系作者获取转载授权,否则将追究法律责任
实验内容:
1,建立全互联拓扑。
2,以R1为中心,让R2和R3与R1分别建立邻居关系,而R2和R3之间路由不可达。
3,建立Dynamic IPsec ×××
R1#show run
!
!
crypto isakmp policy 100
hash md5
authentication pre-share
group 2
lifetime 3600
crypto isakmp key ilovetg address 192.168.123.3
crypto isakmp key ilovetg2008 address 192.168.123.2
!
!
crypto ipsec transform-set sun1 ah-md5-hmac esp-des esp-md5-hmac comp-lzs
!
crypto dynamic-map sun123 10
set security-association lifetime kilobytes 102400
set transform-set sun1
set pfs group2
match address ×××
!
!
crypto map sun1 100 ipsec-isakmp dynamic sun123
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.123.1 255.255.255.0
duplex auto
speed auto
crypto map sun1
!
!
router eigrp 100
passive-interface Loopback1
network 1.1.1.1 0.0.0.0
network 192.168.123.1 0.0.0.0
no auto-summary
neighbor 192.168.123.3 FastEthernet0/0
neighbor 192.168.123.2 FastEthernet0/0
!
!
ip access-list extended ×××
permit tcp host 1.1.1.1 host 2.2.2.2
permit tcp host 1.1.1.1 host 3.3.3.3
permit ip host 1.1.1.1 host 2.2.2.2
permit ip host 1.1.1.1 host 3.3.3.3
!
!
End
R2#show run
!
crypto isakmp policy 100
hash md5
authentication pre-share
group 2
lifetime 3600
crypto isakmp key ilovetg2008 address 192.168.123.1
!
!
crypto ipsec transform-set sun2 ah-md5-hmac esp-des esp-md5-hmac comp-lzs
!
crypto map sun2 10 ipsec-isakmp
set peer 192.168.123.1
set security-association lifetime kilobytes 102400
set transform-set sun2
set pfs group2
match address ×××
!
!
interface Loopback2
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.123.2 255.255.255.0
duplex auto
speed auto
crypto map sun2
!
!
router eigrp 100
passive-interface Loopback2
network 2.2.2.2 0.0.0.0
network 192.168.123.2 0.0.0.0
no auto-summary
neighbor 192.168.123.1 FastEthernet0/0
!
!
ip access-list extended ×××
permit tcp host 2.2.2.2 host 1.1.1.1
permit ip host 2.2.2.2 host 1.1.1.1
!
!
end
R3#show run
!
crypto isakmp policy 100
hash md5
authentication pre-share
group 2
lifetime 3600
crypto isakmp key ilovetg address 192.168.123.1
!
!
crypto ipsec transform-set sun3 ah-md5-hmac esp-des esp-md5-hmac comp-lzs
!
crypto map sun3 10 ipsec-isakmp
set peer 192.168.123.1
set security-association lifetime kilobytes 102400
set transform-set sun3
set pfs group2
match address ×××
!
!
interface Loopback3
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.123.3 255.255.255.0
duplex auto
speed auto
crypto map sun3
!
!
router eigrp 100
network 3.3.3.3 0.0.0.0
network 192.168.123.3 0.0.0.0
no auto-summary
neighbor 192.168.123.1 FastEthernet0/0
!
!
ip access-list extended ×××
permit tcp host 3.3.3.3 host 1.1.1.1
permit ip host 3.3.3.3 host 1.1.1.1
!
!
End
R1#show crypto isakmp sa
dst src state conn-id slot status
192.168.123.1 192.168.123.2 QM_IDLE 1 0 ACTIVE
192.168.123.1 192.168.123.3 QM_IDLE 2 0 ACTIVE
R2#show cry isa sa
dst src state conn-id slot status
192.168.123.1 192.168.123.2 QM_IDLE 1 0 ACTIVE
R3#show cry isakmp sa
dst src state conn-id slot status
192.168.123.1 192.168.123.3 QM_IDLE 1 0 ACTIVE
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
IPSEC vpn详解
IPSEC VPN
ci Standard Time -
STL常用泛型算法
STL常用泛型算法
STL 泛型算法 C++函数对象 STL常用算法接口 -
【案例】无线串口模块 星型网络组网 案例
星型网络技术01 什无线射频芯片和MCU构成(某些SOC芯..
无线模块 星星组网 数据 串口 组网