路由器的基本操作解析_第1頁(yè)
路由器的基本操作解析_第2頁(yè)
路由器的基本操作解析_第3頁(yè)
路由器的基本操作解析_第4頁(yè)
路由器的基本操作解析_第5頁(yè)
已閱讀5頁(yè),還剩8頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、四川大學(xué)計(jì)算 機(jī) 學(xué) 院、軟 件 學(xué) 院實(shí)驗(yàn)報(bào)告學(xué)號(hào): 2013141462034 姓名:于澤淵專業(yè):計(jì)算機(jī)班級(jí): 2013 級(jí) 6 班 第 8 周課程名稱計(jì)算機(jī)網(wǎng)絡(luò)課程設(shè)計(jì)實(shí)驗(yàn)項(xiàng)目路由器的基本操作實(shí)驗(yàn)課時(shí)實(shí)驗(yàn)時(shí)間2015/20/28實(shí)驗(yàn)?zāi)康睦斫饴酚善鞯墓ぷ髟恚莆章酚善鞯幕静僮?。?shí)驗(yàn)環(huán)境Pc機(jī) 1 臺(tái),路由器 1臺(tái).但特點(diǎn)是線纜特殊, 需要使其支持 telnet 遠(yuǎn)程管理。特權(quán)模式、 全局配置模式、實(shí)驗(yàn)原理: 路由器的管理方式基本分為兩種:帶內(nèi)管理和帶外管理。通過(guò)路由器的 Console 口管理 路由器屬于帶外管理, 不占用路由器的網(wǎng)絡(luò)接口, 近距離配置。第 一次配置路由器時(shí)必須利用 C

2、onsole 進(jìn)行配置, 路由器的命令行操作模式, 主要包括: 用戶模式、 端口模 式等等幾種。實(shí)驗(yàn)內(nèi)容 (算法、程 序、步驟和 方法)用戶模式 進(jìn)入路由器后得到的第一個(gè)操作模式,該模式下可以簡(jiǎn)單查看 路由器 的軟、硬件版本信息,并進(jìn)行簡(jiǎn)單的測(cè)試。用戶模式提示符為 Red-Giant特權(quán)模式 由用戶模式進(jìn)入的下一級(jí)模式,該模式下可以對(duì)路由器的配置 文件進(jìn)行管理, 查看路由器的配置信息, 進(jìn)行網(wǎng)絡(luò)的測(cè)試和調(diào)試等。 特權(quán)模式提示 符為Red-Giant#全局配置模式 屬于特權(quán)模式的下一級(jí)模式, 該模式下可以配置路由器的全 局性參數(shù)(如主機(jī)名、登錄信息等) 。在該模式下可以進(jìn)入下一級(jí)的配置模式, 對(duì)

3、路由器具體的功能進(jìn)行配置。全局模式提示符為Red-Giant (config)#端口模式 屬于全局模式的下一級(jí)模式,該模式下可以對(duì)路由器的端口進(jìn) 行參數(shù)配置。Exit 命令是退回到上一級(jí)操作模式, end 命令是直接退回到特權(quán)模式 路由器命令行支持獲取幫助信息、 命令的簡(jiǎn)寫、 命令的自動(dòng)補(bǔ)齊、 快捷鍵功 能。配置路由器的設(shè)備名稱和路由器的描述信息必須在全局配置模式下執(zhí)行。 Hostname 配置路由器的設(shè)備名稱即命令提示符的前部分信息。 當(dāng)用戶登錄路由器時(shí), 你可能需要告訴用戶一些必要的信息。 你可以通過(guò)設(shè) 置標(biāo)題來(lái) 達(dá)到這個(gè)目的。你可以創(chuàng)建兩種類型的標(biāo)題:每日通知和登錄標(biāo)題。Banner m

4、otd 配置路由器每日提示信息 motd message of the day。 Banner login 配置路由器遠(yuǎn)程登錄提示信息,位于每日提示信息之后。 銳捷路由器接口 Fastethernet 接口默認(rèn)情況下是 10M/100M 自適應(yīng)端口, 雙工模式也為 自適應(yīng)。 在路由器的物理端口可以靈活配置帶寬,但最大值為該端口的實(shí)際物理帶 寬。查看路由器的系統(tǒng)和配置信息命令要在特權(quán)模式下執(zhí)行。Show version 查看路由器的版本信息, 可以查看到路由器的硬件版本信息 和軟件版本信 息,用于進(jìn)行路由器操作系統(tǒng)升級(jí)時(shí)的依據(jù)。Show ip route 查看路由表信息。 Show runnin

