
SSL#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
SSL#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SSL(config)#int f0/0
SSL(config-if)#ip add 192.168.10.11 255.255.255.0
SSL(config-if)#no sh
SSL(config-if)#int f0/1
SSL(config-if)#ip add 192.168.204.11 255.255.255.0
SSL(config-if)#no sh
SSL(config-if)#end
SSL#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 4/35/84 ms
SSL#ping 192.168.204.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.204.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/7/8 ms
SSL#
|
SSL(config)#clock timezone UTC +8
SSL(config)#exit
SSL#clock set 18:38:00 24 Mar 2010
SSL#
Mar 24 10:38:00.003: %SYS-6-CLOCKUPDATE: System clock has been updated from 18:37:25 UTC Wed Mar 24 2010 to 18:38:00 UTC Wed Mar 24 2010, configured from console by console.
SSL#
SSL#show clock
18:38:46.483 UTC Wed Mar 24 2010
|
SSL#format disk0:
Format operation may take a while. Continue? [confirm]
Format operation will destroy all data in "disk0:". Continue? [confirm]
Format: Drive communication & 1st Sector Write OK...
Writing Monlib sectors.
.....................................................................................................................................................
Monlib write complete
Format: All system sectors written. OK...
Format: Total sectors in formatted partition: 130883
Format: Total bytes in formatted partition: 67012096
Format: Operation completed successfully.
Format of disk0 complete
SSL#copy tftp disk0:
Address or name of remote host []? 192.168.10.1
Source filename []? sslclient-win-1.1.3.173.pkg
Destination filename [sslclient-win-1.1.3.173.pkg]?
Accessing tftp://192.168.10.1/sslclient-win-1.1.3.173.pkg...
Loading sslclient-win-1.1.3.173.pkg from 192.168.10.1 (via FastEthernet0/0): !!
[OK - 416354 bytes]
416354 bytes copied in 16.064 secs (25918 bytes/sec)
SSL#dir disk0:
Directory of disk0:/
1-rw- 416354 Mar 24 2010 18:45:20 +08:00 sslclient-win-1.1.3.173.pkg
66846720 bytes total (66428928 bytes free)
使用webvpn 命令将sslclient完成初始化安装
SSL(config)#webvpn install svc disk0:/sslclient-win-1.1.3.173.pkg
SSL××× Package SSL-×××-Client : installed successfully
SSL(config)#exit
SSL#dir disk0:
Directory of disk0:/
1 drw- 0 Mar 24 2010 18:50:46 +08:00 webvpn
66846720 bytes total (66424832 bytes free)
|
SSL(config)#aaa new-model
SSL(config)#aaa authentication login webvpn local
SSL(config)#
SSL(config)#username admin privilege 15 password admin
在路由器创建回环接口来模拟SSL ××× Client的网关地址,并定义地址池
SSL(config)#int lo0
SSL(config-if)#ip add 192.168.0.254 255.255.255.0
SSL(config-if)#exit
SSL(config)#ip local pool sslvpn-pool 192.168.0.100 192.168.0.253
|
//配置webvpn的网名名称为×××GW
SSL(config)#webvpn gateway ×××GW
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
SSL(config-webvpn-gateway)#?
SSL××× Gateway Submode commands:
exit Exit from gateway configuration mode
hostname Hostname used in URL & Cookie mangling
http-redirect enable HTTP redirect feature
inservice Enable webvpn gateway
ip Virtual Gateway IP config
no Negate or set default values of a command
ssl SSL configurations for front end client connections
//配置虚拟网关IP,以及开放的端口
SSL(config-webvpn-gateway)#ip address 192.168.204.11 port 443
//开启webvpn网关服务
SSL(config-webvpn-gateway)#inservice
|
SSL(config)#webvpn context WEBTEXT
//关联虚拟网关的名称
SSL(config-webvpn-context)#gateway ×××GW
SSL(config-webvpn-context)#
//关联AAA认证策略
SSL(config-webvpn-context)#aaa authentication list webvpn
//开启服务
SSL(config-webvpn-context)#inservice
SSL(config-webvpn-context)#
Mar 24 11:06:02.687: %SSL×××-5-UPDOWN: sslvpn context : WEBTEXT changed state to UP
//定义策略组的名称为SSL×××-POLICY
SSL(config-webvpn-context)#policy group SSL×××-POLICY
SSL(config-webvpn-group)#functions svc-enabled
//关联地址池名称
SSL(config-webvpn-group)#svc address-pool sslvpn-pool
SSL(config-webvpn-group)#banner "This IS Cisco IOS SSL ××× "
//配置首选DNS,备用DNS地址
SSL(config-webvpn-group)#svc dns-server primary 218.30.19.40
SSL(config-webvpn-group)#svc dns-server secondary 61.134.1.4
SSL(config-webvpn-group)#svc split include 192.168.10.0 255.255.255.0
SSL(config-webvpn-group)#exit
//应用到默认的策略组
SSL(config-webvpn-context)#default-group-policy SSL×××-POLICY
SSL(config-webvpn-group)#exit
SSL(config-webvpn-context)#exit
SSL(config)#exit
SSL#write memory
Building configuration...
[OK]
|

SSL#show ip local pool
Pool Begin End Free In use
sslvpn-pool 192.168.0.100 192.168.0.253 153 1
SSL#show webvpn session context WEBTEXT
Web××× context name: WEBTEXT
Client_Login_Name Client_IP_Address No_of_Connections Created Last_Used
admin 192.168.204.111 1 00:07:09 00:00:50
SSL#show webvpn stats
User session statistics:
Active user sessions : 2 AAA pending reqs : 0
Peak user sessions : 2 Peak time : 00:16:11
Active user TCP conns : 1 Terminated user sessions : 1
Session alloc failures : 0 Authentication failures : 0
××× session timeout : 0 ××× idle timeout : 0
User cleared ××× sessions: 0 Exceeded ctx user limit : 0
Exceeded total user limit: 0
CEF switched packets - client: 0 , server: 0
CEF punted packets - client: 0 , server: 0
|