通过帧中继验证OSPF支持的不同网络类型
幀中繼交換機(jī)使用路由器R2進(jìn)行模擬:
R2:
Router(config)#host FW-sw
FW-sw(config)#frame-relay switching???????? //開(kāi)啟路由器的幀中繼交換功能
FW-sw(config)#int s0/0??
FW-sw(config-if)#encapsulation frame-relay???? //在接口封裝幀中繼協(xié)議
FW-sw(config-if)#frame-relay intf-type dce???? //指定接口為DCE端
FW-sw(config-if)#frame-relay route 103 interface s0/1 301?? //創(chuàng)建路由,dlci 103從s0/1接口到達(dá)301
FW-sw(config-if)#frame-relay route 104 interface s0/2 401?? //創(chuàng)建路由,dlci 104從s0/2接口到達(dá)401
FW-sw(config)#int s0/1
FW-sw(config-if)#encapsulation fram
FW-sw(config-if)#encapsulation frame-relay?
FW-sw(config-if)#frame-relay intf-type dce
FW-sw(config-if)#frame-relay route 301 int s0/0 103?? //從s0/1接口進(jìn)入的dlci 301從s0/0接口到達(dá)103
FW-sw(config-if)#no shutdown
FW-sw(config)#int s0/2
FW-sw(config-if)#encapsulation frame-relay?
FW-sw(config-if)#frame-relay intf-type dce
FW-sw(config-if)#frame-relay route 401 int s0/0 104?? //從s0/2接口進(jìn)入的dlci 401從s0/0接口到達(dá)104
FW-sw(config-if)#no shutdown
R1:
IP配置過(guò)程略
R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay?
R1(config-if)#frame-relay map ip 192.168.1.3 103?? //創(chuàng)建PVC映射,1.3為對(duì)端IP,103為本地DLCI
R1(config-if)#frame-relay map ip 192.168.1.4 104?? //創(chuàng)建PVC映射,1.4為對(duì)端IP,104為本地DLCI
R3:
R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay?
R1(config-if)#frame-relay map ip 192.168.1.1 301
R4:
R1(config)#int s0/0
R1(config-if)#encapsulation frame-relay?
R1(config-if)#frame-relay map ip 192.168.1.1 401
(在幀中繼網(wǎng)絡(luò)中,只需保證分支和中心能通信,即R3和R4可以和R1通信,因此到此步時(shí)幀中繼搭建完畢,可以在R3和R4上ping對(duì)端R1的物理口,驗(yàn)證是否能夠通信,但是目前三個(gè)路由器的回環(huán)口還無(wú)法通信,因?yàn)檫€未配置OSPF)
R1:
R1(config)#router ospf 1??
R1(config-router)#neighbor 192.168.1.3?? //手動(dòng)指定鄰居R3-192.168.1.3
R1(config-router)#neighbor 192.168.1.4?? //手動(dòng)指定鄰居R4-192.168.1.4
R1(config-router)#network 192.168.1.0 0.0.0.255 a 0
R1(config-router)#network 10.1.1.0 0.0.0.255 a 0
R1(config-router)#exit
R3:
R3(config)#router ospf 1
R3(config-router)#neighbor 192.168.1.1?? //手動(dòng)指定鄰居IP
R3(config-router)#net 192.168.1.0
R3(config-router)#net 10.1.3.0 0.0.0.255 a 0
R3(config)#int s0/0
R3(config-if)#ip ospf priority 0?? //將該接口OSPF優(yōu)先級(jí)改為0,該接口將不參與DR/BDR選舉
R4:
R4(config)#router ospf 1
R4(config-router)#neighbor 192.168.1.1?? //手動(dòng)指定鄰居IP
R4(config-router)#net 192.168.1.0
R4(config-router)#net 10.1.4.0 0.0.0.255 a 0
R4(config)#int s0/0
R4(config-if)#ip ospf priority 0?? //將該接口OSPF優(yōu)先級(jí)改為0,該接口將不參與DR/BDR選舉
若要配置OSPF在幀中繼中的點(diǎn)到多點(diǎn)廣播方式,在每個(gè)路由器的物理接口上加入下列命令:(以R3為例)
R3(config-if)#frame-relay map ip 192.168.1.1 301 broadcast?? //使該接口以廣播方式建立PVC
R3(config-if)#ip ospf network point-to-multipoint???????????? //讓該接口OSPF以點(diǎn)到多點(diǎn)方式工作
轉(zhuǎn)載于:https://blog.51cto.com/hujizhou/1867532
總結(jié)
以上是生活随笔為你收集整理的通过帧中继验证OSPF支持的不同网络类型的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 当当网新用户注册界面——JS代码
- 下一篇: DefaultHashOperation