路由器配置實驗報告_1_第1頁
路由器配置實驗報告_1_第2頁
路由器配置實驗報告_1_第3頁
路由器配置實驗報告_1_第4頁
已閱讀5頁,還剩13頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、路由器配置實驗報告實驗一、二、三、四路由器基本操作1【實驗名稱】使用命令行界面【實驗?zāi)康摹空莆章酚善髅钚懈鞣N操作模式的區(qū)別,以及模式之間的切換?!颈尘懊枋觥磕闶悄彻拘逻M(jìn)的網(wǎng)管,公司要求你熟悉網(wǎng)絡(luò)產(chǎn)品,公司采用全系列銳捷網(wǎng)絡(luò)產(chǎn)品,首先要求你登錄路由器,了解、掌握路由器的命令行操作?!炯夹g(shù)原理】路由器的管理方式基本分為兩種:帶內(nèi)管理和帶外管理。通過路由器的console口管理交換機(jī)屬于帶外管理,不占用路由器的網(wǎng)絡(luò)接口,但特點是線纜特殊,需要近距離配置。第一次配置路由器時必須利用console進(jìn)行配置,使其支持telnet遠(yuǎn)程管理。路由器的命令行操作模式,主要包括:用戶模式、特權(quán)模式、全局配置模

2、式、端口模式等等幾種。用戶模式進(jìn)入路由器后得到的第一個操作模式,該模式下可以簡單查看路由器的軟、硬件版本信息,并進(jìn)行簡單的測試。用戶模式提示符為red-giant特權(quán)模式由用戶模式進(jìn)入的下一級模式,該模式下可以對路由器的配置文件進(jìn)行管理,查看路由器的配置信息,進(jìn)行網(wǎng)絡(luò)的測試和調(diào)試等。特權(quán)模式提示符為red-giant#全局配置模式屬于特權(quán)模式的下一級模式,該模式下可以配置路由器的全局性參數(shù)(如主機(jī)名、登錄信息等)。在該模式下可以進(jìn)入下一級的配置模式,對路由器具體的功能進(jìn)行配置。全局模式提示符為red-giant (config)#端口模式屬于全局模式的下一級模式,該模式下可以對路由器的端口進(jìn)行

3、參數(shù)配置。exit命令是退回到上一級操作模式,end命令是直接退回到特權(quán)模式交換機(jī)命令行支持獲取幫助信息、命令的簡寫、命令的自動補(bǔ)齊、快捷鍵功能?!緦崿F(xiàn)功能】熟練掌握路由器的命令行操作模式2【實驗名稱】路由器的全局配置?!緦嶒?zāi)康摹空莆章酚善鞯娜值幕九渲??!颈尘懊枋觥磕闶悄彻拘逻M(jìn)的網(wǎng)管,公司有多臺路由器,為了進(jìn)行區(qū)分和管理,公司要求你進(jìn)行路由器設(shè)備名的配置,配置路由器登錄時的描述信息?!炯夹g(shù)原理】配置路由器的設(shè)備名稱和配置交換機(jī)的描述信息必須在全局配置模式下執(zhí)行。hostname配置路由器的設(shè)備名稱即命令提示符的前部分信息。當(dāng)用戶登錄路由器時,你可能需要告訴用戶一些必要的信息。你可以通過

4、設(shè)置標(biāo)題來達(dá)到這個目的。你可以創(chuàng)建兩種類型的標(biāo)題:每日通知和登錄標(biāo)題。banner motd配置路由器每日提示信息motd message of the day。banner login配置路由器遠(yuǎn)程登錄提示信息,位于每日提示信息之后。 【實現(xiàn)功能】 配置路由器的設(shè)備名稱和每次登錄路由器時提示相關(guān)信息。3【實驗名稱】路由器端口的基本配置?!緦嶒?zāi)康摹空莆章酚善鞫丝诘某S门渲脜?shù)?!颈尘懊枋觥磕阍谝患揖W(wǎng)絡(luò)工程公司就職,負(fù)責(zé)組建一個省級廣域網(wǎng)絡(luò)?,F(xiàn)項目經(jīng)理要求你根據(jù)實際網(wǎng)絡(luò)需求,對路由器的端口配置基本的參數(shù)?!炯夹g(shù)原理】銳捷路由器接口fastethernet接口默認(rèn)情況下是10m/100m自適應(yīng)端

