OSPF虚拟电路配置实例一

OSPF虚拟电路配置实例一_第1张图片
分析:
1.目前根据拓补,我们配置好OSPF的区域.很快发现,AS2无法学习到AS 0里的路由.为此,我们需要为AS2通往AS 0建条路,当然这条路是需要经过AS1的,所以,虚电路就在AS1上进行.本实例其实就是一个命令的使用.为日后实验打下基础.有关OSPF内容,我将专门记载.
建立虚电路命令:
Area 经过的区域 virtual-link 目标路由ID
R1#show run
interface Loopback1
ip address 192.168.1.1 255.255.255.0
!
interface Loopback2
ip address 192.168.2.1 255.255.255.0
!
interface Serial1/1
ip address 12.0.0.1 255.255.255.252
serial restart-delay 0
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 12.0.0.1 0.0.0.0 area 0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
R2#show run
interface Serial1/0
ip address 23.0.0.1 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial1/1
ip address 12.0.0.2 255.255.255.252
serial restart-delay 0
clock rate 64000
!
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
area 0 range 192.168.0.0 255.255.252.0
area 1 virtual-link 3.3.3.3
network 12.0.0.2 0.0.0.0 area 0
network 23.0.0.1 0.0.0.0 area 1
!
R3#show run
interface Serial1/0
ip address 23.0.0.2 255.255.255.252
serial restart-delay 0
!
interface Serial1/1
ip address 34.0.0.1 255.255.255.252
serial restart-delay 0
clock rate 64000
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
area 2 range 172.16.0.0 255.255.252.0
area 1 virtual-link 2.2.2.2
network 23.0.0.2 0.0.0.0 area 1
network 34.0.0.1 0.0.0.0 area 2
R4#show run
interface Loopback1
ip address 172.16.1.1 255.255.255.0
!
interface Loopback2
ip address 172.16.2.1 255.255.255.0
!
interface Serial1/1
ip address 34.0.0.2 255.255.255.252
serial restart-delay 0
!
router ospf 1
 router-id 4.4.4.4
log-adjacency-changes
network 34.0.0.2 0.0.0.0 area 2
network 172.16.1.1 0.0.0.0 area 2
network 172.16.2.1 0.0.0.0 area 2
验证:(主干区域拥有的是常规区域的汇总路由,常规区域拥用的是主干区域的精确通由.)
OSPF虚拟电路配置实例一_第2张图片
OSPF虚拟电路配置实例一_第3张图片
 
有任何问题,请您可以指正,你的指正是我的提升,谢谢!

本文出自 “潜入技术的海洋” 博客,请务必保留此出处http://myhat.blog.51cto.com/391263/194100

你可能感兴趣的:(实例,休闲,虚拟,ospf,电路)