Re: Administrative distance of static route

From: Edison Ortiz (edisonmortiz@gmail.com)
Date: Sat Feb 24 2007 - 12:13:11 ART


You should try posting a complete route information for that particular
subnet instead of the routing table.

conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)# ip route 10.0.0.0 255.255.255.0 183.1.254.1
R2(config)#do show ip route 10.0.0.0 255.255.255.0
Routing entry for 10.0.0.0/24
  Known via "static", distance 1, metric 0
  Routing Descriptor Blocks:
  * 183.1.254.1
      Route metric is 0, traffic share count is 1

R2(config)#no ip route 10.0.0.0 255.255.255.0 183.1.254.1
R2(config)# ip route 10.0.0.0 255.255.255.0 s0/0
R2(config)#do show ip route 10.0.0.0 255.255.255.0
Routing entry for 10.0.0.0/24
  Known via "static", distance 1, metric 0 (connected)
  Routing Descriptor Blocks:
  * directly connected, via Serial0/0
      Route metric is 0, traffic share count is 1

Both routes have the same distance and metric values.

AD is 1 on both.

----- Original Message -----
From: "Hash Aminu" <hashng@gmail.com>
To: "Sadiq Yakasai" <sadiqtanko@gmail.com>
Cc: <ccielab@groupstudy.com>
Sent: Saturday, February 24, 2007 2:16 AM
Subject: Re: Administrative distance of static route

> 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
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



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