设为首页收藏本站language 语言切换
查看: 2232|回复: 9
收起左侧

[已解决] 请教一个vpn配置问题

[复制链接]
发表于 2009-11-12 16:45:54 | 显示全部楼层 |阅读模式
配置一个remote access vpn, 如果在配置isakmp策略时选择了pre-share认证,在后面配置
的时候除了设置group密码之外 是不是不需要设置pre-share key?
发表于 2009-11-12 16:49:48 | 显示全部楼层
送楼主一个配置实例
VPN配置实例

Intranet 内联网配置:
Figure 3-8: Intranet VPN Scenario Physical Elements
Headquarters Router 配置
hq-sanjose# show running-config
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname hq-sanjose
!
boot system flash bootflash:
boot bootldr bootflash:c7100-boot-mz.120-1.1.T
boot config slot0:hq-sanjose-cfg-small
no logging buffered
!
crypto isakmp policy 1
authentication pre-share
lifetime 84600
crypto isakmp key test12345 address 172.24.2.5
!
crypto ipsec transform-set proposal1 ah-sha-hmac esp-des esp-sha-hmac
mode transport
!
!
crypto map s1first local-address Serial1/0
crypto map s1first 1 ipsec-isakmp
set peer 172.24.2.5
set transform-set proposal1
match address 101
!
interface Tunnel0
bandwidth 180
ip address 172.17.3.3 255.255.255.0
no ip directed-broadcast
tunnel source 172.17.2.4
tunnel destination 172.24.2.5
crypto map s1first
!
interface FastEthernet0/0
ip address 10.1.3.3 255.255.255.0
no ip directed-broadcast
no keepalive
full-duplex
no cdp enable
!
interface FastEthernet0/1
ip address 10.1.6.4 255.255.255.0
no ip directed-broadcast
no keepalive
full-duplex
no cdp enable
!
interface Serial1/0
ip address 172.17.2.4 255.255.255.0
no ip directed-broadcast
no ip mroute-cache
no keepalive
fair-queue 64 256 0
framing c-bit
cablelength 10
dsu bandwidth 44210
clock source internal
no cdp enable
crypto map s1first
!
ip route 10.1.4.0 255.255.255.0 Tunnel0
!
access-list 101 permit gre host 172.17.2.4 host 172.24.2.5
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end

Remote Office Router 配置:
ro-rtp# show running-config
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname ro-rtp
!
boot system flash bootflash:
boot bootldr bootflash:c7100-boot-mz.120-1.1.T
boot config slot0:ro-rtp-cfg-small
no logging buffered
!
crypto isakmp policy 1
authentication pre-share
lifetime 84600
crypto isakmp key test12345 address 172.17.2.4
!
crypto ipsec transform-set proposal1 ah-sha-hmac esp-des esp-sha-hmac
mode transport
!
!
crypto map s1first local-address Serial1/0
crypto map s1first 1 ipsec-isakmp
set peer 172.17.2.4
set transform-set proposal1
match address 101
!
interface Tunnel1
bandwidth 180
ip address 172.24.3.6 255.255.255.0
no ip directed-broadcast
tunnel source 172.24.2.5
tunnel destination 172.17.2.4
crypto map s1first
!
interface FastEthernet0/0
ip address 10.1.4.2 255.255.255.0
no ip directed-broadcast
no keepalive
full-duplex
no cdp enable
!
interface Serial1/0
ip address 172.24.2.5 255.255.255.0
no ip directed-broadcast
no ip mroute-cache
no keepalive
fair-queue 64 256 0
framing c-bit
cablelength 10
dsu bandwidth 44210
clock source internal
no cdp enable
crypto map s1first
!
ip route 10.1.3.0 255.255.255.0 Tunnel1
ip route 10.1.6.0 255.255.255.0 Tunnel1
!
access-list 101 permit gre host 172.24.2.5 host 172.17.2.4
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end
Extranet外联网配置:
Figure 3-9: Extranet VPN Scenario Physical Elements


Headquarters Router配置:
hq-sanjose# show running-config
Building configuration...

Current configuration:
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname hq-sanjose
!
boot system flash bootflash:
boot bootldr bootflash:c7100-boot-mz.120-1.1.T
boot config slot0:hq-sanjose-cfg-small
no logging buffered
!
crypto isakmp policy 1
authentication pre-share
lifetime 84600
crypto isakmp key test12345 address 172.24.2.5
cr
沙发 2009-11-12 16:49:48 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-11-12 17:35:39 | 显示全部楼层
要设置
板凳 2009-11-12 17:35:39 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-11-14 08:41:11 | 显示全部楼层
要配置的吧
地板 2009-11-14 08:41:11 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-12-2 10:55:36 | 显示全部楼层

关注高人

关注高人
5# 2009-12-2 10:55:36 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-12-3 20:38:21 | 显示全部楼层

......踩过

......踩过
6# 2009-12-3 20:38:21 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-12-4 09:04:05 | 显示全部楼层

非常感谢分享

非常感谢分享
7# 2009-12-4 09:04:05 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-12-4 09:16:51 | 显示全部楼层

站个位在说

站个位在说
8# 2009-12-4 09:16:51 回复 收起回复
回复 支持 反对

使用道具 举报

匿名  发表于 2009-12-6 09:52:19

安踏:我顶帖,我喜欢

安踏:我顶帖,我喜欢
9# 2009-12-6 09:52:19 回复 收起回复
回复 支持 反对

使用道具

发表于 2009-12-7 10:28:50 | 显示全部楼层

谢谢分享

谢谢分享
10# 2009-12-7 10:28:50 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-27 05:15 , Processed in 0.407630 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表