交換機的基本配置

來源:酷知科普網 1.67W

本實驗的模擬實驗是在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配置好就可以嘗試遠端登入了

交換機的基本配置 第2張
交換機的基本配置 第3張

(06)開啟交換機的www服務功能。student>enablestudent#config terstudent(config)#enable services web-sever

(07)檢視配置情況student#show running-config如下圖為結果部分截圖,我們可以看到版本為12.1、主機名為student、使用者模式進入密碼為cisco等等資訊

交換機的基本配置 第4張
熱門標籤