Re: distance

From: Pamela Forsyth (pforsyth@xxxxxxxxx)
Date: Fri Aug 31 2001 - 08:46:46 GMT-3


   
The address and mask in the "distance" statement represents the "routing
information source," i.e., for OSPF it would be the router ID of the router
generating that LSA. For RIP, IGRP, EIGRP this would represent the
interface address of the neighbor router who was advertising the
route. Have a look at your "show ip protocols" display for OSPF, and you
will see all the routing information sources listed, with a "distance"
column that nobody ever seems to notice. This means that you could specify
a different distance for each advertising router (not recommended). ;-)

So you would use that address and mask to specify changing distance for a
particular router's advertised routes. Oh, and it's an INVERSE mask, the
same as the one in access lists. That's why your "show run" output ignored
the first three octets of your address.

To change distance for a particular prefix (route) learned via OSPF
regardless of which router is advertising it, you would need to build an
access list statement specifying (permitting) that prefix, then refer to
the access list by number in your "distance" statement. If you don't care
which router is advertising, use 0.0.0.0 255.255.255.255 for your address
and mask in the "distance" statement.

The 12.x command reference breaks down the syntax for you really well. Pay
particular attention to what the various arguments represent, because this
is what will kill you in the lab.

Pamela

At 04:56 PM 8/31/01 +0800, you wrote:
>Hi,
>
>How to set the distance to something higher for a specific learned network
>and at the same time remain the default admin distance for the rest of the
>other learn routes.
>
>Trying to do something like below, doesn't seems to change the distance,
>and what I keyed in reflect diffrently on the config file.
>
>what I typed was,
>"distance 150 170.10.2.0 255.255.255.0"
>
>But display as follows:
>
>router ospf 1
>redistribute rip metric 20 subnets route-map rip2ospf
>network 170.10.7.0 0.0.0.15 area 0
>network 170.10.8.0 0.0.0.255 area 0
>distance 150 0.0.0.0 255.255.255.0
>
>Please help.
>
>Thanks
>Yonger
**Please read:http://www.groupstudy.com/list/posting.html



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:32:01 GMT-3