OSPF在NBMA下的五種網(wǎng)絡(luò)類型_第1頁
OSPF在NBMA下的五種網(wǎng)絡(luò)類型_第2頁
OSPF在NBMA下的五種網(wǎng)絡(luò)類型_第3頁
OSPF在NBMA下的五種網(wǎng)絡(luò)類型_第4頁
OSPF在NBMA下的五種網(wǎng)絡(luò)類型_第5頁
已閱讀5頁,還剩9頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、OSPF在NBMA下的五種網(wǎng)絡(luò)類型與以太網(wǎng)一類的Broadcast網(wǎng)絡(luò)的區(qū)別:所謂NBMA(non-broadcast multiple access)就是一個多路訪問鏈路,但不能發(fā)廣播。最典型的多路訪問鏈路就是常見的以太網(wǎng),多個訪問節(jié)點(diǎn)都可以訪問同一個網(wǎng)段。在以太網(wǎng)上是可以發(fā)廣播的。所以叫BMA。 NBMA阻隔廣播和組播,在幀中繼中,缺省類型就是NBMA。因?yàn)樗嵌嗦吩L問鏈路,但是又由于有帶寬的限制不能發(fā)廣播包。在以太網(wǎng)中,如果你想給同一子網(wǎng)中的多臺主機(jī)發(fā)送廣播(組播)包,怎么發(fā)?很簡單,你發(fā)一個包就行了,所有的主機(jī)都收得到,這就是廣播網(wǎng)的特性。再來看幀中繼,我們以全互聯(lián)為例,雖然所有的主機(jī)

2、都處在同一個子網(wǎng)之中,但是你不可能發(fā)一個包讓所有的主機(jī)都收到,因?yàn)閷?shí)際上這個全互聯(lián)是由多個點(diǎn)對點(diǎn)組成的,要讓子網(wǎng)中的所有成員都收到這個廣播包,你只能通過所有VC向外發(fā)送這個廣播包,有幾條VC就需要發(fā)送幾個包。這就是NBMA網(wǎng)絡(luò)的特性。如果OSPF不知道底層網(wǎng)絡(luò)的通訊特性,它就不能正常工作。所以,運(yùn)行于FR網(wǎng)絡(luò)之上的OSPF,即使你把接口的網(wǎng)絡(luò)類型改為broadcast,它也不是以太網(wǎng)的broadcast。所以才會有“OSPF在NBMA網(wǎng)絡(luò)中的五種網(wǎng)絡(luò)類型”這種說法。如果手工用單播地址指定鄰居,則OSPF在向224.0.0.5和224.0.0.6這些組播地址發(fā)送消息的同時,也會以單播的形式向相關(guān)

3、主機(jī)發(fā)送路由信息,在這種情況下,我們還可以選擇關(guān)閉組播發(fā)送路由信息的功能,這樣就只有靜態(tài)配置的鄰居可以收到路由信息了,提高了安全性,也減少了對無關(guān)路由器的影響Request For Comments (RFC),是一系列以編號排定的文件。RFC編輯者負(fù)責(zé)RFC以及RFC的整體結(jié)構(gòu)文檔,并維護(hù)RFC的索引。ospf 把NBMA分為5類分別是 RFC的: point-to-multipoint non-broadcastCISCO 的: point-to-multipoint nonbroadcast broadcast point-to-point在NBMA網(wǎng)絡(luò)下5種網(wǎng)絡(luò)類型具體情況如下所示:

4、網(wǎng)絡(luò)類型鄰居自動發(fā)現(xiàn)有無DR Hello間隔傳輸方式Non_broadcast否有30s單播Broadcast是有10s組播Point-to-Point是無10s組播Point-to-Multipoint是無30s組播Point-to-Multipoint(nonbroadcast)否無30s單播如果在frame-relay map語句中使用了broadcast關(guān)鍵字,那網(wǎng)絡(luò)就是廣播類型。你把默認(rèn)的NBMA改成broadcast就可以發(fā)現(xiàn)鄰居了。如果不在幀中繼映句中使用broadcast,則廣播信息不能通過,這時候就只能手工指鄰居。幀中繼中的廣播多路訪問模式,是指在接口上打上 ip ospf

