Re: Administrative distance of static route

From: Hash Aminu (hashng@gmail.com)
Date: Sat Feb 24 2007 - 04:16:00 ART


Yes

a route pointing to an interface has an AD of 0 and that pointing to an
address has an ad of 1

look at the configs below

1. its pointing to an address(AD=1)

Router(config)#do sh run int s1/0
Building configuration...

Current configuration : 131 bytes
!
interface Serial1/0
 ip address 10.1.1.1 255.255.255.0
 no keepalive
 serial restart-delay 0
 no dce-terminal-timing-enable
end

Router(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

     10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial1/0
     11.0.0.0/24 is subnetted, 1 subnets
*S 11.1.1.0 [1/0] via 10.1.1.2*
Router(config)#do sh run | inc ip route
ip route 11.1.1.0 255.255.255.0 10.1.1.2
Router(config)#

2. it is pointing to an interface (AD=0)

Router(config)#do sh run | inc ip route
ip route 11.1.1.0 255.255.255.0 Serial1/0
Router(config)#do sh run int s1/0
Building configuration...

Current configuration : 131 bytes
!
interface Serial1/0
 ip address 10.1.1.1 255.255.255.0
 no keepalive
 serial restart-delay 0
 no dce-terminal-timing-enable
end

Router(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

     10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial1/0
     11.0.0.0/24 is subnetted, 1 subnets
*S 11.1.1.0 is directly connected, Serial1/0*
Router(config)#

I think the right thing to look at here is how differently will the two
scenarios behave.

HTH

hash



This archive was generated by hypermail 2.1.4 : Thu Mar 01 2007 - 07:38:48 ART