5、口,雙工模式也為自適應(yīng),并且在默認(rèn)情況下路由器物理端口處于關(guān)閉狀態(tài)。路由器提供廣域網(wǎng)接口(serial高速同步串口),使用v.35線纜連接廣域網(wǎng)接口鏈路。在廣域網(wǎng)連接時一端為dce(數(shù)據(jù)通信設(shè)備),一端為dte(數(shù)據(jù)終端設(shè)備)。要求必須在dce 端配置時鐘頻率(clock rate)才能保證鏈路的連通。在路由器的物理端口可以靈活配置帶寬,但最大值為該端口的實際物理帶寬?!緦崿F(xiàn)功能】給路由器接口配置ip地址,并在dce端配置時鐘頻率,限制端口帶寬?!緦嶒炘O(shè)備】4【實驗名稱】查看路由器的系統(tǒng)和配置信息?!緦嶒?zāi)康摹坎榭绰酚善飨到y(tǒng)和配置信息,掌握當(dāng)前路由器的工作狀態(tài)。【背景描述】你是某公司新網(wǎng)管,第

6、一天上班時,你必須掌握公司路由器的當(dāng)前工作情況,通過查看路由器的系統(tǒng)信息和配置信息,了解公司的設(shè)備和網(wǎng)絡(luò)環(huán)境?!炯夹g(shù)原理】查看路由器的系統(tǒng)和配置信息命令要在特權(quán)模式下執(zhí)行。show version查看路由器的版本信息,可以查看到交換機(jī)的硬件版本信息和軟件版本信息,用于進(jìn)行交換機(jī)操作系統(tǒng)升級時的依據(jù)。show ip route 查看路由表信息。show running-config查看路由器當(dāng)前生效的配置信息?!緦崿F(xiàn)功能】查看路由器的各項參數(shù)?!緦嶒炘O(shè)備】r1762(1臺)、主機(jī)(1臺)、直連線(1條)【實驗拓?fù)洹俊緦嶒灢襟E】 1.hostname配置路由器的設(shè)備名稱 router(config

7、)#hostname routera設(shè)置路由器名稱為routera2.路由器命令行各種操作模式,以及模式之間的切換routera 用戶模式routeraenable 進(jìn)入特權(quán)模式routera#configure terminal 進(jìn)入全局配置模式enter configuration commands, one per line. end with cntl/z.routera(config)#interface fastethernet 0/1 進(jìn)入接口配置模式routera(config-if)#exit 退回到上一級操作模式routera(config)#end 從特權(quán)模式以下級別直接

8、返回到特權(quán)模式routera#3.路由器命令行支持獲取幫助信息、命令的簡寫、命令的自動補(bǔ)齊、快捷鍵功能1)命令行相關(guān)幫助routera? 顯示當(dāng)前命令模式下的所有可執(zhí)行命令exec commands: session number to resume connect open a terminal connectiondisable turn off privileged commandsdisconnect disconnect an existing network connectionenable turn on privileged commandsexit exit from the

9、 execlogout exit from the execping send echo messagesresume resume an active network connectionshow show running system informationtelnet open a telnet connectionterminal set terminal line parameterstraceroute trace route to destinationroutera#c? 顯示當(dāng)前模式下所有以c開頭的命令clear clock configure connect copyrou

10、tera#copy ? 顯示copy命令的所有后續(xù)命令flash: copy from flash: file systemftp: copy from ftp: file systemrunning-config copy from current system configurationstartup-config copy from startup configurationtftp: copy from tftp: file system2)命令自動補(bǔ)齊routera#con “tab”路由器支持命令的自動補(bǔ)齊routera#configure3)命令的簡寫routera#conf t

