RE: Default route question

From: Brian Dennis (bdennis@internetworkexpert.com)
Date: Tue Aug 02 2005 - 01:16:20 GMT-3


Anand,
        A static route pointing to an interface and a static route
pointing to an IP address both have a default administrative distance of
1. See below:

Router(config)#ip route 0.0.0.0 0.0.0.0 e0/0
Router(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2
Router(config)#^Z
Router#sho ip route 0.0.0.0
Routing entry for 0.0.0.0/0, supernet
  Known via "static", distance 1, metric 0 (connected), candidate
default path
  Routing Descriptor Blocks:
  * directly connected, via Ethernet0/0
      Route metric is 0, traffic share count is 1
    10.1.1.2
      Route metric is 0, traffic share count is 1

Router#

HTH,

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
Anand Singh (anandksi)
Sent: Monday, August 01, 2005 8:24 PM
To: ccielab@groupstudy.com
Subject: Default route question

Hi All,

The connected route has admin distance of 0 and static have admin
distance of 1. As far as the default route 0.0.0.0 is concerned below
both the routes are installed and not just the lower admin distance.
Comments please ?

Thanks
-Anand

sh ip route
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, E - EGP
       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 0.0.0.0 to network 0.0.0.0

     20.0.0.0/24 is subnetted, 2 subnets
S 20.10.20.0 [1/0] via 192.168.18.2
S 20.10.10.0 [1/0] via 192.10.0.1
C 192.10.10.0/24 is directly connected, Loopback0
C 192.10.20.0/24 is directly connected, Loopback1
     10.0.0.0/24 is subnetted, 1 subnets
C 10.4.36.0 is directly connected, FastEthernet3/1
C 192.10.0.0/24 is directly connected, FastEthernet3/2
     164.10.0.0/24 is subnetted, 1 subnets
C 164.10.10.0 is directly connected, Serial4/0/3
C 192.168.18.0/24 is directly connected, Serial4/0/0
S* 0.0.0.0/0 is directly connected, FastEthernet3/2
               [1/0] via 10.4.36.1
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:01:18 GMT-3