5、g-config 查看路由器當(dāng)前生效的配置信息。 實(shí)驗(yàn)步驟: 第一步:路由器命令行的基本功能RSR20? !使用?顯示當(dāng)前模式下所有可執(zhí)行的命令 Exec commands: Session number to resume disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC help Description of the interactive he

6、lp system lock Lock the terminal ping Send echo messages ping6 ping6 show Show running system information start-terminal-service Start terminal service telnet Open a telnet connectiontraceroute Trace route to destination RSR20e?enable exit !顯示當(dāng)前模式下所有以 e 開頭的命令 RSR20en !按鍵盤的 Tab 鍵自動(dòng)補(bǔ)齊命令,路由器支持命令的自動(dòng)補(bǔ)齊 R

7、SR20enable!使用 enable 命令從用戶模式進(jìn)入特權(quán)模式 RSR20#copy ?!顯示 copy 命令后可執(zhí)行的參數(shù) flash: Copy from flash: file system running-config Copy from current system configuration startup-config Copy from startup configuration tftp: Copy from tftp: file system xmodem: Copy from xmodem: file system RSR20#copy % Incomplete c

8、ommand. !提示命令未完,必須附帶可執(zhí)行的參數(shù) RSR20#conf t!路由器支持命令的簡(jiǎn)寫,該命令代表configure terminal!進(jìn)入路由器的全局配置模式Enter configuration commands, one per line. End with CNTL/Z. RSR20(config)#interface fastEthernet 0/0 !進(jìn)入路由器端口 Fa0/0 的接口配置模式RSR20(config-if)# RSR20(config-if)#exit!使用 exit 命令返回上一級(jí)的操作模式 RSR20(config)#interface fast

9、Ethernet 0/0 RSR20(config-if)#end!使用 end 命令直接返回特權(quán)模式 RSR20#RSR20(config)#interface fastEthernet 0/0 RSR20(config-if)#Z!使用快捷鍵 ctrl+Z 直接退回到特權(quán)模式 RSR20#RSR20#ping Sending 5, 100-byte ICMP Echoes to , timeout is 2 seconds: .C Success rate is 0 percent (0/3)!在路由器特權(quán)模式下執(zhí)行 ping 命令,發(fā)現(xiàn)不能 p

10、ing 通目標(biāo)地址, 路由器默認(rèn)情況下需要發(fā)送 5 個(gè)數(shù)據(jù)包, 若不想等到 5 個(gè)數(shù)據(jù)包均不能 ping 通目標(biāo) 地址時(shí)才認(rèn)為目的地址不可到達(dá),可在數(shù)據(jù)包未發(fā)出 5 個(gè)之前通過(guò)快捷鍵 Ctrl+C 終止 當(dāng)前操作。第二步:配置路由器的名稱和每日提示信息RSR20enableRSR20#configure terminalEnter configuration commands, one per line. End with CNTL/Z. RSR20(config)#hostname RouterA!將路由器的名稱設(shè)置為 RouterA RouterA(config)#RouterA(conf

11、ig)#banner motd & !設(shè)置路由器的每日提示信息, motd 后面的參數(shù)為設(shè)置的終止符Enter TEXT message. End with the character &.Welcome to RouterA, if you are admin, you can config it.If you are not admin, please EXIT.& RouterA(config)# 驗(yàn)證測(cè)試:RouterA#exitRouterA CON0 is now available Press RETURN to get startedWelcome to RouterA, if

12、 you are admin, you can config it.If you are not admin, please EXIT.RouterA 第三步:配置路由器的接口并查看接口配置RouterA#configure terminalEnter configuration commands, one per line. End with CNTL/Z. RouterA(config)#interface fastEthernet 0/0 !進(jìn)入端口 Fa0/0 的接口配置模式RouterA(config-if)#ip address

13、!配置接口的 IP 地址RouterA(config-if)#no shutdown !開啟該端口RouterA(config-if)#end RouterA#show interfaces fastEthernet 0/0!查看端口 Fa0/0 的狀態(tài)是否為 UP,地址配置和流量統(tǒng)計(jì)等信息 Index(dec):1 (hex):1FastEthernet 0/0 is UP , line protocol is UPHardware is MPC8248 FCC FAST ETHERNET CONTROLLER FastEthernet, address is 00d0.f86b.3832

