實驗3 配置幀中繼下的OSPF網(wǎng)絡(luò)類型_第1頁
實驗3 配置幀中繼下的OSPF網(wǎng)絡(luò)類型_第2頁
實驗3 配置幀中繼下的OSPF網(wǎng)絡(luò)類型_第3頁
實驗3 配置幀中繼下的OSPF網(wǎng)絡(luò)類型_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

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

文檔簡介

1、配置OSPF網(wǎng)絡(luò)類型一、 拓?fù)鋱D,如圖1.1所示:圖1.1 幀中繼下OSPF實驗拓?fù)鋱D二、 初始配置:1. R1的初始配置:R1(config)#int s3/0R1(config-if)#no shR1(config-if)#encapsulation frame-relayR1(config-if)#no frame-relay inverse-arpR1(config-if)#no arp frame-relayR1(config-if)#frame-relay map ip 123.0.0.2 102 broadcast2. R2的初始配置:R2(config)#int s3/0R2(

2、config-if)#ip add 123.0.0.2 R2(config-if)#no shR2(config-if)#encapsulation frame-relayR2(config-if)#no frame-relay inverse-arpR2(config-if)#no arp frame-relayR2(config-if)#frame-relay map ip 123.0.0.1 201 broadcastR2(config-if)#frame-relay map ip 123.0.0.3 203 broadcast3. R3的初始配置:R3(config)#int s3/0

3、R3(config-if)#no shR3(config-if)#encapsulation frame-relay R3(config-if)#no arp frame-relay R3(config-if)#no frame-relay inverse-arpR3(config-if)#frame-relay map ip 123.0.0.2 302 broadcast三、 在R2上查看OSPF相關(guān)信息/查看OSPF鄰居信息R2#sh ip os neR2#/查看OSPF接口信息R2#sh ip os int s3/0Serial3/0 is up, line protocol is up

4、 Internet Address 123.0.0.2/24, Area 0 /S3/0所連網(wǎng)絡(luò)類型為NON_BROADCAST Process ID 1, Router ID 2.2.2.2, Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 10 No backup designated router on this network Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 oob

5、-resync timeout 120 Hello due in 00:00:04 Index 2/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 4 msec, maximum is 4 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)以上結(jié)果說明,在NON_BROADCAST網(wǎng)絡(luò)中,不會發(fā)送廣播,也

6、不會發(fā)送組播,所以O(shè)SPF不會在幀中繼接口上發(fā)送Hello包,無法建立鄰居關(guān)系,因此也就無法建立鄰接關(guān)系,手工指定neighbour,使其單播發(fā)送Hello包。四、 實驗過程1. 在NON_BROADCAST網(wǎng)絡(luò)中,各路由器上手工指定相應(yīng)鄰居/在R1上指定其鄰居R2/在R2上指定其鄰居R2、R3/在R3上指定其鄰居R2/在R2上show ip ospf neighborR2#sh ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface1.1.1.1 1 FULL/DROTHER 00:01:49 123.0.0.1

7、Serial3/03.3.3.3 1 FULL/BDR 00:01:47 123.0.0.3 Serial3/0以上實驗說明,在NON_BROADCAST網(wǎng)絡(luò)中可以通過手工指定鄰居,在該種網(wǎng)路中需要選舉DR/BDR,因控制中心路由器稱為DR,保證數(shù)據(jù)庫的正確同步。2. 刪除鄰居,清OSPF進(jìn)程,將OSPF網(wǎng)絡(luò)類型修改為BROADCAST,在OSPF接口上,配置ip ospf network broadcast/在OSPF接口上修改OSPF網(wǎng)絡(luò)類型為BROADCAST/R1上做相應(yīng)配置R1(config-router)#no R1(config-router)#do clear ip os pR

8、eset ALL OSPF processes? no: yR1(config-if)#ip ospf network broadcast/R2上做相應(yīng)配置R2(config-router)#no neighbor 123.0.0.1R2(config-router)#no neighbor 123.0.0.3R2(config-router)#do clear ip os pReset ALL OSPF processes? no: yR2(config-if)#ip ospf network broadcast/R3上做相應(yīng)配置R3(config-router)#no neighbor 1

9、23.0.0.2R3(config-router)#do clear ip os pReset ALL OSPF processes? no: yR3(config-if)#ip ospf network broadcast/在R2上查看鄰居信息R2(config-if)#do sh ip os neNeighbor ID Pri State Dead Time Address Interface1.1.1.1 1 FULL/DROTHER 00:00:35 123.0.0.1 Serial3/03.3.3.3 1 FULL/DR 00:00:34 123.0.0.3 Serial3/0以上結(jié)

10、果說明,OSPF認(rèn)為此類網(wǎng)絡(luò)支持廣播和組播,所以不需要手工指定鄰居,但也需要控制DR/BDR的選舉,否則也可導(dǎo)致數(shù)據(jù)庫不同步從而發(fā)生錯誤路由。/在R1上查看路由表R1(config-router)#do sh ip rouCodes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

11、E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static routeGateway of last resort is not set 1.0.0.0/24 is subnetted, 1

12、 subnetsC 1.1.1.0 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 110/65 via 123.0.0.2, 00:01:22, Serial3/0 123.0.0.0/24 is subnetted, 1 subnetsC 123.0.0.0 is directly connected, Serial3/0/在R1上查看OSPF接口信息R1(config-router)#do sh ip os int s3/0Serial3/0 is up, line protocol

13、 is up Internet Address 123.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 1 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:06 Index 2/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is

溫馨提示

  • 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

提交評論