免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2504 | 回复: 3
打印 上一主题 下一主题

请教:关于分区域OSPF 路由归纳的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-08 14:03 |只看该作者 |倒序浏览
一级中心下挂16个二级中心,每个二级中心下有数十个网点,总共约有1000 多个网点。现在准备运行分区域的OSPF 协议,各个二级中心到一级中心之间是DDN 连接,属于区域0,各个二级中心各自为一个区域,同时要求二级中心上不能ping 通其他二级中心,也不能有其他二级中心的路由,各网点之间也不能互通。为了防止一级中心路由器上路由太多,我想使用路由归纳,使一级中心上的动态路由只有16个二级中心整段的路由。请问各位高手,这样做能实现吗?我搭了个模拟环境,发现一级中心的路由表上还是有网点的路由,我把配置和路由表贴出来,各位高手帮忙看看吧,急、急、急,在线等待,小弟先行谢过了!!
一级中心:
c26s#sh run
Building configuration...

Current configuration:
!
version 11.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c26s
!
enable secret 5 $1$6Ct4$bRNyoGXXINaEx.Y7o2DA00
enable password wufeng
!
ip subnet-zero
!
!
process-max-time 200
!
interface Loopback0
ip address 172.16.3.1 255.255.255.240
!
interface Loopback1
ip address 172.16.3.17 255.255.255.240
!
interface Ethernet0/0
ip address 172.16.8.1 255.255.255.0
!
interface Serial0/0
ip address 172.16.5.1 255.255.255.252
no ip mroute-cache
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
summary-address 172.16.4.0 255.255.252.0
network 172.16.0.0 0.0.3.255 area 0
network 172.16.4.0 0.0.3.255 area 0
network 172.16.8.0 0.0.3.255 area 0
!
ip classless
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
no scheduler allocate
end

c26s#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 7 subnets, 3 masks
O E2 172.16.6.16/28 [110/20] via 172.16.5.2, 00:00:48, Serial0/0
C 172.16.3.16/28 is directly connected, Loopback1
O IA 172.16.4.0/22 [110/1562] via 172.16.5.2, 00:00:48, Serial0/0
C 172.16.5.0/30 is directly connected, Serial0/0
O E2 172.16.6.0/28 [110/20] via 172.16.5.2, 00:00:48, Serial0/0
O E2 172.16.7.0/30 [110/20] via 172.16.5.2, 00:00:48, Serial0/0
C 172.16.3.0/28 is directly connected, Loopback0
c26s#
二级中心:
c26x#sh run
Building configuration...

Current configuration:
!
version 11.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c26x
!
enable secret 5 $1$cpFL$3ZrAlSWMwIklrpoToB8Yc1
enable password wu
!
!
!
process-max-time 200
!
interface Loopback0
ip address 172.16.4.1 255.255.255.240
!
interface Loopback1
ip address 172.16.4.17 255.255.255.240
!
interface Ethernet0/0
no ip address
shutdown
!
interface Serial0/0
ip address 172.16.5.2 255.255.255.252
no ip mroute-cache
no fair-queue
!
interface Serial0/1
ip address 172.16.7.1 255.255.255.252
!
router ospf 1
summary-address 172.16.4.0 255.255.252.0
redistribute connected subnets
network 172.16.5.0 0.0.0.3 area 0
network 172.16.7.0 0.0.0.3 area 8
distribute-list 1 in Serial0/0
area 0 range 172.16.0.0 255.255.252.0
area 8 range 172.16.4.0 255.255.252.0
!
ip classless
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end

c26x#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 7 subnets, 3 masks
C 172.16.4.16/28 is directly connected, Loopback1
O E2 172.16.6.16/28 [110/20] via 172.16.7.2, 04:16:48, Serial0/1
O 172.16.4.0/22 is a summary, 04:21:24, Null0
C 172.16.4.0/28 is directly connected, Loopback0
C 172.16.5.0/30 is directly connected, Serial0/0
O E2 172.16.6.0/28 [110/20] via 172.16.7.2, 04:16:48, Serial0/1
C 172.16.7.0/30 is directly connected, Serial0/1
c26x#
网点:
c17#sh run
Building configuration...

Current configuration:
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname c17
!
enable secret 5 $1$PuqM$K4yW9egNMVF50QQwRE2wI0
enable password wufeng
!
!
!
!
!
memory-size iomem 25
ip subnet-zero
!
!
!
!
interface Loopback0
ip address 172.16.6.1 255.255.255.240
!
interface Loopback1
ip address 172.16.6.17 255.255.255.240
!
interface Serial0
ip address 172.16.7.2 255.255.255.252
no fair-queue
!
interface FastEthernet0
ip address 192.168.3.1 255.255.255.0
speed auto
!
router ospf 10
redistribute connected subnets
network 172.16.7.0 0.0.0.3 area 8
distribute-list 1 in Serial0
!
ip classless
no ip http server
!
access-list 1 deny 172.16.8.0 0.0.3.255
access-list 1 permit any
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
login
!
no scheduler allocate
end

c17#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 6 subnets, 3 masks
C 172.16.6.16/28 is directly connected, Loopback1
O E2 172.16.4.0/22 [110/20] via 172.16.7.1, 00:02:20, Serial0
O IA 172.16.5.0/30 [110/845] via 172.16.7.1, 00:02:15, Serial0
C 172.16.6.0/28 is directly connected, Loopback0
C 172.16.7.0/30 is directly connected, Serial0
O IA 172.16.0.0/22 [110/846] via 172.16.7.1, 00:02:15, Serial0
c17#
    

论坛徽章:
0
2 [报告]
发表于 2003-06-09 08:24 |只看该作者

请教:关于分区域OSPF 路由归纳的问题

"各个二级中心到一级中心之间是DDN 连接,属于区域0"
按照你所说的,我想你不能设置AREA0,整个路由器中根本不能存在区域0,各个二级中心到一级中心分别用不同的AREA,但是不能是0,这样应该能达到你说的那种效果。。。

论坛徽章:
0
3 [报告]
发表于 2003-06-10 08:52 |只看该作者

请教:关于分区域OSPF 路由归纳的问题

地址设计挺混乱的,再规划一下;
你制定的summary 有问题,先不用或auto。

论坛徽章:
0
4 [报告]
发表于 2003-06-10 14:45 |只看该作者

请教:关于分区域OSPF 路由归纳的问题

问题解决了。是我的area id rang不对,而且我这里根本用不着summary,昨天看一天书,总算是明白了:)
因为是搭模拟环境,地址随便给的,而且我的意思也没说清楚,应该是把二级中心与一级中心相连的广域口划给area0,不过很感谢两位的帮助!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP