視點:路由器常用命令大全
了解一些關(guān)于路由器常用命令的知識還是非常有必要的,于是我研究了一下路由器常用命令的詳細知識,比如改變命令狀態(tài)、顯示命令等等,在這里拿出來和大家分享一下,希望對大家有用。
路由器常用命令1. 幫助
在IOS操作中,無論任何狀態(tài)和位置,都可以鍵入“?”得到系統(tǒng)的幫助。
路由器常用命令2. 改變命令狀態(tài)
任務 命令
進入特權(quán)命令狀態(tài) enable
退出特權(quán)命令狀態(tài) disable
進入設置對話狀態(tài) setup
進入全局設置狀態(tài) config terminal
退出全局設置狀態(tài) end
進入端口設置狀態(tài) interface type slot/number
進入子端口設置狀態(tài) interface type number.subinterface [point-to-point | multipoint]
進入線路設置狀態(tài) line type slot/number
進入路由設置狀態(tài) router protocol
退出局部設置狀態(tài) exit
路由器常用命令3. 顯示命令
任務 命令
查看版本及引導信息 show version
查看運行設置 show running-config
查看開機設置 show startup-config
顯示端口信息 show interface type slot/number
顯示路由信息 show ip router
路由器常用命令4. 拷貝命令
用于IOS及CONFIG的備份和升級
路由器常用命令5. 網(wǎng)絡命令
任務 命令
登錄遠程主機 telnet hostname|IP address
網(wǎng)絡偵測 ping hostname|IP address
路由跟蹤 trace hostname|IP address
路由器常用命令6. 基本路由器設置命令
任務 命令
全局設置 config terminal
設置訪問用戶及密碼 username username password password
設置特權(quán)密碼 enable secret password
設置路由器名 hostname name
設置靜態(tài)路由 ip route destination subnet-mask next-hop
啟動IP路由 ip routing
啟動IPX路由 ipx routing
端口設置 interface type slot/number
設置IP地址 ip address address subnet-mask
設置IPX網(wǎng)絡 ipx network network
激活端口 no shutdown
物理線路設置 line type number
啟動登錄進程 login [local|tacacs server]
設置登錄密碼 password password