您的位置:首页 > 其它

多区域ospf配置

2010-05-08 18:57 465 查看
[align=center]多区域ospf的配置[/align]



◆RA的配置是
int loopback 0
ip add 192.168.64.1 255.255.255.0
no shut
exit
int f1/0
ip add 192.168.1.1 255.255.255.0
no shut
exit
router ospf 1
network 192.168.64.1 0.0.0.0 area 1
network 192.168.1.1 0.0.0.0 area 0
◆RB的配置是
int loopback 0
ip add 192.168.3.1 255.255.255.0
no shut
exit
int f1/0
ip add 192.168.1.3 255.255.255.0
no shut
exit
int s0/0
ip add 192.168.224.1 255.255.255.252
no shut
router ospf 1
network 192.168.1.3 0.0.0.0 area 0
network 192.168.224.1 0.0.0.0 area 51
network 192.168.3.1 0.0.0.0 area 0
◆RC的配置是
int s0/1
clock rate 128000
ip add 192.168.224.2 255.255.255.252
no shut
router ospf 1
network 192.168.224.2 0.0.0.0 area 51
之后都可以ping通
◆在RB上 show iproute则是
O IA 192.168.1.0/24 [110/782] via 192.168.224.1, 00:02:16, srial0/0
192.168.3.0/32 is subnetted, 1 subnets
O IA 192.168.3.1 [110/782] via 192.168.224.1, 00:02:16, Serial0/0
192.168.64.0/32 is subnetted, 1 subnets
O IA 192.168.64.1 [110/783] via 192.168.224.1, 00:02:16, Serial0/0
192.168.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0/0
◆在RB和RC上
router ospf 1
area 51 stub
则出现的效果是
show ip route
O IA 192.168.1.0/24 [110/782] via 192.168.224.1, 00:00:02, Serial0/0
192.168.3.0/32 is subnetted, 1 subnets
O IA 192.168.3.1 [110/782] via 192.168.224.1, 00:00:02, Serial0/0
192.168.64.0/32 is subnetted, 1 subnets
O IA 192.168.64.1 [110/783] via 192.168.224.1, 00:00:02, Serial0/0
192.168.224.0/30 is subnetted, 1 subnets
C 192.168.224.0 is directly connected, Serial0/0
O*IA 0.0.0.0/0 [110/782] via 192.168.224.1, 00:00:02, Serial0/0
◆在RB上配置
router ospf 1
area 51 stub no-summary
则show ip route的结果是
C 192.168.224.0 is directly connected, Serial0/0
O*IA 0.0.0.0/0 [110/782] via 192.168.224.1, 00:00:02, Serial0/0
完成.
本文出自 “浅浅的” 博客,请务必保留此出处http://2010guo.blog.51cto.com/1468636/312619
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: