




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、OSPF在NBMA下的五種網絡類型與以太網一類的Broadcast網絡的區別:所謂NBMA(non-broadcast multiple access)就是一個多路訪問鏈路,但不能發廣播。最典型的多路訪問鏈路就是常見的以太網,多個訪問節點都可以訪問同一個網段。在以太網上是可以發廣播的。所以叫BMA。 NBMA阻隔廣播和組播,在幀中繼中,缺省類型就是NBMA。因為它是多路訪問鏈路,但是又由于有帶寬的限制不能發廣播包。在以太網中,如果你想給同一子網中的多臺主機發送廣播(組播)包,怎么發?很簡單,你發一個包就行了,所有的主機都收得到,這就是廣播網的特性。再來看幀中繼,我們以全互聯為例,雖然所有的主機
2、都處在同一個子網之中,但是你不可能發一個包讓所有的主機都收到,因為實際上這個全互聯是由多個點對點組成的,要讓子網中的所有成員都收到這個廣播包,你只能通過所有VC向外發送這個廣播包,有幾條VC就需要發送幾個包。這就是NBMA網絡的特性。如果OSPF不知道底層網絡的通訊特性,它就不能正常工作。所以,運行于FR網絡之上的OSPF,即使你把接口的網絡類型改為broadcast,它也不是以太網的broadcast。所以才會有“OSPF在NBMA網絡中的五種網絡類型”這種說法。如果手工用單播地址指定鄰居,則OSPF在向224.0.0.5和224.0.0.6這些組播地址發送消息的同時,也會以單播的形式向相關
3、主機發送路由信息,在這種情況下,我們還可以選擇關閉組播發送路由信息的功能,這樣就只有靜態配置的鄰居可以收到路由信息了,提高了安全性,也減少了對無關路由器的影響Request For Comments (RFC),是一系列以編號排定的文件。RFC編輯者負責RFC以及RFC的整體結構文檔,并維護RFC的索引。ospf 把NBMA分為5類分別是 RFC的: point-to-multipoint non-broadcastCISCO 的: point-to-multipoint nonbroadcast broadcast point-to-point在NBMA網絡下5種網絡類型具體情況如下所示:
4、網絡類型鄰居自動發現有無DR Hello間隔傳輸方式Non_broadcast否有30s單播Broadcast是有10s組播Point-to-Point是無10s組播Point-to-Multipoint是無30s組播Point-to-Multipoint(nonbroadcast)否無30s單播如果在frame-relay map語句中使用了broadcast關鍵字,那網絡就是廣播類型。你把默認的NBMA改成broadcast就可以發現鄰居了。如果不在幀中繼映句中使用broadcast,則廣播信息不能通過,這時候就只能手工指鄰居。幀中繼中的廣播多路訪問模式,是指在接口上打上 ip ospf
5、network broadcast后欺騙ospf將hello包以廣播形式發送出去,但幀中繼是無法傳播廣播的,ospf通過DLCI中的broadcast來為每個具有DLCI的目的IP發送單播hello包。注意 回復hello包也是單播形式即,單播方式的hello包,形式上是借助端口下配置OSPF 的broadcast方式廣播出去,但在幀中繼網絡中,最終還是借助幀中繼的broadcast方式來封裝廣播包為幀中繼的單播包并轉發。frame-relay map ip a.b.c.d 110 broadcast實驗基本配置: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 默認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(默認)在R1上show ip ospf neighbor,發現沒有鄰居。說明在這種情況下鄰居需要手動配置! R1:router ospf 100neighbor 192.168.1.2neighbor 192.168.1.3如果發現DR 是2.2.2.2,clear ip ospf pro發現鄰居已經形成并且有DR與BDR的選舉!在路由器R2、R3上設置優先級為0,這個配置導致路由器R1變成dr,沒有bdr被選擇。
10、重啟R1 ospfClear ip ospf process鄰居已經形成并且有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, 默認為 1在這種網絡類型中,hello的間隔是30s。打開debug信息,我們可以看到在這種網絡類型中,OSPF的數據包是單播傳送的。Type2-Broadcast首先去掉剛才手動配置的鄰居關系: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接口的網絡類型改成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這說明了在這種網絡類型下是不需要手動配置鄰居關系的!有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這個組播地址傳送數據包。Typ
15、e3-Point-to-Point將R2,R3接口的網絡類型改成Point-to-PointR2(config-if)#ip ospf net point-to-point此時,R1還是BROADCAST沒有DR/BDR的選舉LOADING to FULL, Loading Done說明這種網絡類型也不需要手動指定鄰居此時,執行R1(config-if)#ip ospf net point-to-point網絡將變得不穩定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這個組播地址傳送數據。重新規劃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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年甘肅省民航機場集團校園招聘45人筆試參考題庫及參考答案詳解一套
- 特殊藥品寄遞管理制度
- 特種貨物培訓管理制度
- 豬場樣品采集管理制度
- 獻血場所安全管理制度
- 環衛公司后勤管理制度
- 環境養護安全管理制度
- 環境監測劇毒管理制度
- 班級內部機密管理制度
- 班級安全怎樣管理制度
- 中醫適宜技術-中藥熱奄包
- 中國醫院質量安全管理第2-13部分:患者服務臨床用血
- 《籃球原地運球》教案 (共三篇)
- 《病歷書寫基本規范》解讀教學課件
- 《網絡素養提升安全上網我先行》主題班會
- 新《勞動合同法》知識學習考試題庫200題(含答案)
- 《草房子》人物形象分析全部
- 2024至2030年中國口腔醫療行業市場深度研究及發展趨勢預測報告
- 河北省保定市2024年小升初語文試題及答案
- US EPA 8015C-2007 氣相色譜法測定非鹵代有機化合物(中文)
- 設備供貨、安裝、調試、驗收方案
評論
0/150
提交評論