5、network broadcast后欺騙ospf將hello包以廣播形式發(fā)送出去,但幀中繼是無法傳播廣播的,ospf通過DLCI中的broadcast來為每個具有DLCI的目的IP發(fā)送單播hello包。注意 回復(fù)hello包也是單播形式即,單播方式的hello包,形式上是借助端口下配置OSPF 的broadcast方式廣播出去,但在幀中繼網(wǎng)絡(luò)中,最終還是借助幀中繼的broadcast方式來封裝廣播包為幀中繼的單播包并轉(zhuǎn)發(fā)。frame-relay map ip a.b.c.d 110 broadcast實(shí)驗(yàn)基本配置:R1:interface Serial0/0ip address 192.168

6、.1.1 255.255.255.0encapsulation frame-relay frame-relay map ip 192.168.1.1 102 ping通R1frame-relay map ip 192.168.1.2 102frame-relay map ip 192.168.1.3 103R2:interface Serial0/0ip address 192.168.1.2 255.255.255.0encapsulation frame-relayserial restart-delay 0 默認(rèn)frame-relay map ip 192.168.1.1 201fram

7、e-relay map ip 192.168.1.2 201 ping通R2frame-relay map ip 192.168.1.3 201R3:interface Serial0/0ip address 192.168.1.3 255.255.255.0encapsulation frame-relayserial restart-delay 0frame-relay map ip 192.168.1.1 301frame-relay map ip 192.168.1.2 301frame-relay map ip 192.168.1.3 301此時 R1、R2、R3都能相互ping通R

8、1:router ospf 100router-id 1.1.1.1log-adjacency-changesnetwork 1.1.1.0 0.0.0.255 area 0network 192.168.1.0 0.0.0.255 area 0R2:router ospf 100router-id 2.2.2.2log-adjacency-changesnetwork 2.2.2.0 0.0.0.255 area 0network 192.168.1.0 0.0.0.255 area 0R3:router ospf 100router-id 3.3.3.3log-adjacency-chan

9、gesnetwork 3.3.3.0 0.0.0.255 area 0network 192.168.1.0 0.0.0.255 area 0Type1-Non_Broadcast(默認(rèn))在R1上show ip ospf neighbor,發(fā)現(xiàn)沒有鄰居。說明在這種情況下鄰居需要手動配置! R1:router ospf 100neighbor 192.168.1.2neighbor 192.168.1.3如果發(fā)現(xiàn)DR 是2.2.2.2,clear ip ospf pro發(fā)現(xiàn)鄰居已經(jīng)形成并且有DR與BDR的選舉!在路由器R2、R3上設(shè)置優(yōu)先級為0,這個配置導(dǎo)致路由器R1變成dr,沒有bdr被選擇。

10、重啟R1 ospfClear ip ospf process鄰居已經(jīng)形成并且有DR無BDR在R1上查看接口R1#show ip ospf interface Network Type NON_BROADCAST, Cost: 64Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5Priority=10, 默認(rèn)為 1在這種網(wǎng)絡(luò)類型中,hello的間隔是30s。打開debug信息,我們可以看到在這種網(wǎng)絡(luò)類型中,OSPF的數(shù)據(jù)包是單播傳送的。Type2-Broadcast首先去掉剛才手動配置的鄰居關(guān)系:R1(c

11、onfig)#router ospf 100R1(config-router)#no neighbor 192.168.1.2 R1(config-router)#no neighbor 192.168.1.3將R1、R2和R3接口的網(wǎng)絡(luò)類型改成broadcastR1(config-router)#int s0/0R1(config-if)#ip ospf network broadcastR2(config-router)#int s0/0R2(config-if)#ip ospf network broadcastR3(config-router)#int s0/0R3(config-if

