Cisco交換機和路由器常見工作模式及命令


一、工作模式
1.用戶模式:
switch>
可以查看交換機基本信息,且不能做任何修改配置。
2.特權模式:
switch>enable
switch#
可以查看所有配置,且不能修改配置。
但可以做測試,保存,初始化等操作。
3.全局配置模式:
switch#configure terminal
switch(config)#
默認不能查看配置!
可以修改配置,且全局生效!
4.接口配置模式:
switch(config)#interface f0/1
switch(config-if)#
默認不能查看配置!
可以修改配置,且全局生效。

其他模式:
1)初始化配置模式-Line模式(console口)
switch(config)#line console 0
switch(config-line)#
2)VLAN配置模式:
switch>vlan database
switch(config-vlan)#

二、命令
1.保存配置
switch#copy running-config startup-config 從內存中將配置文件復制到硬盤中。
或者 write
2.交換機開機動作:
查找startup-config是否存在-如果不存在則在內存中新建running-config
-如果存在則復制到內存中並改名為running-config
3.查看running-config配置:
switch#show running-config
4.查看設備軟硬件安裝信息:
switch#show version
5.重啟設備:
switch#reload
6.配置特權密碼:
switch#configure terminal
switch(config)#enable password 密碼 (明文)
                        enable secret 密碼 (密文)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM