OSPF不连续区域解决新办法

OSPF不连续区域解决新办法
 

 

                                                         网络拓扑图

你在做这样的试验是不是在r2和r3之间打一个虚链路啊
下面我给你介绍一个新的办法也能让不连续的变成连续的

首先我们不厌其烦的看一下这四台路由器的配置吧!!!!
 

R1的配置
hostname R1
!
interface Loopback0

ip address 1.1.1.1 255.255.255.0

ip ospf network point-to-point
!
interface Serial1/2

ip address 12.0.0.1 255.255.255.0

serial restart-delay 0
!
router ospf 1

router-id 1.1.1.1

log-adjacency-changes

network 1.1.1.0 0.0.0.255 area 0

network 12.0.0.1 0.0.0.0 area 0
!


R2的配置
hostname R2
!
interface Loopback0

ip address 2.2.2.2 255.255.255.0

ip ospf network point-to-point
!
interface Serial1/2

ip address 23.0.0.2 255.255.255.0

serial restart-delay 0
!
interface Serial1/3

ip address 12.0.0.2 255.255.255.0

serial restart-delay 0
!
router ospf 1

router-id 2.2.2.2

log-adjacency-changes

network 2.2.2.0 0.0.0.255 area 0

network 12.0.0.2 0.0.0.0 area 0

network 23.0.0.2 0.0.0.0 area 1


R3的配置
hostname R3
!
interface Loopback0

ip address 3.3.3.3 255.255.255.0

ip ospf network point-to-point
!
interface Serial1/2

ip address 34.0.0.3 255.255.255.0

serial restart-delay 0
!
interface Serial1/3

ip address 23.0.0.3 255.255.255.0

serial restart-delay 0
!
router ospf 1
//注意这里是两个不同的进程,各自向其他的进程做了重分发

router-id 3.3.3.3

log-adjacency-changes

redistribute ospf 2 subnets
//如果你在这里有什么疑问的话可以在做试验的时候给这个路由打上TAG
network 3.3.3.0 0.0.0.255 area 1

network 23.0.0.3 0.0.0.0 area 1
!

router ospf 2

//注意这里是两个不同的进程,各自向其他的进程做了重分发

router-id 33.33.33.33

log-adjacency-changes

redistribute ospf 1 subnets
//如果你在这里有什么疑问的话可以在做试验的时候给这个路由打上TAG
network 34.0.0.3 0.0.0.0 area 33


R4的配置
hostname R4
!
interface Loopback0

ip address 4.4.4.4 255.255.255.0

ip ospf network point-to-point
!
interface Serial1/3

ip address 34.0.0.4 255.255.255.0

serial restart-delay 0
!
router ospf 2

router-id 4.4.4.4

log-adjacency-changes

network 4.4.4.0 0.0.0.255 area 33

network 34.0.0.4 0.0.0.0 area 33
!
R1路由表显示


34.0.0.0/24 is subnetted, 1 subnets
O E2
34.0.0.0 [110/64] via 12.0.0.2, 00:28:17, Serial1/2

1.0.0.0/24 is subnetted, 1 subnets
C
1.1.1.0 is directly connected, Loopback0

2.0.0.0/24 is subnetted, 1 subnets
O
2.2.2.0 [110/65] via 12.0.0.2, 00:30:41, Serial1/2

3.0.0.0/24 is subnetted, 1 subnets
O IA
3.3.3.0 [110/129] via 12.0.0.2, 00:29:42, Serial1/2

4.0.0.0/24 is subnetted, 1 subnets
O E2
4.4.4.0 [110/65] via 12.0.0.2, 00:25:58, Serial1/2

23.0.0.0/24 is subnetted, 1 subnets
O IA
23.0.0.0 [110/128] via 12.0.0.2, 00:30:39, Serial1/2

12.0.0.0/24 is subnetted, 1 subnets
C
12.0.0.0 is directly connected, Serial1/2
R1#
R2路由表显示

34.0.0.0/24 is subnetted, 1 subnets
O E2
34.0.0.0 [110/64] via 23.0.0.3, 00:29:14, Serial1/2

