多路訪問網(wǎng)絡(luò)中 OSPF限制FULL鄰接關(guān)系的建立 上
OSPF協(xié)議是客戶要求使用并且要求在以下拓?fù)鋱D中的,只允許路由器R3分別和R1及R2建立鄰居關(guān)系,不允許R1和R2之間建立鄰居關(guān)系。
簡要拓?fù)淙缦拢?/P>
OSPF限制FULL鄰接關(guān)系的建立—作法一
改變OSPF的網(wǎng)絡(luò)類型的方法,其好處在于LSA只會在相關(guān)鏈路上進(jìn)行傳遞,而不會傳遞給另一個不需要建立鄰接關(guān)系的OSPF鄰居。具體方法是將在以太網(wǎng)的情況下的默認(rèn)的OSPF網(wǎng)絡(luò)類型由Broadcast(廣播型)改變成NBMA(非廣播多路訪問),然后在R3上分別手工指定OSPF 鄰居,以單播建立鄰接關(guān)系。
R1上OSPF的簡單配置:
- R1# show running-config | begin router ospf
- router ospf 1
- network 1.1.123.0 0.0.0.255 area 0
- neighbor 1.1.123.3
- R1# show running-config interface fastEthernet 1/0
- interface FastEthernet1/0
- ip address 1.1.123.1 255.255.255.0
- ip ospf network point-to-multipoint non-broadcas
R2上OSPF的簡單配置:
- R2# show running-config | begin router ospf
- router ospf 1
- network 1.1.123.0 0.0.0.255 area 0
- neighbor 1.1.123.3
- R2# show running-config interface fastEthernet 1/0
- interface FastEthernet1/0
- ip address 1.1.123.2 255.255.255.0
- ip ospf network point-to-multipoint non-broadcas
R3上OSPF的簡單配置:
- R3# show running-config | begin router ospf
- router ospf 1
- network 1.1.123.0 0.0.0.255 area 0
- neighbor 1.1.123.1
- neighbor 1.1.123.2
- R3# show running-config interface fastEthernet 1/0
- interface FastEthernet1/0
- ip address 1.1.123.3 255.255.255.0
- ip ospf network point-to-multipoint non-broadcas
校驗(yàn)結(jié)果:
- R3# show ip ospf neighbor 注意:R3上是兩個FULL的鄰接關(guān)系
- Neighbor ID Pri State Dead Time Address Interface
- 1.1.123.2 0 FULL/ - 00:01:41 1.1.123.2 FastEthernet1/0
- 1.1.123.1 0 FULL/ - 00:01:41 1.1.123.1 FastEthernet1/0
- R2# show ip ospf neighbor 注意:R2上僅僅和R3形成了FULL鄰接關(guān)系
- Neighbor ID Pri State Dead Time Address Interface
- 1.1.123.3 0 FULL/ - 00:01:39 1.1.123.3 FastEthernet1/0
- R1#show ip ospf neighbor 注意:R1上僅僅和R3形成了FULL鄰接關(guān)系
- Neighbor ID Pri State Dead Time Address Interface
- 1.1.123.3 0 FULL/ - 00:01:50 1.1.123.3 FastEthernet1/0
OSPF限制FULL鄰接關(guān)系的建立中,此種作法文章更加推薦使用,希望大家通過實(shí)踐去體會。如若想更多了解有關(guān)知識請看:OSPF限制FULL鄰接關(guān)系的建立 下
【編輯推薦】