Router>
Router>logout 登出
Router#disable 返回用戶模式
Router>enble進入全局模式
Router(config)#enble password ****** 明文登陸
Router(config)#enable secret ****** 密文登陸
Router# show Running-config 運行中的配置文件
Router#show startup-config 配置文件
Router#config terminal 進入全局配置模式
Route(config)r#hostname ***主機名
配置控制臺密碼
Router(config)#line console 0
Router(config-line)#password *****
Router(config-line)#Login 開啟登陸驗證的一個進程
配置路由器串口
Router(config)#show controller serial 0
Router(config)#interface serial 0
Router(config-if)#clock rate 64000
Router(config-if)# ip address 10.1.1.1 2555.255.255.0
Router(config-if)#no shutdown
配置虛擬終端
Router(config)#line vty 0 4
router(config-line)#password *****
router(config-line#)login 開啟登陸驗證的一個進程
配置用戶本地數據庫驗證虛擬終端
Router(config)#line vty 0 4
Router(config-line)#login local
Rouer(config-line)#exit
Router(config)# username **** password **** Telnet須配置enable密碼
router(config-line)#exec 0 5 控制臺超時登出5分鐘
Router(config-if)#logging synchronous 日志同步,重顯被控制臺打亂的輸入
Router(config)# no ip domain loohup 關閉IP解析、對DNS的查找
Router#show ip interface brief 查看接口信息
Router(config)# interface gigabitEhternet 0/0
Router(config-if)#description ***(接口說明)
Router(config-if)# ip address 10.1.1.1 255.255.255.0 配置IP地址
Router(config-if)#no shutdown 啟用接口
Router(config-if)#end
Router(config-if)#exit 登出接口狀態(tài)
Router#show interface seiral 0(查看接口信息)接口狀態(tài)
Router#show interface s0/0 查看某一接口信息
Router#show ip interface brief
Router(config)#show ip route 查路由表
Router# cdp run 啟用CDP協議
Router# show cdp neighbors 查看鄰居信息
Router# show cdp neighbors detail 查看更詳細鄰居信息
Router#show entry * 查看更詳細信息
Router(config)#no cdp enbale 全局模式下禁止CDP
Routerconfig-if)#no cdp enbale 在接口模式下禁止CDP
備份IOS
Router#show flash
Router#copy flash:tftp:
Sourse filename [ ]? IOS名稱
Address or name of remote host [ ]? TFTP服務器的IP地址
恢復IOS
Router#copy tftp:flash:
Address or name remote host [ ]? TFTP服務器IP地址
Sourse filename [ ]? IOS名稱
恢復密碼
按CTRL+Break中斷Flash啟動
ROMMON1>o/r 0x2142或confreg 0x2142
ROMMON2>boot或i
Router(config)#config-register 0x2102