12、)#ip ospf network broadcast把各路由器的 frame-relay map 命令加 broadcast如:frame-relay map ip 192.168.1.3 201 b一會我們就看到了如下信息R3#* Mar 1 00:15:12.175: %OSPF-5-ADJCHG: Process 100, Nbr 1.1.1.1 on Serial0/0 from LOADING to FULL, Loading Done這說明了在這種網(wǎng)絡(luò)類型下是不需要手動配置鄰居關(guān)系的!有DR與BDR的選舉。Process ID 100, Router ID 2.2.2.2, Ne

13、twork Type BROADCAST, Cost: 64Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Hello時間間隔為10s。R2#debug ip ospf hello*Mar 1 00:15:12.175: OSPF: Send hello to 224.0.0.5 area 0 on Serial0/0 from 192.168.1.2*Mar 1 00:15:12.279: OSPF: Rcv hello from 1.1.1.1 area 0 from Serial0/0 192.168

14、.1.1*Mar 1 00:15:12.279: OSPF: End of hello processing*Mar 1 00:15:22.155: OSPF: Rcv hello from 1.1.1.1 area 0 from Serial0/0 192.168.1.1*Mar 1 00:15:22.155: OSPF: End of hello processing*Mar 1 00:15:22.175: OSPF: Send hello to 224.0.0.5 area 0 on Serial0/0 from 192.168.1.2使用224.0.0.5這個組播地址傳送數(shù)據(jù)包。Typ

15、e3-Point-to-Point將R2,R3接口的網(wǎng)絡(luò)類型改成Point-to-PointR2(config-if)#ip ospf net point-to-point此時,R1還是BROADCAST沒有DR/BDR的選舉LOADING to FULL, Loading Done說明這種網(wǎng)絡(luò)類型也不需要手動指定鄰居此時,執(zhí)行R1(config-if)#ip ospf net point-to-point網(wǎng)絡(luò)將變得不穩(wěn)定Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Hello時間間隔為10sR2#deb

16、ug ip ospf hello*Aug 14 15:08:25.311: OSPF: Send hello to 224.0.0.5 area 0 on Serial0/0 from 12.1.1.2R2#*Aug 14 15:08:30.259: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial0/0 12.1.1.3*Aug 14 15:08:30.263: OSPF: End of hello processing同樣也是使用224.0.0.5這個組播地址傳送數(shù)據(jù)。重新規(guī)劃point to point重啟路由器去掉前面的配置。R1:inte

17、rface Serial0/0no ip addressencapsulation frame-relayinterface Serial0/0.20 point-to-pointip address 192.168.2.1 255.255.255.0frame-relay interface-dlci 102 interface Serial0/0.30 point-to-pointip address 192.168.3.1 255.255.255.0frame-relay interface-dlci 103 router ospf 100network 192.168.2.0 0.0.

18、0.255 area 0network 192.168.3.0 0.0.0.255 area 0R2:interface Serial0/0ip address 192.168.2.2 255.255.255.0encapsulation frame-relayip ospf network point-to-pointframe-relay map ip 192.168.2.1 201!router ospf 100network 192.168.2.0 0.0.0.255 area 0R3:interface Serial0/0ip address 192.168.3.2 255.255.

19、255.0encapsulation frame-relayframe-relay map ip 192.168.3.1 301 broadcastno frame-relay inverse-arprouter ospf 100network 192.168.3.0 0.0.0.255 area 0R2:frame-relay map ip 192.168.2.1 201 broadcastType4-Point-to-Multipoint將接口改為Point-to-MultipointR1(config-if)#ip ospf network point-to-multipointR2(config-if)#ip ospf network point-to-multipointR3(config-if)#ip ospf network poi

溫馨提示

  • 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

提交評論