Re: ospf rip redistribution

From: Philip Lai (kimfai@xxxxxxxxxxx)
Date: Mon Aug 07 2000 - 23:38:52 GMT-3


   

Hi Arne,
Thanks for your reply. I try to build the static route
        ip route 172.17.0.0 255.255.0.0 null0
and do a redistribute static using RIP2 for R2 & R7.
However, the summary route still do not appear in R7.
Thanks for every reply.

Philip

R2#
router ospf 1
 network 172.17.95.2 0.0.0.0 area 64
 network 172.17.2.2 0.0.0.0 area 64
!
router rip
 version 2
 redistribute static
 passive-interface Serial0.1
 network 172.17.0.0
 default-metric 1
!
ip classless
ip route 172.17.0.0 255.255.0.0 Null0

r2#sh ip route
Gateway of last resort is not set

     172.17.0.0/16 is variably subnetted, 6 subnets, 4 masks
C 172.17.10.0/24 is directly connected, Ethernet0
O 172.17.3.3/32 [110/65] via 172.17.95.1, 00:10:19, Serial0.1
S 172.17.0.0/16 is directly connected, Null0
C 172.17.2.0/24 is directly connected, Loopback0
C 172.17.95.0/30 is directly connected, Serial0.1
O 172.17.95.4/30 [110/128] via 172.17.95.1, 00:10:19, Serial0.1
On Sun, 6 Aug 2000, Arne Kuhlmann wrote:

R7#
router rip
 version 2
 network 172.17.0.0
!

r7#sh ip route

Gateway of last resort is not set

     172.17.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 172.17.10.0/24 is directly connected, Ethernet0/0
R 172.17.2.0/24 [120/1] via 172.17.10.240, 00:00:28, Ethernet0/0
R 172.17.95.0/30 [120/1] via 172.17.10.240, 00:00:28, Ethernet0/0

> Philip,
>
> if you are using RIP1 which is a classfull routing protocol with classless
> addresses (i.e. 172.17.x.x. with a /24 mask) the subnet mask of the summary h
as
> to match the mask of the interface it is being advertised out.
> So even if you create a static route on R2
> ip route 172.17.0.0 255.255.0.0 null0
> and do a "redistribute static" in RIP it still won't be advertised.
> Change your route to
> ip route 172.17.95.0 255.255.255.0 null0
> and it will be advertised.
>
> If you have more than one OSPF area you could do a
> area X range 172.17.95.0 255.255.255.0
> on the ABR and you'll have a summary in your OSPF table. Again, it needs to h
ave
> the right subnet mask it be redistributed into RIP1.
>
> Alternatively you could use RIP2....
>
> Arne
>
>
>
>
> Philip lai wrote:
> >
> > ospf rip redistribution
> >
> > R3--Fr--R2--|--R7
> > ospf rip
> >
> > R3 s0.1 172.17.95.1/30
> > R2 s0.1 172.17.95.2/30
> > R2 lo 172.17.2.2/24
> > R2 e0 172.17.10.240/24
> > R7 eo 172.17.10.241/24
> >
> > I was trying to redistribute ospf into rip. Since the mask on R2 e0 is
> > 24 bit,
> > I would like to summarize it before sending into rip.
> >
> > In R2, I use summary address on ospf.
> >
> > router ospf 1
> > summary-address 172.17.0.0 255.255.0.0
> > network 172.17.95.2 0.0.0.0 area 64
> > network 172.17.2.2 0.0.0.0 area 64
> > !
> > router rip
> > redistribute ospf 1
> > passive-interface Serial0.1
> > network 172.17.0.0
> > default-metric 1
> >
> > r2#sh ip route
> > Gateway of last resort is not set
> >
> > 172.17.0.0/16 is variably subnetted, 5 subnets, 3 masks
> > C 172.17.10.0/24 is directly connected, Ethernet0
> > O 172.17.0.0/16 is a summary, 00:09:47, Null0
> > C 172.17.2.0/24 is directly connected, Loopback0
> > C 172.17.95.0/30 is directly connected, Serial0.1
> > O 172.17.95.4/30 [110/128] via 172.17.95.1, 00:03:25, Serial0.1
> >
> > That was great. A summary address 172.17.0.0/16 was appear. However,
> > when I
> > look at routing table of R7. This route do not come out.
> >
> > r7#sh ip route
> > C
> > Gateway of last resort is not set
> >
> > 172.17.0.0/24 is subnetted, 2 subnets
> > C 172.17.10.0 is directly connected, Ethernet0/0
> > R 172.17.2.0 [120/1] via 172.17.10.240, 00:00:09, Ethernet0/0
> >
> > When I try debug ip rip at R2, only 172.17.2.0 are send to R7.
> > Anybody know what is wrong with the config ? If I need to send a summary
> > route
> > to R7. Is that any other way to do it ? Any suggestion are appreciated.
> >
> > Rdgs,
> > Philip
> >
> > r2(config-if)#
> > 00:14:27: RIP: sending v1 update to 255.255.255.255 via Loopback0
> > (172.17.2.2) -
> > suppressing null update
> > 00:14:28: RIP: sending v1 update to 255.255.255.255 via Ethernet0
> > (172.17.10.240)
> > 00:14:28: subnet 172.17.2.0, metric 1
> > 00:14:28: RIP: sending v1 update to 255.255.255.255 via Loopback0
> > (172.17.2.2)
> > 00:14:28: subnet 172.17.10.0, metric 1
> >



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:24:22 GMT-3