下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、路由器常用命令1查看路由器:Router#show version顯示路由器的硬件配置,軟件版本,內(nèi)存大小以及配置寄存器設(shè)置等其中 configuration register0 x2102:正常啟動0 x2142:配置文件Router#show running-config顯示路由器當(dāng)前正使用的配置信息,信息存儲于RAM中,掉電丟失。Router#show startup-config顯示路由器啟動時所使用的配置信息,信息存儲于NVRAM中,掉電不丟失。Router#show ip arp (查看路由器上的ARP緩存表)Router#show ip route (查看路由表,包括動態(tài),靜態(tài)和
2、默認路由)Router#show interface f0/0 (查看 F0/0 的配置信息) fastethernet 0/0 is up ,line protocol is up(正常)fastethernet l 0/0 is up ,line protocol is down(硬件正常,配置錯誤。或連線故障) fastethernet 0/0 is down ,line protocol is down(硬件端口錯誤)fastethernet 0/0 is administratively down ,line protocol is down(管理員關(guān)閉端口)路由器出廠參數(shù)恢復(fù):Ro
3、uter#erase startup-configureRouter#reload路由器設(shè)置console控制臺密碼:啟用Router(config)#line console 0Router(config_line)#loginRouter(config_line)#password 密碼字符串取消Router(config)#line console 0Router(config_line)loginRouter(config_line)#no password 4.配置console的其他參數(shù)1)配置超時Router(config)#line console 0Router(config
4、_line)#exec-timeout 分秒如果指定時間內(nèi)沒有對console進行配置,自動返回登錄界面。2)顯示同步Router(config)#line console 0Router(config_line)#logging synchronous對所有密碼加密:Router(config)#service password-encryptoin關(guān)閉廣播查找:Router(config)#no ip domain-lookup誤操作引起的域名解析查找廣播進入f0/0端口 開啟端口配置子端口 封裝協(xié)議進入f0/0端口 開啟端口配置子端口 封裝協(xié)議Router1(config)#interf
5、ace f0/0Router1(config-if)#no shutRouter1(config-if)#interface f0/0.5Router1(config-subif)#encapsulation dot1q 5Router1(config-subif)#ip address 192.168.5.1 255.255.255.0 設(shè)置 IP配置接口標(biāo)識:Router(config-if)#description This is a fast Ethernet port used to connecting the companys intranet!路由:配置路由器標(biāo)識:Router
6、(config)#banner motd $This is Aptech Companys Route!$配置靜態(tài)Router(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.2 目的網(wǎng)段 子網(wǎng)掩碼下一相鄰接口地址Router(config)#ip route 192.168.1.0 255.255.255.0 serial0目的網(wǎng)段子網(wǎng)掩碼出站接口配置默認路由:Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.2任意目標(biāo)網(wǎng)段 任意掩碼 下一相鄰接口Router(config)#ip c
7、lassless(當(dāng)路由器不能轉(zhuǎn)發(fā)包時,匹配給默認路由)路由器telnet遠程登錄設(shè)置:Router(config)#enable secret 特權(quán)密碼Router(config)#interface fastethernet 0/1Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutRouter(config-if)#exitRouter(config)#line vty 0 4 Router(config_line)#login Router(config_line)#passwor
8、d 遠程登錄密碼端口配置IP地址Router(config)#interface f0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#no shut路由器cisco2600的密碼恢復(fù):Ctrl+break啟動路由器Rommonconfreg 0 x2142;啟動時不加載配置文件Rommonreset;監(jiān)視模式下重啟Set up模式選擇:noRouter#copy startup-config running-configRouter#configure terminalRouter(confi
9、g)#enable secret ciscoRouter(config)#config-register 0 x2102Router#copy running-config start-configRouter#reloadRIP協(xié)議命令RouterA(config)#router rip ;啟用 rip RouterA(config-router)#network 1721700(直連的主網(wǎng)絡(luò)地址) RouterA#debug ip rip ;啟用 rip 調(diào)試命令 RouterA#no debug ip rip ;關(guān)閉 rip 調(diào)試命令RIP V2協(xié)議命令RouterA(config)#r
10、outer rip ;啟用 rip RouterA(config-router)#(no)version 2;啟用 V2 版本/啟用 V1 版本RouterA(config-router)#network 1721700(直連的主網(wǎng)絡(luò)地址) RouterA(config-router)#no auto-summary ;關(guān)閉路由匯總功能 RouterA#show ip protocol;查看rip路由協(xié)議是否正常啟用一、設(shè)置對話狀態(tài)設(shè)置對話狀態(tài)是一臺新路由器開機時自動進入的狀態(tài),在特權(quán)命令狀態(tài)使用SETUP命令也 可進入此狀態(tài),這時可通過對話方式對路由器進行設(shè)置。二、路由器處于RXBOOT狀態(tài),在開機后60秒內(nèi)按ctrl-break可進入此狀態(tài),這時路由器不能 完成正常的功能,只能進行軟件升級和手工引導(dǎo)。三、router(config-if)#; router(config-line)#; router(config-router)#; 路由器處于局部設(shè)置狀態(tài),這時可以設(shè)置路由器某個局部的參數(shù)。四、router路由器處于用戶命令狀態(tài),這時用戶可以看路由器的連接狀態(tài),訪問其它網(wǎng)絡(luò)和主機,但不 能看到和更改路由器的設(shè)置內(nèi)容。五、router(
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 合同法教案課件
- 2024屆黑龍江省孫吳縣第一中學(xué)高中數(shù)學(xué)試題競賽模擬(二)試題
- 湖南版小學(xué)一年級上冊美術(shù)教案
- 傷寒課件教學(xué)課件
- 高考物理一輪復(fù)習(xí)考點精講精練第36講 物理實驗(一)(解析版)
- 物業(yè)管理年度個人工作總結(jié)(9篇)
- 技術(shù)項目開發(fā)協(xié)議(32篇)
- 護士頂崗實習(xí)報告范本
- 幼兒園年級組長工作總結(jié)
- 繼生態(tài)文明理念演講稿范文(34篇)
- 來賓參觀接待申請表樣表
- 課程考試考場情況記錄表(模板)
- 2022全國自考警察倫理學(xué)考前試題和答案
- 人文科學(xué)導(dǎo)論-陜西師范大學(xué)
- 無窮級數(shù)課件.ppt(PPT 103頁)
- 商品銷售管理系統(tǒng)的設(shè)計與實現(xiàn)(共32頁)
- TTI值的計算和應(yīng)用
- 英國文學(xué)簡史教案
- 【課件】5.3 三角函數(shù)的誘導(dǎo)公式(共19張PPT)
- (高清版)體育場館照明設(shè)計及檢測標(biāo)準(zhǔn)JGJ 153-2016
- 航測技術(shù)設(shè)計方案(范本)
評論
0/150
提交評論