輸入“?”顯示全部幫助
輸入“命令?”顯示完整命令單詞
輸入“命令 ?”顯示命令 可用的參數信息
按“table”完成命令全部單詞
按“上翻或下翻”顯示用過的命令
按“ctrl+z”離開配置模式
輸入“end”直接返回特權模式
Router> \用戶執行模式
Router>enable \進入特權執行模式
Switch#show running-config \該關鍵字指定要將運行配置作爲輸出結果顯示。
Switch(config-if)#description MainHQ Office Switch \使用 description 命令爲接口應用描述.
Ctrl-Shift-6 \ 用於中斷諸如 ping 或 traceroute 之類的 IOS 進程
Ctrl-C \放棄當前命令並退出配置模式
主要的模式:
用戶執行模式 \能使用有限的基本監控命令,又稱查看模式
show interfaces
show ip interface
show interfaces serial0/0/0
show ip interface serial0/0/0
show version
特權執行模式
enable
show arp
show stratuo-config
show running-config
show mac address-table \交換機特有命令
全局配置模式
enable
configure terminal
hosename name \更改名字
no hostname 刪除namme,恢復默認name。
其他特定配置模式
interface serial0/0/0 進入接口配置模式
line console 0 進入線路配置模式
router rip 進入路由器配置模式
enter \開始 進入用戶執行模式 show 簡單信息
enable \進入特權執行模式 show更多信息
configure terminal \進入全局配置模式 更改名字
將運行配置文件保存到啓動配置文件的命令爲:
Router#copy running-config startup-config
show arp \用於顯示設備的 ARP 表。
show mac-address-table \(僅適用於交換機)用於顯示交換機的 MAC 表。
show startup-config \用於顯示保存在 NVRAM 中的配置。
show running-config \用於顯示當前運行配置文件的內容、特定接口的配置或映射類別信息。
show ip interfaces \ 用於顯示路由器上所有接口的 IPv4 統計信息。
要查看某個具體接口的統計信息,請輸入 show ip interfaces 命令,後接具體的接口插槽號/端口號。
此命令的另一個重要格式爲 show ip interface brief。這可用於快速獲取接口及其工作狀態的摘要信息。