注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 51CTO第2本书案例征集开始
 帮助

多区域OSPF和路由重发布


2008-04-30 20:42:08
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://hexianguo.blog.51cto.com/337884/74433
 
R1 s1/0 -----s1/0 R2  S1/1 ----- s1/1 R3   S1/0 ------ s1/0 R4
R1 lo0 s1/0  ---RIPV2  R2- S/0    ---RIPV2    R2/R3/R4---ospf
R2--S1/1   ---ofpf  area 0   R3 s1/1
R3 1/0  --- ospf area 1  R4  s1/0 area 1
 
RB>en
RA#conf t
RA(config)#int s1/0
RA(config-if)#ip add 1.1.1.1 255.255.25
RA(config-if)#clock rate 64000
RA(config-if)#no sh
RA(config-if)#int lo0
RA(config-if)#ip add 100.100.100.100 255.255.255.255
RA(config-if)#exit
RA(config)#router rip
RA(config-router)#net
RA(config-router)#net  1.1.1.1
RA(config-router)#ver 2
RA(config-router)#net 100.100.100.100
RA(config-router)#^Z
 
RA#sh ip route
     1.0.0.0/30 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial1/0
R    2.0.0.0/8 [120/1] via 1.1.1.2, 00:00:16, Serial1/0
     100.0.0.0/32 is subnetted, 1 subnets
C       100.100.100.100 is directly connected, Loopback0
R    3.0.0.0/8 [120/1] via 1.1.1.2, 00:00:16, Serial1/0
 
 
RB>
RB>en
RB#conf t
RB(config)#
RB(config)#int s1/0
RB(config-if)#ip add 1.1.1.2 255.255.255.252
RB(config-if)#no sh
RB(config-if)#int s1/1
RB(config-if)#ip add 2.2.2.1 255.255.255.252
RB(config-if)#clock rate 64000
RB(config-if)#no sh
RB(config-if)#
RB(config-if)#exit
RB(config)#router rip
RB(config-router)#ver 2
RB(config-router)#net 1.1.1.2
RB(config-router)#redistribute ospf 1 metric 1
RB(config-router)#exit
RB(config)#router os
RB(config)#router ospf 1
RB(config-router)#net 2.2.2.1 0.0.0.3 are
RB(config-router)#net 2.2.2.1 0.0.0.3 area 0
RB(config-router)#redistribute rip metric 10 subnets
RB(config-router)#end
RB#
 
RB#sh ip route
     1.0.0.0/30 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial1/0
     2.0.0.0/30 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial1/1
R    100.0.0.0/8 [120/1] via 1.1.1.1, 00:00:03, Serial1/0
     3.0.0.0/30 is subnetted, 1 subnets
O IA    3.3.3.0 [110/128] via 2.2.2.2, 00:10:23, Serial1/1
 
 
 
RC>en
RC#conf t
RC(config)#int s1/1
RC(config-if)#ip add 2.2.2.2 255.255.255.252
RC(config-if)#no sh
RC(config-if)#int s1/0
RC(config-if)#ip add 3.3.3.1 255.255.255.252
RC(config-if)#clock rate 64000
RC(config-if)#no sh
RC(config-if)#
RC(config-if)#exit
RC(config)#router ospf 1
RC(config-router)#net 2.2.2.2 0.0.0.3 area 0
RC(config-router)#net 3.3.3.1 0.0.0.3 area 1
RC(config-router)#
 
RC#sh ip route
     1.0.0.0/30 is subnetted, 1 subnets
O E2    1.1.1.0 [110/10] via 2.2.2.1, 00:10:57, Serial1/1
     2.0.0.0/30 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial1/1
O E2 100.0.0.0/8 [110/10] via 2.2.2.1, 00:10:58, Serial1/1
     3.0.0.0/30 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Serial1/0
 
 
RD>
RD>en
RD#conf t
RD(config)#int s1/0
RD(config-if)#ip add 3.3.3.2 255.255.255.252
RD(config-if)#no sh
RD(config-if)#exit
RD(config)#router ospf 1
RD(config-router)#net 3.3.3.2 0.0.0.3 area 1
 
RD#sh ip route
     1.0.0.0/30 is subnetted, 1 subnets
O E2    1.1.1.0 [110/10] via 3.3.3.1, 00:11:17, Serial1/0
     2.0.0.0/30 is subnetted, 1 subnets
O IA    2.2.2.0 [110/128] via 3.3.3.1, 00:11:59, Serial1/0
O E2 100.0.0.0/8 [110/10] via 3.3.3.1, 00:11:17, Serial1/0
     3.0.0.0/30 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Serial1/0

本文出自 “Tracy McGrady” 博客,请务必保留此出处http://hexianguo.blog.51cto.com/337884/74433





    文章评论
 
2008-05-02 10:04:52
博主写得很好 但我有点建议 能不能把区域标识清楚

2008-05-03 16:17:14
嗯 建议很好

2008-05-08 10:45:13
恩 最好要加上一些文字说明 这样看的不是很明白 呵呵

2008-05-08 15:54:19
很不错的文章,但是这样的文章只有比较熟悉ROUTER的人才可以看的清楚.
最好是在这个实验中写出不同的区域,
还有就是为什么要这样配置,
弄出个所以然来,让别人明白才好 啊~~
还是很感谢你提供这么好的文章.

2008-05-08 22:46:04
挺不错的,建议博主如楼上所说的,应该在拓扑图上尽可能多地反映出大部分的信息。而正文的信息与拓扑图的信息最好一致,你的拓扑图用R1-R2-R3-R4,而正文内容却用RA-RB-RC-RD。

花了小小时间帮你画了幅拓扑图
http://sharkii.blog.51cto.com/album/325987/121025759445.jpg


2008-05-10 12:43:46
呵呵 感谢,实在感谢   你是用什么工具画的拓朴啊

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: