本實驗的模擬實驗是在Cisco Pcket Tracer工具內操作
操作方法
(01)在用戶模式、特權模式、全局模式及接口模式之間轉換SW1# //用戶模式SW1>enable //特權模式SW1#config terminal //全局模式Enter configuration commands, one per line. End with CNTL/1(config)#interface f0/0 //接口模式SW1(config-if)#exit //退回全局模式SW1(config)#exit //退回特權模式SW1#
(02)將交換機的名稱該爲”student”;student#enablestudent#config tEnter configuration commands, one per line. End with CNTL/ent(config)#hostname studentstudent(config)#
(03)將交換機的各個配置模式設置密碼爲”cisco”;student(config)#enable password ciscostudent(config)#line console 0student(config-line)#line vty 0 4student(config-line)#password ciscostudent(config-line)#loginstudent(config-line)#end
(04)將交換機指定一個IP地址 10.10.10.x/24;student(config)#interface vlan 1student(config-if)#ip address student(config-if)#no shutdownstudent(config-if)#end
(05)開啓交換機的Telnet服務功能,並建立Telnet用戶admin,口令cisco,並指定只能從10.10.10.y/24登入Telnet服務器;上面的陪我配置中遠程服務已經開啓,現在只需要將pc配置好就可以嘗試遠程登入了
(06)開啓交換機的www服務功能。student>enablestudent#config terstudent(config)#enable services web-sever
(07)查看配置情況student#show running-config如下圖爲結果部分截圖,我們可以看到版本爲12.1、主機名爲student、用戶模式進入密碼爲cisco等等信息