crypto ipsec client ezvpn ez
connect manual 手动连接
group vpngroup key groupkey 组名vpngroup,组密码groupkey
local-address FastEthernet0/1 使用fa0/1发起连接
mode client 使用客户模式
peer 10.0.1.1 ezvpn服务器10.0.1.1
interface Loopback0
ip address 9.9.9.9 255.255.255.0
crypto ipsec client ezvpn ez inside 使用咯opback口模拟内部用户
interface FastEthernet0/1
ip address 10.0.1.2 255.255.255.0
crypto ipsec client ezvpn ez标记使用fa0/1发起vpn连接(outside)
配置完成后手动建立vpn连接:
R1#cry ipsec client ezvpn connect 建立连接
R1#crypto ipsec client ezvpn connect
EZVPN(ez): IPSec connection terminated
R1#crypto ipsec client ezvpn xauth 输入认证的用户名密码
Username: cisco
Password:
R1#show crypto ipsec client ezvpn 检查建立好的连接
Easy VPN Remote Phase: 2
Tunnel name : ez
Inside interface list: Loopback0
Outside interface: FastEthernet0/1
Current State: IPSEC_ACTIVE
Last Event: SOCKET_UP
Address: 7.7.7.1
Mask: 255.255.255.255