John,

The behavior changed with the IOS releases. Newer IOS releases with 
static routes pointing to an interface will have an administrative 
distance of 1, not 0. Older versions will have an administrative 
distance of 0. Unfortunately I do not know the exact release in which 
the behavior changed.

The term "myth" is too strong and it's possible that the people that 
haven't worked with the older IOSs do not realize that this behavior was 
once different.

This is the output from one of my routers running 12.2(15)T:
   Lab#show ip route 10.1.1.0
   Routing entry for 10.1.1.0/24
     Known via "static", distance 1, metric 0 (connected)
     Routing Descriptor Blocks:
     * directly connected, via Serial0
         Route metric is 0, traffic share count is 1

As far as I know, certification study materials still expect you to 
think that a static route to an interface has an AD of 0.

- Tom

John Neiberger wrote:
> I accidentally deleted the posting about this but I wanted to make a point.
> It's been said that a static route has an AD of 1 unless it points directly
> out an interface, in which case it has an AD of 0. Sasa just mentioned that
> this has been discussed in the past and is a myth. However, I'd like to
> agree with the 'myth'. 
> 
> A directly connected route has an AD of 0. If you create a static route
> pointing directly out an interface, that route will show up as directly
> connected in the routing table, and would therefore have an AD of 0.  In
> fact, if you look at a static route you'll see the usual [AD/metric] listed
> as [1/0]. However, if you look at a static route pointing out an interface
> this is missing. This is because the router treats that route as if it were
> directly connected to the interface.
> 
> If I'm wrong about this--and I certainly might be--please let me know where
> my reasoning is incorrect.
> 
> Regards,
> John




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=72501&t=72495
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]

Reply via email to