Re: distance command

From: Carlos (cchorao@xtra.co.nz)
Date: Sun Dec 29 2002 - 21:15:38 GMT-3


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
> .
.



This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:54 GMT-3