【发布时间】:2013-12-23 10:52:21
【问题描述】:
我正面临这个简单的配置,但我无法弄清楚。 设想: 使用 cisco vpn 客户端(或 ipad、iphone ..)我可以连接到我公司的 vpn。 我知道的是:
VPN 组名称
VPN 密钥
VPN 服务器公共 IP
VPN 用户名和密码
cisco vpn客户端创建的虚拟网卡IP地址:10.0.201.31 255.255.255.0
我的局域网 172.23.28.0 255.255.255.224
公司局域网 172.19.248.0 255.255.252.0
问题是“我如何使用 cisco 827 路由器为我家的局域网处理这个问题?”
我认为步骤是:
1) 配置 eth0、dns 和 dhcp(完成)
2) 配置 ATM0 和 Dialer0 以获取 Internet 访问权限(完成)
3) 为我的局域网配置访问列表和 ip 路由(完成)
4)配置ezvpn参数(完成)
5) 配置Ip 10.0.201.31 的虚拟接口(什么样的接口?)
6) 为“crypto ipsec client ezvpn MYVPNTUNNELNAME”设置内部和外部nat(哪些接口以及如何?)
7) 配置到 172.19.248.0 255.255.252.0 的路由(如何?)
这是我的配置:
!
version 12.3
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname R827
!
boot-start-marker
boot-end-marker
!
enable secret 5 cryptedSecret
enable password notcrypted
!
no aaa new-model
ip subnet-zero
ip dhcp excluded-address 172.23.28.1
ip dhcp excluded-address 172.23.28.2
ip dhcp excluded-address 172.23.28.3
ip dhcp excluded-address 172.23.28.4
ip dhcp excluded-address 172.23.28.5
ip dhcp excluded-address 172.23.28.6
ip dhcp excluded-address 172.23.28.7
ip dhcp excluded-address 172.23.28.8
ip dhcp excluded-address 172.23.28.9
ip dhcp excluded-address 172.23.28.10
!
ip dhcp pool CeccoDhcp
network 172.23.28.0 255.255.255.224
default-router 172.23.28.1
dns-server 8.8.8.8
!
!
ip name-server 8.8.8.8
ip name-server 8.8.4.4
!
!
!
!
!
!
crypto ipsec client ezvpn MYVPNTUNNELNAME
connect auto
group MYGROUPNAME key MYGROUPKEY
mode network-extension
peer PUBLICIPOFVPNSERVER
username MYUSER password MYPASSWORD
!
!
!
interface Ethernet0
ip address 172.23.28.1 255.255.255.224
ip nat inside
ip virtual-reassembly
hold-queue 100 out
!
interface ATM0
no ip address
no atm ilmi-keepalive
bundle-enable
dsl operating-mode auto
pvc 8/35
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface Dialer0
ip address negotiated
ip nat outside
ip virtual-reassembly
encapsulation ppp
ip tcp header-compression
dialer pool 1
dialer-group 1
no cdp enable
ppp pap sent-username aliceadsl password 7 15130705072F2A203B3F
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
ip http server
no ip http secure-server
ip nat inside source list 101 interface Dialer0 overload
!
!
access-list 101 permit ip 172.23.28.0 0.0.0.31 any
dialer-list 1 protocol ip permit
!
!
control-plane
!
!
line con 0
stopbits 1
line vty 0 4
password MYTERMINALPASSWORD
login
!
scheduler max-task-time 5000
end
配置结束。
请注意: 如果我添加
crypto ipsec client ezvpn MYVPNTUNNELNAME
到拨号器0 和
crypto ipsec client ezvpn MYVPNTUNNELNAME inside
到以太网0 我明白了:
Tunnel name : MYVPNTUNNELNAME
Inside interface list: Ethernet0,
Outside interface: Dialer0
Current State: READY
Last Event: CONN_UP
希望有人可以帮助我。 提前致谢。 切科
【问题讨论】:
-
你应该把它带到ServerFault。
-
也就是说,我的建议是打开调试(
debug crypto ezvpn,debug crypto isakmp,如果我没记错的话)并尝试获取一些关于什么不起作用的额外信息。
标签: networking configuration vpn router cisco