cisco命令大全

cisco認證常用命令有哪些?為幫助同學們更好學習cisco認證知識,yjbys小編為大家分享最新cisco認證常用命令如下,趕緊來看看吧!

cisco命令大全

  1. switch配置命令

(1)模式轉換命令

使用者模式----特權模式,使用命令"enable"

特權模式----全域性配置模式,使用命令"config t"

全域性配置模式----介面模式,使用命令"interface+介面型別+介面號"

全域性配置模式----線控模式,使用命令"line+介面型別+介面號"

注:

使用者模式:檢視初始化的資訊.

特權模式:檢視所有資訊、除錯、儲存配置資訊

全域性模式:配置所有資訊、針對整個路由器或交換機的所有介面

介面模式:針對某一個介面的配置

線控模式:對路由器進行控制的介面配置

(2)配置命令

show running config 顯示所有的配置

show versin 顯示版本號和暫存器值

shut down 關閉介面

no shutdown 開啟介面

ip add +ip地址 配置IP地址

secondary+IP地址 為介面配置第二個IP地址

show interface+介面型別+介面號 檢視介面管理性

show controllers interface 檢視介面是否有DCE電纜

show history 檢視歷史記錄

show terminal 檢視終端記錄大小

hostname+主機名 配置路由器或交換機的標識

config memory 修改儲存在NVRAM中的啟動配置

exec timeout 0 0 設定控制檯會話超時為0

service password-encryptin 手工加密所有密碼

enable password +密碼 配置明文密碼

ena sec +密碼 配置密文密碼

line vty 0 4/15 進入telnet介面

password +密碼 配置telnet密碼

line aux 0 進入AUX介面

password +密碼 配置密碼

line con 0 進入CON介面

password +密碼 配置密碼

bandwidth+數字 配置頻寬

no ip address 刪除已配置的IP地址

show startup config 檢視NVRAM中的配置資訊

copy run-config atartup config 儲存資訊到NVRAM

write 儲存資訊到NVRAM

erase startup-config 清除NVRAM中的配置資訊

show ip interface brief 檢視介面的謫要資訊

banner motd # +資訊 + # 配置路由器或交換機的描素資訊

description+資訊 配置介面聽描素資訊

vlan database 進入VLAN資料庫模式

vlan +vlan號+ 名稱 建立VLAN

switchport access vlan +vlan號 為VLAN為配介面

interface vlan +vlan號 進入VLAN介面模式

ip add +ip地址 為VLAN配置管理IP地址

vtp+service/tracsparent/client 配置SW的VTP工作模式

vtp +domain+域名 配置SW的VTP域名

vtp +password +密碼 配置SW的`密碼

switchport mode trunk 啟用中繼

no vlan +vlan號 刪除VLAN

show spamming-tree vlan +vlan號 檢視VLA怕生成樹議

  2. 路由器配置命令

ip route+非直連網段+子網掩碼+下一跳地址 配置靜態/預設路由

show ip route 檢視路由表

show protocols 顯示出所有的被動路由協議和介面上哪些協議被設定

show ip protocols 顯示了被配置在路由器上的路由選擇協議,同時給出了在路由選擇協議中使用的定時器等資訊

router rip 啟用RIP協議

network +直連網段 釋出直連網段

interface lookback 0 啟用邏輯介面

passive-interface +介面型別+介面號 配置介面為被動模式

debug ip +協議 動態檢視路由更新資訊

undebug all 關閉所有DEBUG資訊

router eigrp +as號 啟用EIGRP路由協議

network +網段+子網掩碼 釋出直連網段

show ip eigrp neighbors 檢視鄰居表

show ip eigrp topology 檢視拓撲表

show ip eigrp traffic 檢視傳送包數量

router ospf +process-ID 啟用OSPF協議

network+直連網段+area+區域號 釋出直連網段

show ip ospf 顯示OSPF的程序號和ROUTER-ID

encapsulation+封裝格式 更改封裝格式

no ip admain-lookup 關閉路由器的域名查詢

ip routing 在三層交換機上啟用路由功能

show user 檢視SW的線上使用者

clear line +線路號 清除線路