11、 路由器命令行支持命令的簡寫,該命令代表configure terminal routera(config)#4)快捷鍵功能 routera(config-if)# z ctrl+z退回到特權(quán)模式 routera#4.banner motd配置路由器每日提示信息、路由器登錄提示信息routera(config)#banner motd #enter text message. end with the character #.welcome access this router!please config it!#routera(config)#zroutera#%sys-5-config_i

12、: configured from console by consoleroutera#exroutera con0 is now availablepress return to get started.welcome access this swith!please config it!routera5.路由器端口的基本配置1)路由器a端口參數(shù)配置routera(config)#interface serial1/0routera(config-if)#ip address 給路由器接口配置ip地址routera(config-if)#clock rate

13、 64000 配置時鐘頻率routera(config-if)#bandwidth 512 限制端口帶寬routera(config-if)#no shutdown2)路由器b端口參數(shù)配置routerb(config)#interface serial1/0routerb(config-if)#ip address routerb(config-if)#clock rate 64000routerb(config-if)#bandwidth 512routerb(config-if)#no shutdown3)查看路由器端口配置的參數(shù)routera#sh in

14、terface serial 1/0查看routera serial 1/0 接口的狀態(tài)serial1/0 is up, line protocol is up (connected)hardware is hd64570internet address is /8mtu 1500 bytes, bw 512 kbit, dly 20000 usec,reliability 255/255, txload 1/255, rxload 1/255encapsulation hdlc, loopback not set, keepalive set (10 sec) last inp

15、ut never, output never, output hang never last clearing of show interface counters neverinput queue: 0/75/0 (size/max/drops); total output drops: 0queueing strategy: weighted fairoutput queue: 0/1000/64/0 (size/max total/threshold/drops)conversations 0/0/256 (active/max active/max total)reserved con

16、versations 0/0 (allocated/max allocated)available bandwidth 384 kilobits/sec5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec5 packets input, 640 bytes, 0 no bufferreceived 0 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 crc, 0 frame, 0 overrun

17、, 0 ignored, 0 abort 9 packets output, 1152 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 output buffer failures, 0 output buffers swapped out0 carrier transitionsdcd=up dsr=up dtr=up rts=up cts=uproutera#show ip interface serial 1/0查看該端口的ip協(xié)議相關(guān)屬性serial1/0 is up, line protocol

18、 is up (connected)internet address is /8broadcast address is 55address determined by setup commandmtu is 1500helper address is not setdirected broadcast forwarding is disabledoutgoing access list is not setinbound access list is not setproxy arp is enabledsecurity level is defaul

19、tsplit horizon is enabledicmp redirects are always senticmp unreachables are always senticmp mask replies are never sentip fast switching is disabledip fast switching on the same interface is disabledip flow switching is disabledip fast switching turbo vectorip multicast fast switching is disabledip

20、 multicast distributed fast switching is disabledrouter discovery is disabledip output packet accounting is disabledip access violation accounting is disabledtcp/ip header compression is disabled rtp/ip header compression is disabled probe proxy name replies are disabledpolicy routing is disablednet

21、work address translation is disabledwccp redirect outbound is disabledwccp redirect exclude is disabledbgp policy mapping is disabled4)驗證配置routera#ping type escape sequence to abort.sending 5, 100-byte icmp echos to , timeout is 2 seconds:!success rate is 100 percent (5/5), round-trip

22、min/avg/max = 24/29/31 ms6.查看路由器的系統(tǒng)和配置信息routera#show version 查看路由器的版本信息cisco ios software, 2800 software (c2800nm-advipservicesk9-m), version 12.4(15)t1, release software (fc2)technical support: /techsupportcopyright (c) 1986-2007 by cisco systems, inc.compiled wed 18-jul-07 06:21 by pt_rel_teamrom:

23、 system bootstrap, version 12.1(3r)t2, release software (fc1)copyright (c) 2000 by cisco systems, inc.system returned to rom by power-onsystem image file is c2800nm-advipservicesk9-mz.124-15.t1.binthis product contains cryptographic features and is subject to unitedstates and local country laws gove

