OSPF多区域的虚连接
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
OSPF——多区域的虚拟链路拓扑图:
Router0——you:
Router>en
Router#conf t
Router(config)#hostname you
you(config)#inter f0/0
you(config-if)#ip add 192.168.0.1 255.255.255.0
you(config-if)#no sh
you(config-if)#inter s0/0/0
you(config-if)#clock rate 64000
you(config-if)#ip add 192.168.1.1 255.255.255.0
you(config-if)#no sh
you(config-if)#exit
you(config)#router ospf 100
you(config-router)#network 192.168.0.0 0.0.0.255 area 3 you(config-router)#network 192.168.1.0 0.0.0.255 area 1 you(config-router)#
Router1——si:
Router>en
Router#conf t
Router(config)#hostname si
si(config)#inter f0/0
si(config-if)#ip add 192.168.2.1 255.255.255.0
si(config-if)#no sh
si(config-if)#inter s0/0/0
si(config-if)#ip add 192.168.1.2 255.255.255.0
si(config-if)#no sh
si(config-if)#exit
si(config)#router ospf 100
si(config-router)#network 192.168.1.0 0.0.0.255 area 1
si(config-router)#network 192.168.2.0 0.0.0.255 area 0
si(config-router)#
Router2——xu:
Router>en
Router#conf t
Router(config)#hostname xu
xu(config)#inter f0/0
xu(config-if)#ip add 192.168.2.2 255.255.255.0
xu(config-if)#no sh
xu(config-if)#inter f0/1
xu(config-if)#ip add 192.168.3.1 255.255.255.0
xu(config-if)#no sh
xu(config-if)#exit
xu(config)#router ospf 100
xu(config-router)#network 192.168.2.0 0.0.0.255 area 0
xu(config-router)#network 192.168.0.0 0.0.0.255 area 0
xu(config-router)#
虚连接的配置:
Router0——you:
查看邻居路由器的ID:
you>en
you#【show ipospf neighbor】
Neighbor ID Pri State Dead Time Address Interface
【192.168.2.1】 0 FULL/ - 00:00:30 192.168.1.2
查看自己(路由器的ID):
you#showipospf d
you#【show ipospf database】
OSPF Router with ID (【192.168.1.1】) (Process ID 100)
you#conf t
Enter configuration commands, one per line. End with CNTL/Z.
you(config)#router ospf 100
you(config-router)#area 1 virtual-link 192.168.2.1 【此处为:Router ID】you(config-router)#
Router1——si:
si#conf t
si(config)#router ospf 100
si(config-router)#area 1 virtual-link 192.168.1.1【此处为:Router ID】