雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3466|回复: 11

[讨论/求助] 求助关于锐捷R1700l路由器的rip和ospf重发布 跪谢大神!

[复制链接]
发表于 2012-7-13 23:32:17 | 显示全部楼层 |阅读模式


SW跟RA用rip RB用OSPF 为什么在RA中重发布不了? 命令如下
RA(config-router)#show run

Building configuration...
Current configuration : 737 bytes

!
version RGNOS 10.1.00(4), Release(22505)(Wed Sep 19 18:31:34 CST 2007 -ubuntu-2)
hostname RA
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!         
!
!
!
!
interface serial 1/2
clock rate 64000
!
interface serial 1/3
clock rate 64000
!
interface FastEthernet 1/0
ip address 192.168.10.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet 1/1
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
!
!
!
router ospf 1
redistribute connected
redistribute rip metric 10
network 192.168.10.0 0.0.0.255 area 0
!
!
router rip
version 2
network 192.168.1.0
redistribute connected
redistribute ospf  
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end



该贴已经同步到 379006775的微博

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2012-7-14 00:14:03 | 显示全部楼层
问下:你的交换机fa0/1 fa0/2划分在vlan 10 fa0/11在vlan20 这样的吗
发表于 2012-7-14 00:27:01 | 显示全部楼层
router rip
version 2
network 192.168.1.0
redistribute connected
redistribute ospf  


这里涉及到重发布种子度量的问题(重发布默认度量值)
RIP从其他动态路由协议重发布进来的路由,默认Metric=16hops,也即不可达,
所以在重发布的时候,需指定metric
 楼主| 发表于 2012-7-14 09:53:00 | 显示全部楼层
回复一楼 是的 F0/1跟F0/2是VLAN10 F0/11是VLAN 20
 楼主| 发表于 2012-7-14 09:56:39 | 显示全部楼层
回复二楼 我知道这个度量值 但是 我做上去 路由表依旧没有OSPF的路由
 楼主| 发表于 2012-7-14 10:08:42 | 显示全部楼层
interface serial 1/2
clock rate 64000
!
interface serial 1/3
clock rate 64000
!
interface FastEthernet 1/0
ip address 192.168.10.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet 1/1
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!         
!
!
!
router ospf 100
redistribute rip metric 100 subnets
network 192.168.10.4 0.0.0.3 area 0
!
!
router rip
version 2
network 192.168.1.0
redistribute ospf metric 2  
修改后配置


SHOW IP ROUTE后
Codes:  C - connected, S - static,  R - RIP B - BGP
        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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
        * - candidate default

Gateway of last resort is no set
C    192.168.1.0/24 is directly connected, FastEthernet 1/1
C    192.168.1.2/32 is local host.
C    192.168.10.4/30 is directly connected, FastEthernet 1/0
C    192.168.10.5/32 is local host.
 楼主| 发表于 2012-7-14 10:49:02 | 显示全部楼层
RA(config)#show run

Building configuration...
Current configuration : 714 bytes

!
version RGNOS 10.1.00(4), Release(22505)(Wed Sep 19 18:31:34 CST 2007 -ubuntu-2)
hostname RA
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!         
!
!
!
!
interface serial 1/2
clock rate 64000
!
interface serial 1/3
clock rate 64000
!
interface FastEthernet 1/0
ip address 192.168.10.5 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet 1/1
ip address 192.168.1.2 255.255.255.0
duplex auto
speed auto
!
!
!
!
router ospf 1
redistribute rip metric 10 metric-type 1 subnets
network 192.168.10.0 0.0.0.3 area 0
!
!
router rip
version 2
network 192.168.1.0
redistribute ospf metric 3  配置命令


路由表条目
RA(config)#show ip route

Codes:  C - connected, S - static,  R - RIP B - BGP
        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, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
        * - candidate default

Gateway of last resort is no set
C    192.168.1.0/24 is directly connected, FastEthernet 1/1
C    192.168.1.2/32 is local host.
R    192.168.2.0/24 [120/1] via 192.168.1.1, 00:00:19, FastEthernet 1/1
C    192.168.10.4/30 is directly connected, FastEthernet 1/0
C    192.168.10.5/32 is local host.

现在还是重分布不了
发表于 2012-7-14 13:30:43 | 显示全部楼层
本帖最后由 ★浓_眉☆※兴 于 2012-7-14 13:37 编辑

你sw上的pc1能与pc2互通吗?网关怎么配置的 你的sw上fa0/1 和fa/2在同一子网 fa0/11在另一个子网
我建议啊 sw上完成三层交换 fa0/1 no sw 配置ip 例如 192.168.3.1/24
ra
fa1/1:ip add 192.168.3.2/24
router rip
ver 2
no au
net 192.168.3.0
redistribute ospf 1 metric 2
router ospf 1
net 192.168.10.5 0.0.0.3 a 0
redrisbute rip sbnets
当然在sw router rip ,ver 2, no au,net 192.168.1/2/3.0
实验我是这样做的 全网互通 希望帮到你  
 楼主| 发表于 2012-7-16 10:35:15 | 显示全部楼层
问题解决了 是在OSPF中要启用OSPF network 0.0.0.0 255.255.255.255
发表于 2012-7-16 12:58:57 | 显示全部楼层
379006775 发表于 2012-7-16 10:35
问题解决了 是在OSPF中要启用OSPF network 0.0.0.0 255.255.255.255

你在r1上这样做 这也叫重发不啊!!!!
ospf的ad比rip的ad值少  等于在r1上ospf为首 相当于整个网络处于ospf中
请你解释下?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-18 09:31 , Processed in 0.079144 second(s), 19 queries , Gzip On.

快速回复 返回顶部 返回列表