24、rning import, export, transfer anduse. delivery of cisco cryptographic products does not implythird-party authority to import, export, distribute or use encryption. importers, exporters, distributors and users are responsible forcompliance with u.s. and local country laws. by using this product youa

25、gree to comply with applicable laws and regulations. if you are unableto comply with u.s. and local laws, return this product immediately.a summary of u.s. laws governing cisco cryptographic products may be found at: /wwl/export/crypto/tool/stqrg.htmlif you require further assistance please contact

26、us by sending email toexport . cisco 2811 (mpc860) processor (revision 0x200) with 60416k/5120k bytes of memory processor board id jad05190mtz (4292891495) m860 processor: part number 0, mask 492 fastethernet/ieee 802.3 interface(s)4 low-speed serial(sync/async) network interface(s)239k bytes of nvr

27、am.62720k bytes of processor board system flash (read/write)configuration register is 0x2102routera#routera#show ip route 查看路由表信息codes: c - connected, s - static, i - igrp, r - rip, m - mobile, b - bgpd - eigrp, ex - eigrp external, o - ospf, ia - ospf inter arean1 - ospf nssa external type 1, n2 -

28、ospf nssa external type 2e1 - ospf external type 1, e2 - ospf external type 2, e - egpi - is-is, l1 - is-is level-1, l2 - is-is level-2, ia - is-is inter area * - candidate default, u - per-user static route, o - odrp - periodic downloaded static routegateway of last resort is not setc /8 is

29、directly connected, serial1/0c /24 is directly connected, fastethernet0/0routera#sh running-config 查看路由器當(dāng)前生效的配置信息building configuration.current configuration : 691 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryp

30、tion!hostname routera!interface fastethernet0/0no ip addressduplex autospeed autoshutdown!interface fastethernet0/1 no ip address duplex autospeed autoshutdown!interface serial1/0bandwidth 512ip address clock rate 64000?interface serial1/3no ip addressshutdown!interface vlan1no ip a

31、ddressshutdown!ip classless!line con 0line vty 0 4login!end實驗五靜態(tài)路由【實驗名稱】靜態(tài)路由【實驗?zāi)康摹空莆胀ㄟ^靜態(tài)路由方式實現(xiàn)網(wǎng)絡(luò)的連通性?!颈尘懊枋觥考僭O(shè)校園網(wǎng)通過1臺路由器連接到校園外的另1臺路由器上,現(xiàn)要在路由器上做適當(dāng)配置,實現(xiàn)校園網(wǎng)內(nèi)部主機(jī)與校園網(wǎng)外部主機(jī)的相互通信?!炯夹g(shù)原理】路由器屬于網(wǎng)絡(luò)層設(shè)備,能夠根據(jù)ip包頭的信息,選擇一條最佳路徑,將數(shù)據(jù)包轉(zhuǎn)發(fā)出去。實現(xiàn)不同網(wǎng)段的主機(jī)之間的互相訪問。路由器是根據(jù)路由表進(jìn)行選路和轉(zhuǎn)發(fā)的。而路由表里就是由一條條的路由信息組成。路由表的產(chǎn)生方式一般有3種:直連路由給路由器接口配置一個i

32、p地址,路由器自動產(chǎn)生本接口ip所在網(wǎng)段的路由信息。靜態(tài)路由在拓?fù)浣Y(jié)構(gòu)簡單的網(wǎng)絡(luò)中,網(wǎng)管員通過手工的方式配置本路由器未知網(wǎng)段的路由 信息,從而實現(xiàn)不同網(wǎng)段之間的連接。 動態(tài)路由協(xié)議學(xué)習(xí)產(chǎn)生的路由在大規(guī)模的網(wǎng)絡(luò)中,或網(wǎng)絡(luò)拓?fù)湎鄬?fù)雜的情況下,通過在路由器上運行動態(tài)路由協(xié)議,路由器之間互相自動學(xué)習(xí)產(chǎn)生路由信息。【實現(xiàn)功能】實現(xiàn)網(wǎng)絡(luò)的互連互通,從而實現(xiàn)信息的共享和傳遞?!緦嶒炘O(shè)備】r1762(兩臺)、v35線纜(1條)、pc(兩臺)、直連線或交叉線(2條)注:普通路由器和主機(jī)直連時,需要使用交叉線,在r1762的以太網(wǎng)接口支持mdi/mdix,使用直連線也可以連通?!咀⒁馐马棥咳绻麅膳_路由器通過串口

