Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1330313
  • 博文数量: 464
  • 博客积分: 9399
  • 博客等级: 中将
  • 技术积分: 6364
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-19 09:15
文章分类

全部博文(464)

文章存档

2014年(12)

2013年(123)

2012年(173)

2011年(156)

我的朋友

分类: 系统运维

2013-07-02 12:09:30

TOP   ---------

看来与单纯的sec配置改动不大,但GRE可以支持广播与组播。

R1配置:

crypto isakmp policy 1
encr 3des
hash md5
authentication pre-share
group 2
lifetime 3600
crypto isakmp key cisco address 211.1.1.2
!
!
crypto ipsec transform-set esp-tunnel esp-3des esp-md5-hmac
mode transport
!
crypto map vpn 10 ipsec-isakmp
set peer 211.1.1.2
set transform-set esp-tunnel
match address router1
!
!
!
!
interface Tunnel0
ip unnumbered FastEthernet0/1
tunnel source 211.1.1.1
tunnel destination 211.1.1.2
!
interface FastEthernet0/0
ip address 211.1.1.1 255.255.255.0
duplex auto
speed auto
crypto map vpn
!
interface FastEthernet0/1
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
ip http server
no ip http secure-server
ip classless
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
ip route 192.168.2.0 255.255.255.0 Tunnel0
!
!
!
ip access-list extended router1
permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
permit gre host 211.1.1.1 host 211.1.1.2
!


R2配置:

crypto isakmp policy 1


encr 3des


hash md5


authentication pre-share


group 2


lifetime 3600


crypto isakmp key cisco address 211.1.1.1


!


!


crypto ipsec transform-set esp-tunnel esp-3des esp-md5-hmac


mode transport


!


crypto map vpn 10 ipsec-isakmp


set peer 211.1.1.1


set transform-set esp-tunnel


match address router2


!


!


!


!


interface Tunnel0


ip unnumbered FastEthernet0/1


tunnel source 211.1.1.2


tunnel destination 211.1.1.1


!


interface FastEthernet0/0


ip address 211.1.1.2 255.255.255.0


duplex auto


speed auto


crypto map vpn


!


interface FastEthernet0/1


ip address 192.168.2.1 255.255.255.0


duplex auto


speed auto


!


interface Ethernet1/0


no ip address


shutdown


half-duplex


!


ip http server


no ip http secure-server


ip classless


ip route 0.0.0.0 0.0.0.0 FastEthernet0/0


ip route 192.168.1.0 255.255.255.0 Tunnel0


!


!


!


ip access-list extended router2


permit ip 192.168.2.0 0.0.0.255 192.168.1.0 0.0.0.255


permit gre host 211.1.1.2 host 211.1.1.1

阅读(644) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~