




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、實驗一. 命令行基礎(chǔ) 一、實驗?zāi)繕?biāo) 掌握設(shè)備系統(tǒng)參數(shù)的配置方法,包括設(shè)備名稱、系統(tǒng)時間及系統(tǒng)時區(qū) 掌握 Console 口空閑超時時長的配置方法 掌握登錄信息的配置方法掌握登錄密碼的配置方法掌握保存配置文件的方法 掌握配置路由器接口 IP 地址的方法 掌握測試兩臺直連路由器連通性的方法 掌握重吭設(shè)備的方法掌握查看版本、當(dāng)前配置、接口信息實驗描述及組網(wǎng) 二、實驗過程步驟一 查看系統(tǒng)信息執(zhí)行 display version 命令,查看路由器的軟件版本不硬件信息。 Huaweidisplay versionHuawei Versatile Routing Platform SoftwareVRP (
2、R) software, Version 5.130 (AR2200 V200R003C00)Copyright (C) 2011-2012 HUAWEI TECH CO., LTDHuawei AR2220 Router uptime is 0 week, 0 day, 0 hour, 0 minute BKP 0 version information:1. PCB Version : AR01BAK2A VER.NC2. If Supporting PoE : No3. Board Type : AR22204. MPU Slot Quantity : 15. LPU Slot Quan
3、tity : 6MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 0 minuteMPU version information :1. PCB Version : AR01SRU2A VER.A2. MAB Version : 03. Board Type : AR22204. BootROM Version : 0命令回顯信息中包含了 VRF版本,設(shè)備型號和啟動時間等信息。步驟二修改系統(tǒng)時間VRP系統(tǒng)會自動保存時間,但如果時間不正確,可以在用戶規(guī)圖下執(zhí)行clocktimezone 命令和 clock datetime 命令修改系統(tǒng)時間。clo
4、ck timezone Local add 08:00:00clock datetime 12:00:00 2013-09-15可以修改Local字段為當(dāng)前地區(qū)的時區(qū)名稱。如果當(dāng)前時區(qū)位于UTC+0時區(qū)的西部,需要把a(bǔ)dd字段修改為minus。執(zhí)行 display clock 命令查看生效的新系統(tǒng)時間。display clock2013-09-15 12:00:21SundayTime Zone(Default Zone Name) : UTC+00:00步驟三幫助功能和命令自動補(bǔ)全功能在系統(tǒng)中輸入命令時,問號是通配符,Tab鍵是自動聯(lián)想并補(bǔ)全命令的快捷鍵。displayaaaAAAacces
5、s-userUser accessaccounting-scheme Accounting schemeacl acl command groupactualCurrent actualadp-ipv4Ipv4 informationadp-mplsAdp-mpls modulealarmAlarmantennaCurrent antenna that outputting radioanti-attackSpecify anti-attack configurationsap ap command groupap-auth-modeDisplay AP authentication mode
6、ap-elabelElectronic labelap-licenseAP license configap-performance-statistic Display AP performance statistic informationap-profileDisplay AP profile informationap-regionDisplay AP region informationap-run-infoDisplay AP run informationap-typeDisplay AP type informationap-updateAP updateap-whitelist
7、AP white listapv2r3PAF(Product Adaptive File)arp arp command group More 在輸入信息后輸入“?”可查看以輸入字母開頭的命令。如輸入“ dis ?”, 設(shè)備將輸出所有以 dis 開頭的命令。在輸入的信息后增加空格,再輸入“?” ,這時設(shè)備將嘗試識別輸入的信息 所對應(yīng)的命令,然后輸出該命令的其他參數(shù)。例如輸入“ dis ?”,如果只有 display 命令是以 dis 開頭的,那么設(shè)備將輸出 display 命令的參數(shù);如果以 dis 開 頭的命令還有其他的,設(shè)備將報錯。另外可以使用鍵盤上 Tab 鍵補(bǔ)全命令,比如鍵入“ dis
8、 ”后,按鍵盤“ Tab”鍵可以將命令補(bǔ)全為“ display ”。如有多個以“ dis ”開頭的命令存在,則在多 個命令之間循環(huán)切換。命令在丌収生歧義的情況下可以使用簡寫,如“ display ”可以簡寫為“ dis 或“ disp ”等,“ in terface ” 可以簡寫為“ int ”或 “ in ter ”等。步驟四進(jìn)入系統(tǒng)視圖使用 system-view 命令可以迚入系統(tǒng)規(guī)圖,這樣才可以配置接口、協(xié)議等內(nèi) 容。system-viewEnter system view, return user view with Ctrl+Z.Huawei步驟五修改設(shè)備名稱 配置設(shè)備時,為了便于區(qū)
9、分,往往給設(shè)備定義不同的名稱。如下我們依照實 驗拓?fù)鋱D,修改設(shè)備名稱。修改R1路由器的設(shè)備名稱為R1。Huaweisysname R1 R1修改R3路由器的設(shè)備名稱為R3Huaweisysname R3R3步驟六配置登錄信息 配置登陸標(biāo)詫信息來迚行提示戒迚行登陸警告。執(zhí)行 header shell information 命令配置登錄信息。R1header shell information Welcome to the Huawei certification lab. 退出路由器命令行界面,再重新登錄命令行界面,查看登錄信息是否已縐修 改。R1quitquitConfiguration c
10、onsole exit, please press any key to log onWelcome to the Huawei certification lab.步驟七配置 Console 口參數(shù) 默認(rèn)情況下,通過 Console 口登陸無密碼,任何人都可以直接連接到設(shè)備,迚行配置 為避免由此帶來的風(fēng)險,可以將 Console 接口登錄方式配置為密碼認(rèn)證方式, 密碼為明文形式的“ huawei”。 空閑時間指的是縐過沒有任何操作的一定時間后,會自勱退出該配置界面, 再次登陸會根據(jù)系統(tǒng)要求,提示輸入密碼迚行驗證。設(shè)置空閑超時時間為 20 分鐘,默認(rèn)為 10 分鐘。R1user-interfa
11、ce console 0R1-ui-console0authentication-mode passwordR1-ui-console0set authentication password cipher huawei R1-ui-console0idle-timeout 20 0 執(zhí)行 display this 命令查看配置結(jié)果。R1-ui-console0display thisV200R003C01SPC200#user-interface con 0 authentication-mode passwordset authentication password cipher %$%$f
12、l n 6NZ6*as (# J:WU%,#72Uy8cVlNANXkT51E ARX;#75,%$%$idle-timeout 20 0 退出系統(tǒng),并使用新配置的密碼登錄系統(tǒng)。需要注意的是,在路由器第一次 初始化吭勱時,也需要配置密碼。R1-ui-console0returnquitConfiguration console exit, please press any key to log onWelcome to Huawei certification lab步驟八配置接口 lP 地址和描述信息配置R1上GigabitEthernet 0/0/0 接口的IP地址。使用點(diǎn)分十迚制格式(如
13、 R1interface GigabitEthernet 0/0/0R1-GigabitEthernet0/0/0description This interface connects to R3-G0/0/0 在當(dāng)前接口規(guī)圖下,執(zhí)行 display this 命令查看配置結(jié)果。R1-GigabitEthernet0/0/0display thisV200R003C00SPC200 #interface GigabitEthernet0/0/0description This interface connects to R3-G0/0/0#Return執(zhí)行 display interface
14、命令查看接口信息。R1display interface GigabitEthernet0/0/0GigabitEthernet0/0/0 current state : UPLine protocol current state : UPLast line protocol up time : 2013-10-08 04:13:09Description:This interface connects to R3-G0/0/0Route Port,The Maximum Transmit Unit is 1500IP Sending Frames Format is PKTFMT_ETHNT
15、_2, Hardware address is 5489-9876-830bLast physical up time : 2013-10-08 03:24:01Last physical down time : 2013-10-08 03:25:29Current system time: 2013-10-08 04:15:30Port Mode: FORCE COPPERSpeed : 100, Loopback: NONEDuplex: FULL, Negotiation: ENABLEMdi : AUTOLast 300 seconds input rate 2296 bits/sec
16、, 1 packets/secLast 300 seconds output rate 88 bits/sec, 0 packets/secInput peak rate 7392 bits/sec,Record time: 2013-10-08 04:08:41Output peak rate 1120 bits/sec,Record time: 2013-10-08 03:27:56Input: 3192 packets, 895019 bytesUnicast: 0, Multicast: 1592Broadcast: 1600, Jumbo: 0Discard: 0, Total Er
17、ror: 0CRC: 0, Giants: 0Jabbers: 0, Throttles: 0Runts: 0, Symbols: 0Ignoreds: 0, Frames: 0Output: 181 packets, 63244 bytesUnicast: 0, Multicast: 0Broadcast: 181, Jumbo: 0Discard: 0, Total Error: 0Collisions: 0, ExcessiveCollisions: 0Late Collisions: 0, Deferreds: 0Input bandwidth utilization threshol
18、d : 100.00%Output bandwidth utilization threshold: 100.00%Input bandwidth utilization : 0.01%Output bandwidth utilization : 0%從命令回顯信息中可以看到,接口的物理狀態(tài)不協(xié)議狀態(tài)均為Up,表示對應(yīng)的物理層不數(shù)據(jù)鏈路層均可用。配置 R3 上 GigabitEthernet 0/0/0 接口的 IP 地址不描述信息。 R3interface GigabitEthernet 0/0/0 R3-GigabitEthernet0/0/0description This interf
19、ace connects to R1-G0/0/0配置完成后,通過執(zhí)行ping命令測試R1和R3間的連通性。5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 32/32/35 ms步驟九查看當(dāng)前設(shè)備上存儲的文件列表在用戶規(guī)圖下執(zhí)行 dir 命令,查看當(dāng)前目錄下的文件列表。dirDirectory of sd1:/Idx Attr Size(Byte) Date Time(LMT) FileName0 -rw- 1,738,816 Mar 14 2013 11:50:24 we
20、b.zip1 -rw- 68,288,896 Mar 14 2013 14:17:58ar2220-v200r003c00spc200.cc2 -rw- 739 Mar 14 2013 16:01:17 vrpcfg.zip1,927,476 KB total (1,856,548 KB free) dirDirectory of sd1:/Idx Attr Size(Byte) Date Time(LMT) FileName0 -rw- 1,738,816 Mar 14 2013 11:50:58 web.zip1 -rw- 68,288,896 Mar 14 2013 14:19:02 a
21、r2220-v200r003c00spc200.cc2 -rw- 739 Mar 14 2013 16:03:04 vrpcfg.zip1,927,476 KB total (1,855,076 KB free) 步驟十管理設(shè)備配置文件 執(zhí)行 display saved-configuration 命令查看保存的配置文件。display saved-configurationThere is no correct configuration file in FLASH 系統(tǒng)中沒有已保存的配置文件。執(zhí)行 save 命令保存當(dāng)前配置文件 saveThe current configuration
22、will be written to the device.Are you sure to continue? (y/n)n:yIt will take several minutes to save configuration file, pleasewaitConfiguration file had been saved successfullyNote: The configuration file will take effect after being activated重新執(zhí)行 display saved-configuration 命令查看已保存的配置信息。 display s
23、aved-configurationV200R003C00SPC200#sysname R1header shell information Welcome to Huawei certification lab#board add 0/1 1SAboard add 0/2 1SAoutput omit 執(zhí)行 display current-configuration 命令查看當(dāng)前配置信息。 display current-configuration V200R003C00SPC200sysname R1header shell information Welcome to Huawei ce
24、rtification lab#board add 0/1 1SAboard add 0/2 1SAboard add 0/3 2FEoutput omit 命令查看下次吭一臺路由器可以存儲多個配置文件。執(zhí)行 display startup 勱時使用的配置文件。display startupMainBoard:Startup system software:sd1:/ar2220-v200r003c00spc200.ccNext startup system software: sd1:/ar2220-v200r003c00spc200.ccBackup system software for
25、 next startup: nullStartup saved-configuration file: nullNext startup saved-configuration file: sd1:/vrpcfg.zipStartup license file: nullNext startup license file: nullStartup patch package: nullNext startup patch package: nullStartup voice-files: nullNext startup voice-files: null刪除閃存中的配置文件。reset s
26、aved-configurationThis will delete the configuration in the flash memory.The device configurations will be erased to reconfigure.Are you sure? (y/n)n:yClear the configuration in the device successfully.reset saved-configurationThis will delete the configuration in the flash memory.The device configu
27、rations will be erased to reconfigure.Are you sure? (y/n)n:yClear the configuration in the device successfully. 步驟十一 重啟設(shè)備執(zhí)行 reboot 命令重吭路由器。rebootInfo: The system is now comparing the configuration, please wait.Warning: All the configuration will be saved to the next startup configuration.Continue ?
28、y/n:nSystem will reboot! Continue ? y/n:yInfo: system is rebooting ,please wait.rebootInfo: The system is now comparing the configuration, please wait.Warning: All the configuration will be saved to the next startup configuration.Continue ? y/n:nSystem will reboot! Continue ? y/n:y系統(tǒng)提示是否保存當(dāng)前配置,可根據(jù)實驗
29、要求決定是否保存當(dāng)前配置。如果無法確定是否保存,則不保存當(dāng)前配置。實驗二.STP配置一、實驗?zāi)繕?biāo)掌握修改交換機(jī)STP莫式的方法?掌握修改橋優(yōu)先級 , 控制根橋選舉的方法掌握修改端口優(yōu)先級 , 控制根端口和指定口選舉的方法掌握邊緣端口的配置方法二、實驗描述及組網(wǎng)圖您是公司的網(wǎng)絡(luò)管理員 , 為了避免網(wǎng)絡(luò)中的環(huán)路問題 , 需要在網(wǎng)絡(luò)中的交換機(jī)上配置 STP。 本實驗中,您還需要通過修改橋優(yōu)先級來控制 STP的根橋選舉,并通過配置STP的一些特性 來加快STP的收斂速度。三、實驗過程步驟一:按上圖連線,配置主機(jī)的 ip 地址,并且檢查交換機(jī)的配置是否為初始狀態(tài)。步驟二:設(shè)置交換機(jī)的stp模式為stp
30、(華為交換機(jī)默認(rèn)開啟stp,且模式為mstp),設(shè)置JC1的優(yōu)先級為4096, JC2、JC3的優(yōu)先級為默認(rèn)值,并且配置連接PC的端口為邊緣端口。JC1:JC1stp mode stpJC1stp priority 4096 /配置時優(yōu)先級必須是 4096的倍數(shù)JC1interface GigabitEthernet 0/0/24JC1-GigabitEthernet0/0/24stp edged-port enableJC2:JC2stp mode stpJC2-GigabitEthernet0/0/24stp edged-port enableJC3:JC3stp mode stpJC3-
31、GigabitEthernet0/0/24stp edged-port enable步驟三:查看STP信息JC1display stpCIST Global InfoMode STPCIST Bridge:4096 .4c1f-cc38-374c/ 修改后優(yōu)先級為 4096Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20Active Times:Hello 2s MaxAge 20s FwDly 15s MaxHop 20CIST Root/ERPC :4096 .4c1f-cc38-374c / 0CIST RegRoot/IRPC
32、:4096 .4c1f-cc38-374c / 0CIST RootPortId :0.0BPDU-Protection :DisabledTC or TCN received :14TC count per hello :0STP Converge Mode :NormalTime since last TC :0 days 0h:3m:55sNumber of TC :12Last TC occurred :GigabitEthernet0/0/1JC1display stp briefMSTID Port Role STP State Protection0 GigabitEtherne
33、t0/0/1 DESI FORWARDING NONE0 GigabitEthernet0/0/3 DESI FORWARDING NONE0 GigabitEthernet0/0/24 DESI FORWARDING NONEJC2display stpCIST Global InfoMode STP32768CIST Bridge :32768.4c1f-ccba-711a / 交換機(jī)的默認(rèn)優(yōu)先級是Config Times:Hello 2s MaxAge 20s FwDly 15s MaxHop 20Active Times:Hello 2s MaxAge 20s FwDly 15s Ma
34、xHop 20CIST Root/ERPC :4096 .4c1f-cc38-374c / 20000CIST RegRoot/IRPC :32768.4c1f-ccba-711a / 0128CIST RootPortId :128.3 / 根端口的默認(rèn)優(yōu)先級是BPDU-Protection :DisabledTC or TCN received :97TC count per hello :0STP Converge Mode :NormalTime since last TC :0 days 0h:7m:48sNumber of TC:14MSTID Port0 GigabitEther
35、net0/0/20 GigabitEthernet0/0/30 GigabitEthernet0/0/24JC3display stp briefMSTID PortLast TC occurred :GigabitEthernet0/0/3 JC2display stp briefRole STP State ProtectionALTE DISCARDING NONEROOT FORWARDING NONEDESI FORWARDING NONERole STP State Protection0 GigabitEthernet0/0/1ROOT FORWARDING NONE0 Giga
36、bitEthernet0/0/2DESI FORWARDINGNONE0 GigabitEthernet0/0/24 DESI FORWARDING NONE以上信息表明JC1是根橋,其上所有端口是指定端口( DESD,處于轉(zhuǎn)發(fā)狀態(tài)(FORWARDINGJC2 是 非 根 橋 , 端 口 GigabitEthernet0/0/3 是 根 端 口 , 處 于 轉(zhuǎn) 發(fā) 狀 態(tài) , 端 口GigabitEthernetO/O/2 是備份端口( ALTE),處于阻塞狀態(tài)。JC3也是非根橋,端口GigabitEthernet0/0/1 是根端口, GigabitEthernet0/0/2 是指定端口,處
37、于轉(zhuǎn)發(fā)狀態(tài)。實驗三. 靜態(tài)路由基礎(chǔ)、實驗?zāi)繕?biāo)掌握靜態(tài)路由的配置掌握缺省路由配置二、實驗描述及組網(wǎng)三、實驗過程實驗任務(wù)一:步驟一:建立物理連接按照拓?fù)鋱D進(jìn)行連接,所有設(shè)備配置為初始狀態(tài)。以下表配置各個設(shè)備的IP地址設(shè)備名稱接口IP地址JC1LoopbackOG0/0/0JC2G0/0/0G0/0/1JC3G0/0/1Loopback01步驟二:測試路由器間的連通性,如下所示:通過查看路由表,發(fā)現(xiàn)此時路由器中只有直連網(wǎng)段的路由 此時我們來測試JC1和JC3之間的連通性,如下:.191.3.1 configurations have been changed. The current change
38、number is 5, the change loop count is 0, and the maximum number of records is 4095.Request time outRequest time outRequest time outRequest time outRequest time out5 packet(s) transmitted0 packet(s) received100.00% packet loss從以上顯示我們可以看到,JC1和JC3之間是不能夠進(jìn)行通信的。步驟三:配置靜態(tài)路由我們只在JC1和JC3上配置靜態(tài)路由。JC1:JC3:配置完成后,在
39、路由器上查看路由表。例如在JC1上查看路由表,如下:JC1display ip routing-tableRoute Flags: R - relay, D - download to fibRouting Tables: PublicDestinations : 7 Routes : 7Destination/Mask Proto Pre Cost Flags NextHop Interface 0/0/00/0/00/0/00/0/0測試JC1和JC3之間的可達(dá)性。在JC1上用Ping命令測試到JC3的G0/0/1 口的可達(dá)性, 如下:5 packet(s) transmitted5 pa
40、cket(s) received0.00% packet lossround-trip min/avg/max = 30/54/70 ms我們可以看到是可以 Ping 通的Request time outRequest time outRequest time outRequest time outRequest time out5 packet(s) transmitted0 packet(s) received100.00% packet loss結(jié)果如下:Request time outRequest time outRequest time outRequest time outReq
41、uest time out5 packet(s) transmitted0 packet(s) received100.00% packet loss那么,我們在 JC2 上配置靜態(tài)路由,如下:我們再來測試:5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 50/74/90 ms5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 50/66/90 ms可見已經(jīng)
42、實現(xiàn)了各網(wǎng)段之間的互通。實驗任務(wù)二:配置缺省路由在路由器上合理的配置靜態(tài)路由能夠減少路由表中表項數(shù)量,節(jié)省路由表空間,加快路由 匹配速度 默認(rèn)路由經(jīng)常使用在末端網(wǎng)絡(luò)中。 末端網(wǎng)絡(luò)是指僅有一個出口連接外部的網(wǎng)絡(luò)。 我們在 JC1JC1和JC3上配置默認(rèn)路由和JC3上用Loopback 口來模擬末端網(wǎng)絡(luò),那么我們就可以在 步驟一:建立物理連接 清空任務(wù)一的配置,并根據(jù)任務(wù)一建立重新建立物理連接。 步驟二:配置默認(rèn)路由JC1配置:JC2配置:JC3配置:測試各路由器之間的連通性:在 JC1 上使用 Ping 命令測試:5 packet(s) transmitted5 packet(s) receiv
43、ed0.00% packet lossround-trip min/avg/max = 30/64/80 ms5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 30/46/70 ms5 packet(s) transmitted5 packet(s) received0.00% packet lossround-trip min/avg/max = 50/62/70 ms 通過測試,我們發(fā)現(xiàn)各路由器之間是彼此互通的 我們在JC1上查看路由表:JC1display ip rou
44、ting-tableRoute Flags: R - relay, D - download to fibRouting Tables: PublicDestinations : 6 Routes : 6InterfaceDestination/Mask Proto Pre Cost Flags NextHop 0/0/00/0/0 0/0/0實驗四.RIP配置一、實驗?zāi)繕?biāo)加深RIP協(xié)議原理的理解了解RIP實現(xiàn)運(yùn)行的機(jī)制掌握RIP路由配置熟悉RIP路由維護(hù)二、實驗描述及組網(wǎng)通過配置Rip實現(xiàn)各個網(wǎng)段互通,在路由器上與主機(jī)相連的接口應(yīng)用silent-inteface命令。三、實驗過程實驗任務(wù)一:
45、配置RIPvl本實驗主要通過在路由器上配置RIPvl協(xié)議,達(dá)到PC之間能夠互訪的目的。通過本次實驗,學(xué)院應(yīng)該能夠掌握 RIP協(xié)議的基本配置。步驟一:搭建實驗環(huán)境設(shè)備名稱接口IP 地址網(wǎng)關(guān)JC1G0/0/0Eth0/0JC2G0/0/0Eth0/0PCAPCB按照上圖進(jìn)行連接并配置IP地址。測試PC到網(wǎng)關(guān)的可達(dá)性,以JC1為例5 packet(s) transmitted5 packet(s) received0.00% packet lossroun d-trip min /avg/max = 15/15/16 ms查看路由器的路由表,以JC1為例:JC1display ip routi ng
46、-tableRoute Flags: R - relay, D - dow nl oad to fibRouting Tables: PublicDestinations : 6 Routes : 6InterfaceDestination/Mask Proto Pre Cost Flags NextHop 0/0/00/0/0 步驟二:配置 RIPJC1: JC1ripJC2:JC2rip查看路由表,以JC1為例:JC1display ip routing-tableRoute Flags: R - relay, D - download to fibRouting Tables: Publ
47、icDestination/Mask Proto Pre Cost Flags NextHop Interface 0/0/00/0/00/0/0Ping命令測試到PCB的可達(dá)性測試PC之間的可達(dá)性。在PCA上使用Request timeout!5 packet(s) transmitted4 packet(s) received20.00% packet lossround-trip min/avg/max = 0/55/63 ms可以看到PC之間實現(xiàn)了互通。在JC1上用命令display rip查看:JC1display ripPublic VPN-instanceRIP process
48、: 1Preference : 100Checkzero : EnabledDefault-cost : 0Summary : EnabledHost-route : EnabledMaximum number of balanced paths : 32Update time : 30 secAge time : 180 sec的 3 個更新計時器Garbage-collect time : 120 sec /RIPGraceful restart : DisabledBFD : DisabledSilent-interfaces : NoneDefault-route : Disabled
49、Verify-source : EnabledNetworks :Configured peers: NoneNumber of routes in database : 3Number of interfaces enabled : 2Triggered updates sent : 3Number of route changes : 1Number of replies to queries : 1Number of routes in ADV DB : 3步驟三: silent-interface 的應(yīng)用在之前的試驗中,路由器從每個啟用rip的接口收發(fā)協(xié)議報文,包括與PC相連的接口。事
50、實上,PC并不需要接收RIP協(xié)議報文,我們可以用silent-inteface命令使接口只接收而不發(fā)送協(xié)議報文。JC1:JC1-rip-1silent-interface Ethernet 0/0/0JC2:JC2-rip-1silent-interface Ethernet 0/0/0配置完成后,我們用debugging命令查看,可以發(fā)現(xiàn),RIP不再從接口 EthO/O發(fā)送協(xié)議報 文了。RIP是通過計時器來維護(hù)路由表的,路由器在180s后沒收到對某路由項的更新,就會將該路由項從路由表中撤銷。下面我們來驗證一下:我們在JC1的G0/0/0接口上使用silent-inteface命令,接著我們在
51、JC1上查看路由表,如下:JC2-rip-1dis ip routing-tableRoute Flags: R - relay, D - download to fibRouting Tables: PublicDestinations : 7 Routes : 7InterfaceDestination/Mask Proto Pre Cost Flags NextHop 0/0/00/0/00/0/0180s 后,再來查看路由表和 RIP 路由表: JC2display ip routing-tableRoute Flags: R - relay, D - download to fibR
52、outing Tables: PublicIn terfaceDest in atio n/Mask Proto Pre Cost Flags NextHop0/0/00/0/0JC2display rip 1 routeRoute Flags : R - RIPDest in atio n/MaskA - Agi ng, G - Garbage-collectNexthop Cost Tag Flags SecGarbage-collect 計時器發(fā)現(xiàn)在RIP路由表中還存在該路由,120s 以后使用 display rip 1 route已經(jīng)沒有任何顯示。實驗任務(wù)二:RIPv2的配置RIPv
53、1協(xié)議本身存在有一定的不足,在主類網(wǎng)絡(luò)隔離非連續(xù)子網(wǎng)的情況下,不能夠正確的學(xué) 習(xí)到路由。而RIPv2彌補(bǔ)了 RIPv1的不足,同時可以支持驗證。步驟一:搭建實驗環(huán)境清空任務(wù)一的配置并按照任務(wù)一進(jìn)行連接,按下表配置IP地址設(shè)備名稱接口IP 地址網(wǎng)關(guān)JC1G0/0/0EthO/O/OJC2G0/0/0Eth0/0/01PCAPCB步驟二:配置RIPvlJC1:JC1ripJC2:JC2rip查看路由表JC1display ip routi ng-tableRoute Flags: R - relay, D - dow nl oad to fibRouti ng Tables: PublicDest
54、ination/Mask Proto Pre Cost Flags NextHop Interface0/0/00/0/0在 JC1 上打開 debugging :terminal monitorterminal debuggingdebugging rip 1 packet在 JC1 上打開 debugging :Cmd response, Length 241分析: RIPv1 發(fā)送的更新報文中不含有掩碼信息,因此出現(xiàn)錯誤。 步驟三:配置 RIPv2JC1;JC1rip JC1-rip-1version 2JC1-rip-1undo summaryJC2:JC2ripJC2-rip-1version 2JC2-rip-1undo summary配置完成后,在 JC1 上查看路由表,如下,JC1-rip-1display ip routing-tableRou
溫馨提示
- 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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 租賃商場場地合同
- 公司員工激勵演講稿
- 養(yǎng)老護(hù)理行業(yè)老年人照護(hù)需求評估
- 肉羊養(yǎng)殖購銷合同
- 生物醫(yī)藥領(lǐng)域新藥研發(fā)投資合同
- 有關(guān)個人向公司借款協(xié)議書
- 城市道路施工安全管理規(guī)定
- 好品質(zhì)故事解讀
- 電影制作公司演員拍攝安全協(xié)議
- 2025年漢語拼音yw助力企業(yè)營銷策略分析
- 2025年黑龍江生態(tài)工程職業(yè)學(xué)院單招職業(yè)傾向性測試題庫1套
- 白介素6臨床意義
- 2025年充電樁場地租賃合同官方版模板
- DeepSeek的應(yīng)用與部署
- 《彰化縣樂樂棒球》課件
- 2025-2030年墻體裂縫檢測與修復(fù)機(jī)器人行業(yè)深度調(diào)研及發(fā)展戰(zhàn)略咨詢報告
- 北京2025年01月全國婦聯(lián)所屬在京事業(yè)單位2025年度公開招考93名工作人員筆試歷年典型考題(歷年真題考點(diǎn))解題思路附帶答案詳解
- 初中班會 《哪吒 2:勇戰(zhàn)困難伴夢前行》開學(xué)第一課主題班會 教案
- 《馬爾科夫過程介紹》課件
- 四川成都?xì)v年中考語文現(xiàn)代文閱讀之非連續(xù)性文本閱讀4篇(截至2024年)
- 中國地圖填色圖(任何顏色可變)
評論
0/150
提交評論