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)
使用
web***
命令將
sslclient
完成初始化安裝
SSL(config)#web*** 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 web***
66846720 bytes total (66424832 bytes free)
|
SSL(config)#aaa new-model
SSL(config)#aaa authentication login web*** 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 ssl***-pool 192.168.0.100 192.168.0.253
|
//
配置
web***
的網名名稱爲
×××GW
SSL(config)#web*** gateway ×××GW
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
SSL(config-web***-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 web*** 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-web***-gateway)#ip address 192.168.204.11 port 443
//
開啓
web***
網關服務
SSL(config-web***-gateway)#inservice
|
SSL(config)#web*** context WEBTEXT
//
關聯虛擬網關的名稱
SSL(config-web***-context)#gateway ×××GW
SSL(config-web***-context)#
//
關聯
AAA
認證策略
SSL(config-web***-context)#aaa authentication list web***
//
開啓服務
SSL(config-web***-context)#inservice
SSL(config-web***-context)#
Mar 24 11:06:02.687: %SSL×××-5-UPDOWN: ssl*** context : WEBTEXT changed state to UP
//
定義策略組的名稱爲
SSL×××-POLICY
SSL(config-web***-context)#policy group SSL×××-POLICY
SSL(config-web***-group)#functions svc-enabled
//
關聯地址池名稱
SSL(config-web***-group)#svc address-pool ssl***-pool
SSL(config-web***-group)#banner "This IS Cisco IOS SSL ××× "
//
配置首選
DNS
,備用
DNS
地址
SSL(config-web***-group)#svc dns-server primary 218.30.19.40
SSL(config-web***-group)#svc dns-server secondary 61.134.1.4
SSL(config-web***-group)#svc split include 192.168.10.0 255.255.255.0
SSL(config-web***-group)#exit
//
應用到默認的策略組
SSL(config-web***-context)#default-group-policy SSL×××-POLICY
SSL(config-web***-group)#exit
SSL(config-web***-context)#exit
SSL(config)#exit
SSL#write memory
Building configuration...
[OK]
|
SSL#show ip local pool
Pool Begin End Free In use
ssl***-pool 192.168.0.100 192.168.0.253 153 1
SSL#show web*** 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 web*** 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
|