RIP & Static Routes.

From: Graciela Facelli (gfacelli@uy.ibm.com)
Date: Sat Nov 30 2002 - 16:25:27 GMT-3


Hi,

Please, I will appreciate if someone can said me what is wrong...

I have the following network

--- R4 ------ R2 ----- R3

R2 - R4 are using RIP
R2 - R3 are using OSPF

With OSPF, R2 is learning routes with mask lenght 22 and 26 and the R4 -
R2 link is using mask lenght 24 with the same major net.

At R2 I added static routes that point to OSPF domain with next-hop null 0
(for routes with /26 lengh mask) or the interface to R3 (for routes with
lenght mask /22).-

At R2 the configuration looks like

router ospf 10
 log-adjacency-changes
 redistribute rip metric 5 subnets
 network 133.7.128.0 0.0.0.255 area 0

router rip
 redistribute ospf 10 metric 5
 passive-interface FastEthernet0/0
 network 133.7.0.0

ip route 133.7.30.0 255.255.255.0 Null0
ip route 133.7.55.0 255.255.255.0 Null0
ip route 133.7.128.0 255.255.255.0 FastEthernet0/0
ip route 133.7.129.0 255.255.255.0 FastEthernet0/0
ip route 133.7.130.0 255.255.255.0 FastEthernet0/0
ip route 133.7.131.0 255.255.255.0 FastEthernet0/0

Without redistribute static command for RIP R4 is receiving the static
routes.
That is it right?

I found the following:

Static routes that point to an interface will be advertised via RIP, IGRP,
and other dynamic routing protocols, regardless of whether redistribute
static commands were specified for those routing protocols. These static
routes are advertised because static routes that point to an interface
are considered in the routing table to be connected and hence lose their
static nature. However, if you define a static route to an interface that
is
not one of the networks defined in a network command, no dynamic routing
protocols will advertise the route unless a redistribute static
command is specified for these protocols.

Then I think that R4 couldn't receive the statics routes with RIP.

The show ip route of R4 looks like

R4#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

R 160.100.0.0/16 [120/5] via 133.7.24.2, 00:00:25, Serial0/1
     10.0.0.0/28 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Loopback2
     133.7.0.0/24 is subnetted, 10 subnets
R 133.7.130.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
R 133.7.131.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
R 133.7.128.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
R 133.7.129.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
R 133.7.2.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
C 133.7.24.0 is directly connected, Serial0/1
R 133.7.30.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
R 133.7.55.0 [120/1] via 133.7.24.2, 00:00:25, Serial0/1
C 133.7.77.0 is directly connected, FastEthernet0/0

That it is right?
Thanks a lot. Graciela



This archive was generated by hypermail 2.1.4 : Tue Dec 03 2002 - 07:23:13 GMT-3