14、(bia 00d0.f86b.3832)Interface address is: /24ARP type: ARPA,ARP Timeout: 3600 secondsMTU 1500 bytes, BW 100000 KbitEncapsulation protocol is Ethernet-II, loopback not setKeepalive interval is 10 sec , setCarrier delay is 2 secRXload is 1 ,Txload is 1Queueing strategy: FIFOOutput queue 0/4

15、0, 0 drops;Input queue 0/75, 0 dropsLink Mode: 100M/Full-Duplex5 minutes input rate 1 bits/sec, 0 packets/sec5 minutes output rate 1 bits/sec, 0 packets/sec1 packets input, 60 bytes, 0 no buffer, 0 droppedReceived 1 broadcasts, 0 runts, 0 giants0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort1 pac

16、kets output, 42 bytes, 0 underruns , 0 dropped0 output errors, 0 collisions, 2 interface resets 第四步:查看路由器的配置RouterA#show version !查看路由器的版本信息System description : Ruijie Router(RSR20-04) by Ruijie NetworkSystem start time : 2009-8-16 5:37:38System hardware version : 1.01 !硬件版本號(hào)System software version

17、: RGNOS 10.1.00(4), Release(18443) !軟件版本號(hào)System boot version : 10.2.24515System serial number : 1234942570135RouterA#show ip route !查看路由表信息 Codes: C - connected, S - static, R - RIP B - BGPO - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external

18、type 1, E2 - OSPF external type 2i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate defaultGateway of last resort is no setC /24 is directly connected, FastEthernet 0/0C /32 is local host. RouterA#show running-config !查看路由器當(dāng)前生效的配置信息Building co

19、nfiguration.Current configuration : 540 bytes!version RGNOS 10.1.00(4), Release(18443)(Tue Jul 17 20:50:30 CST 2007 -ubu1server)hostname RouterA!interface FastEthernet 0/0ip address duplex autospeed auto!interface FastEthernet 0/1 duplex auto speed auto!line con 0line aux 0

20、line vty 0 4login!banner motd CWelcome to RouterA, if you are admin, you can config it.If you are not admin, please EXIT. C! end數(shù)據(jù)記錄和計(jì)算Succeis xate is 0 percent (VS)Ruijie5ib“Fuiji*3?ccnfiiure ternxnalEnter confienation ccanandf, orie per ne. Brid vith CXTl/tRui j ie (corfi jj) 5hri ahuxOGt 20 LitjT

21、S-CC!(FIG_Ii Ccwfiffured, frex console byYouterMwhg interfaces fagtEthernet 0/0Index Idee)! I Qie): IFartth*xjv*t 30 “ UT , luv pcotQcol “ WHardraro ia IK迪8 FOC FAST ETHEPJiET OOEDLLER 做&t祐met, address 址 U14.4bld.cacb Cbia 1414.4bld. cb Interfaceis: 192.1. 1/24UT typ: APPA, ARP Tkr.vout: 3600 ”cmUF1

22、TU 1500 bjrtos. FK 100000 tb itr(c2ulat icm protocol is fitter net-II, loopback not cat“epilive lmerval ir 10 se . jetCacsiex delay x 2 secRXload is 1 , Txload le 1Qveueinf strategy: FIFOOutput queue Q?40. 0 dxcpsInjfJt Quwe 0/75, 0 dropwLijUi Node: I QCWVPull-Duplnc5 xzxte wxt rite 0 bitc/jcc 0 jac

23、ket5/jcc5 xuujtes output rate 6 bits/ffec., 0 packet/ec0 packet 8 inpjY 0 bytof9 0 no brffer 0 di oppedRereigd 0 broadcarts, 0 rtYtr, 0 giant工0?xcox5 0 CKC. 0 “axe, 0 qvxc*jiu 0 aboct2 packet a output M bytes, 0 vndrrurii , 0 di opped0 output errors, O collisions, 3 intertaee resetsvctsxmSyaten defo

24、riptici1 Ruijie Routvr CR5R2O-04) by Ruijxo W(vrk5Sytoft at art tig: 2015-10-28 10:63:24Syst on hardware varsion :l72Syt en softwara version : KCOS 10.3, Release(134724) Syst eiw BOOT version: 103】34724rout orBt?show ip routeCodes x C - onnec-t ed S - st at ic, R - RIP, B BGPO 一 OSPF, IA - OSPF inter areaN1 - OSPF NSSA extornal type 1M N2 - OSPF NSSA external type 2El -

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論