在NBMA網(wǎng)絡(luò)非廣播模式下配置OSPF實(shí)際案例+詳細(xì)驗(yàn)證過程

字號:

當(dāng)在NBMA網(wǎng)絡(luò)(如幀中繼、ATM)中配置OSPF,必須注意哪個(gè)路由器是網(wǎng)絡(luò)的DR和BDR,DR和BDR要求與網(wǎng)絡(luò)中的所有路由器都有完全的邏輯連接。
    同時(shí),根據(jù)所使用的是四種網(wǎng)絡(luò)類型中的哪一種(廣播式、非廣播式、點(diǎn)到點(diǎn)、點(diǎn)到多點(diǎn)),有必要使用額外的配置。
    這個(gè)實(shí)驗(yàn)是在非廣播的NBMA幀中繼網(wǎng)絡(luò)中使用了OSPF。這種類型是幀中繼網(wǎng)絡(luò)中物理接口的缺省類型。在非廣播式網(wǎng)絡(luò)中,存在一個(gè)DR或BDR,這要根據(jù)網(wǎng)絡(luò)的性能,這要根據(jù)網(wǎng)絡(luò)的性能,這個(gè)DR和BDR必須有一個(gè)包含所有處于幀中繼的路由器的靜態(tài)表,在OSPF進(jìn)程中使用鄰居命令可以完成這個(gè)任務(wù)。
    對于這個(gè)實(shí)驗(yàn),DR是路由器3,因?yàn)樗哂信c網(wǎng)絡(luò)上其它所有路由器的完整的物理連接。如上圖表示。
    // 幀交換機(jī)
    frame-relay switching
    int s2/0
     encapsulation frame-relay
     clock rate 64000
     frame-relay intf-type dce
     frame-relay route 200 int s3/0 300
    int s3/0
     encapsulation frame-relay
     clock rate 64000
     frame-relay intf-type dce
     frame-relay route 300 int s2/0 200
     frame-relay route 399 int s4/0 400
    int s4/0
     encapsulation frame-relay
     clock rate 64000
     frame-relay intf-type dce
     frame-relay route 400 int s2/0 399
    // R2 //
    int lo0
     ip ad 2.2.2.2 255.255.255.0
    int s2/0
     encapsulation frame-relay
     ip ospf priority 0 //優(yōu)先級為0,不參與DR選舉
     ip ad 192.1.1.2 255.255.255.0
     frame-relay map ip 192.1.1.3 200 broadcast
     frame-relay map ip 192.1.1.4 200 broadcast
    router os 1
     network 2.2.2.2 0.0.0.0 area 0
     network 192.1.1.2 0.0.0.0 area 0
    // R3 //
    int lo0
     ip ad 3.3.3.3 255.255.255.0
    int s3/0
     encapsulation frame-relay
     ip address 192.1.1.3 255.255.255.0
     frame-relay map ip 192.1.1.2 300 broadcast
     frame-relay map ip 192.1.1.4 399 broadcast
    router os 1
     network 3.3.3.3 0.0.0.0 area 0
     network 192.1.1.3 0.0.0.0 area 0
     neighbor 192.1.1.2 //NBMA模式下OSPF必須手動(dòng)指定鄰居
     neighbor 192.1.1.4 //NBMA模式下OSPF必須手動(dòng)指定鄰居
    // R4 //
    int lo0
     ip ad 4.4.4.4 255.255.255.0
    int s4/0
     encapsulation frame-relay
     ip ad 192.1.1.4 255.255.255.0
     ip ospf priority 0 //優(yōu)先級為0,不參與DR選舉
     frame-relay map ip 192.1.1.2 400 broadcast
     frame-relay map ip 192.1.1.3 400 broadcast
    router os 1
     network 4.4.4.4 0.0.0.0 area 0
     network 192.1.1.4 0.0.0.0 area 0