思科基礎(chǔ)知識(shí):第二層交換(3)
第二層交換—配置交換機(jī)
當(dāng)1900啟動(dòng)后,先運(yùn)行POST,此時(shí)每個(gè)端口的發(fā)光二級(jí)管(LEDs)是綠色的,當(dāng)POST完成后,LEDs開始閃爍然后熄滅;假如POST發(fā)現(xiàn)某個(gè)端口出問題了的話,系統(tǒng)LED和那個(gè)出問題的端口的LED開始變黃.假如你的console線纜接好了的話,POST開始顯示菜單,如下:
- 1 user(s) now active on Management Console.
- User Interface Menu
- [M] Menus
- [K] Command Line
- [I] IP Configuration
- Enter Selection:K
- CLI session with the switch is open
- To end the CLI session, enter [Exit].
- >
而2950的啟動(dòng),有點(diǎn)像router,先進(jìn)入setup模式.但是默認(rèn)你可以不對(duì)其進(jìn)行配置,啟動(dòng)如下:
- --- System Configuration Dialog ---
- Would you like to enter the initial configuration dialog? [yes/no]: no
- Press RETURN to get started!
- 00:04:53: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down
- 00:04:54: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
- Switch>
配置密碼:
1.登陸密碼(用戶模式):防止未授權(quán)用戶登陸
2.啟用密碼(特權(quán)模式):防止未授權(quán)用戶修改配置
- Setting the User Mode and Enable Mode Passwords
1900下,輸入K進(jìn)入CLI,輸入enable進(jìn)入特權(quán)模式,再輸入config t進(jìn)入全局配置模式,如下:
- >en
- #config t
- (config)#
當(dāng)進(jìn)入全局配置模式后,使用enable password命令配置登陸密碼個(gè)啟用密碼,如下:
- (config)#enable password ?
- level Set exec level password
- (config)#enable password level ?
- <1-15> Level Number
level1為登陸密碼,level15為啟用密碼,密碼長(zhǎng)度范圍是4到8字符之間。
2950下的配置和配置router有點(diǎn)類似,如下:
- Switch>en
- Switch#conf t
- Switch(config)#line ?
- <0-16> First Line number
- console Primary terminal line
- vty Virtual terminal
- Switch(config)#line vty ?
- <0-15> First Line number
- Switch(config)#line vty 0 15
- Switch(config-line)#login
- Switch(config-line)#password noko
- Switch(config-line)#line con 0
- Switch(config-line)#login
- Switch(config-line)#password noco
- Switch(config-line)#exit
- Switch(config)#exit
- Switch#
【編輯推薦】