33、直接互連,則必須在其中一端設(shè)置時鐘頻率(dce)?!緦嶒灢襟E】1.路由器相關(guān)配置routera(config)#interface serial1/0routera(config-if)#ip address routera(config-if)#exitroutera(config)#interface fastethernet0/0routera(config-if)#ip address routera(config-if)#exitroutera(config)#ip route 172.1

34、6.3.0 做a到b的靜態(tài)路由routerb(config)#interface serial1/0routerb(config-if)#ip address routerb(config-if)#exitrouterb(config)#interface fastethernet0/0routerb(config-if)#ip address routerb(config-if)#exrouterb(config)#ip route 172.16.1

35、.0 應(yīng)答前面所做路由2.查看路由表routerb#sh ip route/24 is subnetted, 3 subnetss 1/0 via c is directly connected, serial1/0c is directly connected, fastethernet0/03.驗證配置(pc0 ping pc1)pcping pinging with 32 bytes of da

36、ta: request timed out. reply from : bytes=32 time=94ms ttl=126reply from : bytes=32 time=93ms ttl=126reply from : bytes=32 time=94ms ttl=126ping statistics for :packets: sent = 4, received = 3, lost = 1 (25% loss),approximate round trip times in milli-seconds:

37、minimum = 93ms, maximum = 94ms, average = 93ms實驗六 rip v2配置【實驗名稱】rip v2配置。【實驗?zāi)康摹空莆赵诼酚善魃吓渲胷ip v2。【背景描述】假設(shè)校園網(wǎng)通過1臺三層交換機(jī)連到校園網(wǎng)出口路由器,路由器再和校園外的另1臺路由器連接,現(xiàn)做適當(dāng)配置,實現(xiàn)校園網(wǎng)內(nèi)部主機(jī)與校園網(wǎng)外部主機(jī)的相互通信。本實驗以兩臺r1762路由器、1臺三層交換機(jī)為例。s3550上劃分有vlan10和vlan50,其中vlan10用于連接router1,vlan50用于連接校園網(wǎng)主機(jī)。路由器分別命名為router1和router2,路由器之間通過串口采用v35 dce

38、/dte電纜連接,dce端連接到router1(r1762)上。pc1的ip地址和缺省網(wǎng)關(guān)分別為1和,pc2的ip地址和缺省網(wǎng)關(guān)分別為2和,網(wǎng)絡(luò)掩碼都是?!炯夹g(shù)原理】rip(routing information protocols,路由信息協(xié)議)是應(yīng)用較早、使用較普遍的igp (interior gateway protocol,內(nèi)部網(wǎng)關(guān)協(xié)議),適用于小型同類網(wǎng)絡(luò),是典型的距離矢量(distance-vector)協(xié)議。rip協(xié)議跳數(shù)做為衡量路徑開銷的,rip協(xié)議里規(guī)定最大跳數(shù)為15。rip協(xié)議有兩個版本ripv1和ripv2。ripv1屬于有類路由協(xié)議,不支持vlsm(變長子網(wǎng)掩碼),ripv1是以廣播的形式進(jìn)行路由信息的更新的;更新周期為30秒。ripv2屬于無類路由協(xié)議,支持vlsm(變長子網(wǎng)掩碼),ripv2是以組播的形式進(jìn)行路由信息的更新的,組播地址是。ripv2還支持基于端口的認(rèn)證,提高網(wǎng)絡(luò)的安全性

溫馨提示

  • 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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論