1.0.0.0/24 is subnetted, 1 subnets
O
1.1.1.0 [110/65] via 12.0.0.1, 00:31:30, Serial1/3

2.0.0.0/24 is subnetted, 1 subnets
C
2.2.2.0 is directly connected, Loopback0

3.0.0.0/24 is subnetted, 1 subnets
O

3.3.3.0 [110/65] via 23.0.0.3, 00:29:14, Serial1/2

4.0.0.0/24 is subnetted, 1 subnets
O E2
4.4.4.0 [110/65] via 23.0.0.3, 00:26:50, Serial1/2

23.0.0.0/24 is subnetted, 1 subnets
C
23.0.0.0 is directly connected, Serial1/2

12.0.0.0/24 is subnetted, 1 subnets
C
12.0.0.0 is directly connected, Serial1/3
R3路由表显示

34.0.0.0/24 is subnetted, 1 subnets
C
34.0.0.0 is directly connected, Serial1/2

1.0.0.0/24 is subnetted, 1 subnets
O IA
1.1.1.0 [110/129] via 23.0.0.2, 00:29:46, Serial1/3

2.0.0.0/24 is subnetted, 1 subnets
O IA
2.2.2.0 [110/65] via 23.0.0.2, 00:29:46, Serial1/3

3.0.0.0/24 is subnetted, 1 subnets
C
3.3.3.0 is directly connected, Loopback0

4.0.0.0/24 is subnetted, 1 subnets
O
4.4.4.0 [110/65] via 34.0.0.4, 00:27:22, Serial1/2

23.0.0.0/24 is subnetted, 1 subnets
C
23.0.0.0 is directly connected, Serial1/3

12.0.0.0/24 is subnetted, 1 subnets
O IA
12.0.0.0 [110/128] via 23.0.0.2, 00:29:47, Serial1/3
R4路由表显示

34.0.0.0/24 is subnetted, 1 subnets
C
34.0.0.0 is directly connected, Serial1/3

1.0.0.0/24 is subnetted, 1 subnets
O E2
1.1.1.0 [110/129] via 34.0.0.3, 00:28:01, Serial1/3

2.0.0.0/24 is subnetted, 1 subnets
O E2
2.2.2.0 [110/65] via 34.0.0.3, 00:28:01, Serial1/3

3.0.0.0/24 is subnetted, 1 subnets
O E2
3.3.3.0 [110/1] via 34.0.0.3, 00:28:01, Serial1/3

4.0.0.0/24 is subnetted, 1 subnets
C
4.4.4.0 is directly connected, Loopback0

23.0.0.0/24 is subnetted, 1 subnets
O E2
23.0.0.0 [110/64] via 34.0.0.3, 00:28:01, Serial1/3

12.0.0.0/24 is subnetted, 1 subnets
O E2
12.0.0.0 [110/128] via 34.0.0.3, 00:28:02, Serial1/3
问题说明
一、从红色标记的路由条目我们可以做一下推断。

1 、OSPF网络在解决不连续区域的时候我们一般用的是虚链路的解决办法,现在我们可以看出用不同的进程做重分布也可以代替虚链路。
2、OSPF-Process-ID,只是本地有效,但是在同一台路由器上就是不同的进程了,(类似于EIGRP不同的自治系统)。我们在上述试验中就可以看出来。
3,说OSPF中其他的区域要必须同时连接在主干区域,通过这个试验,我们不难看出还要加一个条件,(在相同进程)
4、这里要说明的是这样做在解决OSPF 网络的时候用这种办法的优点和缺点。

优点:1我们可以在做重分布的时候做丰富的策略。

2
解决了虚链路带来的不稳定因素。

3
在路由排查方面就变的很简单了。

4
只需要简单的配置就能完成。


缺点:1、还是通过其他的区域来传递本区域的路由。
5、最好的解决方案;在网络设计的时候不要出现不连续的区域。
 

你可能感兴趣的:(职场,休闲,解决不连续区域的新方法)