Hi Munit,

Let assume you put both coomands say:

1. IP route 10.0.0.0 255.255.255.0 172.16.0.1
2. IP route 10.0.0.0 255.255.255.0 FE1

since the AD of 1 is 1 and that of 2 is 0, option 2 will be the prefered
route
for any routing activity to network 172.16.0.1. The route defined by option 1
will be a floating route to the same network, it will not be in your rotuing
table. Remember the routing rule, 'Only prefered routes are selected and
inserted into the routing table" option one will only show in the routing
table if by some means option become unavailable or fails.

Try then on your router and see. If you enter both commands on ur router and
implement 'Sh ip route' you will only see the route defined by option 2,
however if you remove the option 2 command, the route defined by option 1
will
surface in your 'sh ip route'

I hope this will help you.

Regards.
Godswill



  ----- Original Message -----
  From: Munit Singla
  To: Godswill Oletu
  Cc: [EMAIL PROTECTED]
  Sent: Thursday, December 19, 2002 5:56 PM
  Subject: Re: Strange problem of route table [7:59533]


  Hi Godswill,
  Thanx for reply.I agree with u,but Still the doubt persists if both the
commands are used then both entries come to the route table.As per your and
mine theory also only better administrative distance should come into the
route table,but here both are introduced into the route table ,as it seems it
has administrative distance of 1 for default gateway of its own
interface(obviosly zero is preffered then one)?
  Why both entries in route table.
  As confusion is creating from different answers so please reply ,so that
all
confusions are over.
  Regards,
  Munit
  Godswill Oletu wrote:

    Hi,
    Static routes can either have the AD of 1 or 0 depending on the way you
add
    them to your router.
    e.g lates RouterA interface FE0=192.168.0.1/27 and it is connected to
    RouterB FE1=192.168.0.2/27 & FE3=10.1.0.1/24.

    To define route to 10.1.0.1/24 on RouterA you have two methods.

    1. RouterA# IP route 10.0.0.0 255.255.255.0 192.168.0.2 (AD=1)
    2. RouterA#IP route 10.0.0.0 255.255.255.0 FE0 (AD=0)

    If both commands are entered option 2 will be the prefered route.

    So you are correct, choose the one you prefer, it also depends whether
you
    want to do load balancing, floating static route, etc...

    Regards.
    Godswill Oletu

    ----- Original Message -----
    From: Munit Singla 
    To: 
    Sent: Thursday, December 19, 2002 11:44 AM
    Subject: Strange problem of route table [7:59533]

    > Hi all,
    > Can anybody tell me when I add static route to my default network it
shows
    > with Administrative distance of 1,whereas we know that static routes to
    our
    > own interface have AD. of zero.
    > Example
    > C 10.77.152.128/25 is directly connected, FastEthernet1/0
    > S* 0.0.0.0/0 [1/0] via 10.77.152.129
    > is directly connected, FastEthernet1/0
    >
    > Its showing here with administrative distance of 1 the route with
default
    > gateway of FastEthernet1/0.
    > Please do clear me where I am wrong
    > Thanx in advance
    > Munit




Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=59573&t=59533
--------------------------------------------------
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