免费注册 查看新帖 |

Chinaunix

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

OSPF中使用标记来控制路由的再次分布 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-11 09:54 |只看该作者 |倒序浏览
参考ospf命令与手册实验做了好多次,一直没有成功,把路由a上的ospf再分布成rip,但只允许标记88的路由再分布
将各路由关键配置和top贴上来,希望大家能帮忙看看,谢谢
rc

interface Serial0/0
ip address 10.1.1.10 255.255.255.252
serial restart-delay 0
clock rate 64000
no fair-queue
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 10.0.0.0
!
ip http server


实验结果
rc#sh ip rou
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     2.0.0.0/32 is subnetted, 1 subnets
R       2.2.2.2 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
     156.16.0.0/27 is subnetted, 2 subnets
R       156.16.32.32 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
R       156.16.32.0 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
     10.0.0.0/30 is subnetted, 2 subnets
C       10.1.1.8 is directly connected, Serial0/0
R       10.1.1.0 [120/1] via 10.1.1.9, 00:00:01, Serial0/0
rc#
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 10.1.1.1 255.255.255.252
serial restart-delay 0
clock rate 64000
no fair-queue
!         
interface Serial0/1
ip address 10.1.1.9 255.255.255.252
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.1.0 0.0.0.3 area 0
!
router rip
version 2
redistribute ospf 1 metric 1 route-map checktags
passive-interface Serial0/0
network 10.0.0.0
no auto-summary
!
ip http server
!
!
!
!
route-map checktags permit 10
match tag 88
!
!


ra#sh ip os da

            OSPF Router with ID (1.1.1.1) (Process ID 1)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         1628        0x80000004 0x00F88C 2
156.16.32.49    156.16.32.49    1616        0x80000002 0x009DEC 2

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
2.2.2.2         156.16.32.49    1615        0x80000001 0x008119 0
156.16.32.0     156.16.32.49    1486        0x80000002 0x00415A 88
156.16.32.32    156.16.32.49    1458        0x80000002 0x00C0E8 42
ra#


ra#sh ip rou
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O E2    2.2.2.2 [110/20] via 10.1.1.2, 00:27:25, Serial0/0
     156.16.0.0/27 is subnetted, 2 subnets
O E2    156.16.32.32 [110/20] via 10.1.1.2, 00:24:49, Serial0/0
O E2    156.16.32.0 [110/20] via 10.1.1.2, 00:25:16, Serial0/0
     10.0.0.0/30 is subnetted, 2 subnets
C       10.1.1.8 is directly connected, Serial0/1
C       10.1.1.0 is directly connected, Serial0/0
ra#
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Loopback1
ip address 156.16.32.1 255.255.255.240
!
interface Loopback2
ip address 156.16.32.17 255.255.255.240
!         
interface Loopback3
ip address 156.16.32.33 255.255.255.240
!
interface Loopback4
ip address 156.16.32.49 255.255.255.240
!
interface Serial0/0
no ip address
shutdown
serial restart-delay 0
no fair-queue
!
interface Serial0/1
ip address 10.1.1.2 255.255.255.252
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
summary-address 156.16.32.0 255.255.255.224 tag 88
summary-address 156.16.32.32 255.255.255.224 tag 42
redistribute connected subnets
network 10.1.1.0 0.0.0.3 area 0
!



rb#sh ip rou
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     156.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
C       156.16.32.32/28 is directly connected, Loopback3
O       156.16.32.32/27 is a summary, 00:26:14, Null0
C       156.16.32.48/28 is directly connected, Loopback4
C       156.16.32.0/28 is directly connected, Loopback1
O       156.16.32.0/27 is a summary, 00:26:14, Null0
C       156.16.32.16/28 is directly connected, Loopback2
     10.0.0.0/30 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial0/1
rb#

ospf.png (19.69 KB, 下载次数: 46)

ospf.png

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2010-05-11 22:26 |只看该作者
的确怪怪的。我看一下了。

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
3 [报告]
发表于 2010-05-11 22:28 |只看该作者
给路由器版本看一下了。

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
4 [报告]
发表于 2010-05-11 23:08 |只看该作者
已经测试过,没有复现你说的现象。
提供设备版本吧。

论坛徽章:
0
5 [报告]
发表于 2010-05-12 08:57 |只看该作者
原先按照红盟的ospf手册配置没实现,我还特地查了查《cisco ospf命令与配置手册》,配置应该没问题啊,真是奇了怪了
Router#sh ver
Cisco IOS Software, 3600 Software (C3640-IS-M), Version 12.4(10), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Wed 16-Aug-06 04:04 by prod_rel_team

ROM: ROMMON Emulation Microcode
ROM: 3600 Software (C3640-IS-M), Version 12.4(10), RELEASE SOFTWARE (fc1)

Router uptime is 0 minutes
System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19
System image file is "tftp://255.255.255.255/unknown"

Cisco 3640 (R4700) processor (revision 0xFF) with 124928K/6144K bytes of memory.
Processor board ID 00000000
R4700 CPU at 100MHz, Implementation 33, Rev 1.2
4 Serial interfaces
DRAM configuration is 64 bits wide with parity enabled.
125K bytes of NVRAM.
8192K bytes of processor board System flash (Read/Write)

Configuration register is 0x2142

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
6 [报告]
发表于 2010-05-12 20:33 |只看该作者
所有配置和拓扑结构给我吧。我的确没复现,还是粘贴了你的配置。

论坛徽章:
0
7 [报告]
发表于 2010-05-13 09:00 |只看该作者
我再复现实验一遍看看

论坛徽章:
0
8 [报告]
发表于 2010-05-14 08:55 |只看该作者
昨天回去复试了下,换了ios,在26和37下面同样的配置均达到实验效果

3640貌似一直有问题,估计是ios的问题

谢谢ssffzz1了

实验结果
rc#sh ip rou
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     156.26.0.0/27 is subnetted, 1 subnets
R       156.26.32.0 [120/1] via 10.1.1.9, 00:00:14, Serial1/0
     10.0.0.0/30 is subnetted, 2 subnets
C       10.1.1.8 is directly connected, Serial1/0
R       10.1.1.0 [120/1] via 10.1.1.9, 00:00:14, Serial1/0
rc#

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
9 [报告]
发表于 2010-05-14 21:26 |只看该作者
呸。

问你要了几次版本了。从没见到给我。你就蒙着头来问吧。

也许的事情多了去了。

论坛徽章:
0
10 [报告]
发表于 2010-05-15 08:44 |只看该作者
回复 9# ssffzz1
不是吧老大,5楼我已经给你了啊,你看发帖顺序
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP