Re: distance command

From: Carlos (cchorao@xtra.co.nz)
Date: Wed Jan 01 2003 - 04:45:19 GMT-3


Tx Sage ,
I will test your findings on my config.

Carlos
Telecom New Zealand - Advanced Solutions Group : Network Design and Security
----- Original Message -----
From: "Sage Vadi" <sagevadi@yahoo.co.uk>
To: "Carlos" <cchorao@xtra.co.nz>; <ccielab@groupstudy.com>
Sent: Wednesday, January 01, 2003 2:28 PM
Subject: Re: distance command

> Carlos,
>
> Upon further testing I have found the following to be
> true when using 12.1(5)T9.
>
> 1# distance 23 0.0.0.0 255.255.255.255 < by itself
> works! But gets set on all routes (obviously).
>
> 2# distance 23 0.0.0.0 255.255.255.255 1 < by from
> route address (sh ip route) based on ACL does not!
> access-list 1 permit 131.10.1.4 < ACL used, this is
> the router from which the routing updates are sourced
>
> 3# distance 23 0.0.0.0 255.255.255.255 14 < by
> networks worked!
> access-list 14 permit 192.168.1.1
> access-list 14 permit 133.10.3.1
> access-list 14 permit 133.10.2.64 0.0.0.63
>
> 4# distance 23 0.0.0.0 255.255.255.255 9 < by routerID
> does not!
> access-list 9 permit 4.4.4.4
>
> rgds,
> Sage
>
> --- Carlos <cchorao@xtra.co.nz> wrote: > Sage , my
> experience with the command is as follows
> > :
> >
> > the syntax for the distance command is " distance
> > <admin dist> <source-ip>
> > < source-ip mask> <acl>
> >
> > Now the command will only alter the admin distance
> > for routes originated
> > from <source-ip> where source-ip is the router-id of
> > the router originating
> > the routes.
> > The <source-ip mask> operates like a wildcard mask.
> >
> > So in your example , assume the highest addressed
> > loopback address is
> > 200.0.0.1/32 and you have not expressly configured
> > router-id then to alter
> > admin distance of all routes originated form R1 to
> > 28 the command is
> > "distance 28 200.0.0.1 0.0.0.0 ".
> >
> > The command only modifies the distance of routes
> > that originate form R1 i.e
> > introduced into ospf via network,redis etc, on R1
> > and not routes learnt from
> > other ospf routers;
> >
> > To achieve the results that you want , you need to
> > id the router-id of R1
> > and use this as the source-ip . The effect of your
> > command "distance 200
> > 0.0.0.1 255.255.255.252 " is to alter the distance
> > of any route originated
> > by a router with a router id with a binary 1 as
> > its 32nd bit. ( I am
> > surprised that admin distance of routes from
> > 116.16.26.2 are also affected.
> > Maybe 116.16.26.2 is not the router-id for that
> > router ???) . I would
> > appreciate you feedback on this anomaly.
> >
> >
> >
> > What do you think ?
> >
> >
> > Carlos
> > Telecom New Zealand - Advanced Solutions Group :
> > Network Design and Security
> >
> > ----- Original Message -----
> > From: "Sage Vadi" <sagevadi@yahoo.co.uk>
> > To: <ccielab@groupstudy.com>
> > Sent: Wednesday, December 25, 2002 4:51 PM
> > Subject: OSPF: distance command
> >
> >
> > > Merry Christmas and Happy New Year.
> > >
> > > Topology:
> > >
> > > R1-----------------------------------R2
> > > 116.16.16.1/30 116.16.16.2/30
> > >
> > > Problem Description:
> > >
> > > R2 learns OSPF routes from R1. Using the distance
> > > command, I configure the following in R2:
> > >
> > > * distance 200 116.16.16.1 255.255.255.252
> > > which OSPF converts into:
> > > * distance 200 0.0.0.1 255.255.255.252
> > >
> > > I don't have a problem if OSPF converts it.
> > > But here is what happens on R2's route table:
> > >
> > > O IA 116.16.13.0/25 [200/74] via 116.16.16.1
> > > O E1 190.190.0.0 [200/158] via 116.16.16.1
> > > [200/158] via 116.16.26.2 **
> > > O E2 172.16.0.0 [200/20] via 116.16.16.1
> > > [200/20] via 116.16.26.2 **
> > > O E2 110.110.0.0 [200/20] via 116.16.16.1
> > >
> > > NB: ** OSPF routes learnt from 116.16.26.2 also
> > > increased to 200. Q) Why does that occur? To be
> > short
> > > and concise I have not drawn the other routes to
> > which
> > > R2 is connected to.
> > >
> > > My aim is to increase all the routes learnt from
> > > R1/116.16.16.1 to 200. Ideas?
> > >
> > > rgds,
> > > Sage
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Everything you'll ever need on one web page
> > > from News and Sport to Email and Music Charts
> > > http://uk.my.yahoo.com
> > > .
> > >
> >
> __________________________________________________________________
> > > To unsubscribe from the CCIELAB list, send a
> > message to
> > > majordomo@groupstudy.com with the body containing:
> > > unsubscribe ccielab
> > >
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
.



This archive was generated by hypermail 2.1.4 : Sat Feb 01 2003 - 07:33:38 GMT-3