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