常用基本操作命令
hostname wolf :給路由器改名
configure terminal :進入全局模式
no ip domain-lookup :關閉域名查詢
logging synchronous :防止彈出信息干擾輸入
exec-time 0 0 或 no exec-time :設置控制檯會話永不超時
enable secret password :設置啓用加密口令
例:enable secret 12345
Enable password password :設置啓用口令(級別比啓用口令低)
Enable secret level 1~15 password 授權1-15級口令,15爲最高級
設主控制檯口令
Line console 0
Password cisco
Login
設輔助控制檯口令
Line aux 0
Password cisco
Login
設遠程登錄口令
Line vty 0 4
privilege level 15 設定等級15,可以在telnet時直接進入enable模式
Password cisco
Login
Service password-encryption 所有口令加密
Show controllers serial 0 :查看接口是DCE還是DTE用這一命令
Show interface interface :查看接口信息
Show ip interface interface :查看接口的協議信
給DCE配時鐘:
Int s0
Clock rate 1000000
Show cdp neighbors :顯示鄰居設備
Show cdp neighbors detail :顯示鄰居細節
No cdp enable :關閉CDP通告
Debug cdp packets
No debug cdp packets
No debug all :關閉所有debug進程
Undebug all :關閉所有debug進程