【问题标题】:CISCO router 827 - VPN ezvpn configuration思科路由器 827 - VPN ezvpn 配置
【发布时间】: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 ezvpndebug crypto isakmp,如果我没记错的话)并尝试获取一些关于什么不起作用的额外信息。

标签: networking configuration vpn router cisco


【解决方案1】:

好的,我将您的配置与我的一些旧笔记进行了比较。过去我确实做过启用 Cisco VPN 的工作,所以这让我记忆犹新。

我认为 READY 状态和 CONN_UP 最后一个事件意味着它在身份验证之前就在那里。这可能是因为您没有告诉 871 如何处理 XAUTH。

尝试将以下内容添加到您的 crypto ipsec client ezvpn 部分:

xauth userid mode interactive

这和打开调试应该会给你一些工作。告诉我进展如何。

【讨论】:

  • 最后一件事...当您在接口下添加加密命令时,首先添加内部接口,然后添加外部 SECOND。我记得这可能会影响它是否有效。
  • 感谢您的回复。我的路由器是 827,这就是我所拥有的:R827(config-crypto-ezvpn)#? Crypto EzVPN 配置命令: connect Connect exit Exit from EzVPN configuration mode group Group Name local-address Interface to use for local address for this ezvpn configuration mode Mode no 否定命令或设置其默认值 peer Allowed Encryption/Decryption Peer username 用户名跨度>
  • ...所以我不能 xauth 用户 ID 模式交互
  • 好吧,这很奇怪。然后,也许您需要查找 EasyVPN 的特定 IOS 版本文档。调试输出说了什么?
  • 来自调试行似乎连接从未发生过,路由器尝试永远连接
【解决方案2】:

解决了!!

感谢 James 的帮助,我将 ezvpn conf 切换为“模式客户端”,并通过调试发现问题出在服务器端,原因是“存储密码启用”未设置。 当公司的网络管理员告诉我设置了“存储密码启用”时,我就这样做了:

conf t
int Dia0
crypto ipsec client ezvpn MYVPNTUNNELNAME

....一切都很完美:-)

【讨论】:

  • 如果提供的信息有帮助,请随时支持我之前的回答(“有用”)。 ;-)
猜你喜欢
  • 1970-01-01
  • 2021-06-05
  • 2015-02-27
  • 2012-04-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-03-14
相关资源
最近更新 更多