RE: Static Route

From: Scott Morris (swm@emanon.com)
Date: Sun Sep 03 2006 - 11:08:43 ART


I agree with Brian that it's really not a good idea to do this. However,
you'll find that >IF< you choose to do this, the static route will win. The
presumed tie-breaker (logically so) is that manual configuration through a
static route is a local administrative choice and should take precedence
over something dynamically learned.

Example:

R2(config-router)#do sh bgp
BGP table version is 3, local router ID is 150.7.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*> 150.7.1.0/24 100.100.100.1 0 0 1000 400 i
*> 150.7.2.0/24 0.0.0.0 0 32768 i
R2(config-router)#do sh ip ro
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

     100.0.0.0/24 is subnetted, 1 subnets
C 100.100.100.0 is directly connected, Vlan1
     122.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
C 122.1.25.6/32 is directly connected, Serial0/2/0
C 122.1.25.4/30 is directly connected, Serial0/2/0
C 122.1.56.160/27 is directly connected, Serial0/1/0
     150.7.0.0/24 is subnetted, 2 subnets
B 150.7.1.0 [20/0] via 100.100.100.1, 00:00:10
C 150.7.2.0 is directly connected, Loopback0
R2(config-router)#ip route 150.7.1.0 255.255.255.0 null0 20
R2(config)#do sh ip ro
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

     100.0.0.0/24 is subnetted, 1 subnets
C 100.100.100.0 is directly connected, Vlan1
     122.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
C 122.1.25.6/32 is directly connected, Serial0/2/0
C 122.1.25.4/30 is directly connected, Serial0/2/0
C 122.1.56.160/27 is directly connected, Serial0/1/0
     150.7.0.0/24 is subnetted, 2 subnets
S 150.7.1.0 is directly connected, Null0
C 150.7.2.0 is directly connected, Loopback0
R2(config)#

The route started in BGP just fine, but as soon as the static route was put
in, that won. And it didn't matter whether the static was to Null0 or an
interface or an IP.

HTH,

 
Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, JNCIE
#153, CISSP, et al.
CCSI/JNCI-M/JNCI-J
IPExpert VP - Curriculum Development
IPExpert Sr. Technical Instructor
smorris@ipexpert.com
http://www.ipexpert.com
 
 

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Brian Dennis
Sent: Sunday, September 03, 2006 2:29 AM
To: Ronnie R Cherian; Cisco certification
Subject: RE: Static Route

As you can probably tell there isn't much documentation on this topic and
that's for the reason. The reason being is that you shouldn't need to set
the administrative distance of two protocols (i.e. static, EIGRP, OSPF, RIP,
etc) to be the same. Below is Cisco's definition of administrative
distance:

<quote>
Administrative distance is the feature that routers use in order to select
the best path when there are two or more different routes to the same
destination from two different routing protocols. Administrative distance
defines the reliability of a routing protocol. Each routing protocol is
prioritized in order of most to least reliable (believable) with the help of
an administrative distance value.
</quote>

Note that it doesn't mention anything about a "tie breaker" if the
administrative distance is the same.

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
bdennis@internetworkexpert.com

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987
Direct: 775-745-6404 (Outside the US and Canada)

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Ronnie R Cherian
Sent: Saturday, September 02, 2006 11:13 PM
To: Cisco certification
Subject: Static Route

Hi Folks !

Ive an question ! if i were to set an static route with an AD similar to
that of a Routing protocol say EIGRP ! which of the two would the router
select and why ?

Thank You

roshan



This archive was generated by hypermail 2.1.4 : Sun Oct 01 2006 - 16:55:39 ART