RE: the distance command

From: ccie2be (ccie2be@nyc.rr.com)
Date: Mon May 16 2005 - 11:17:25 GMT-3


Hi guys,

Just a couple general observations regarding the distance command.

1. The configured or default distance is local to the router on which it is
configured. It is never advertised to any other routers.

2. For some routing protocols (eigrp, ospf, BGP), 2 versions of the
distance command are available - 1 version specific to that routing protocol
and the generic version that's always available.

3. For routing protocols that make a distinction between different types of
routes (internal, external, etc), there's usually a protocol specific
version of the command. For routing protocols (rip, for example) that make
don't make such a distinction, there isn't.

4. I like to think of the routing protocol specific version of the distance
as the wholesale version of the command because this version allows the AD
to be set based on type of route (internal, external, inter-area, etc.).
With this version, you don't care about which router the route came from or
any specific routes.

5. With the generic version of the command, you have to specify which
neighbors and which routes are to be affected by the command. When you use
this version of the command, you must know how to specify the neighbors -
sometimes you use the ip address from which the routes were learned -
sometimes you use the router-id of the neighbor.

HTH, Tim

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of mani
poopal
Sent: Monday, May 16, 2005 7:15 AM
To: Thomwin Chen; 22Cent@gmail.com; Group Study
Subject: Re: EIGRP distance applied to neighbor

Hi Chen,
 
Your are right eigrp has 2 variance of defining admin distance in eigrp.
(1.)distance eigrp xxx 90 170(internal and external)
(2.)ditance 110
Try both in the first command you can change the distance of internal eigrp
and external eigrp but not for any specific neighbor and cannot influence by
distnace. If you want to manipulate ad per nighbor for specific routes you
have to use first method. Try both commands and see.
 
Mani

Thomwin Chen <thomwin_chen@yahoo.com> wrote:
Hi Mani,
 
the distance command in EIGRP has the format like this :
   distance eigrp internal-distance external-distance
how can this command can be use to influence the distance of a specific
route from a specific neighbor?
 
typically, I gonna use distribute-list to filter specific route in EIGRP.
http://www.cisco.com/en/US/tech/tk365/technologies_q_and_a_item09186a008012d
ac4.shtml#thirteen
 
regards

mani poopal <mani_ccie@yahoo.com> wrote:
Hi Ray,

You cannot influence the distance on a neighbor by configuring your router.
But you can go to that neighbor router and change the distance. AD only
affecting locally on a router. For example you can configure router1(say
10.10.10.1) to have AD of 111 for 200.200.200.0/24 network received from
router2(10.10.10.2).
configuration:
==========================
ROUTER1:
access-list 11 permit 200.200.200.0
router eigrp xxx
distance 111 10.10.10.2 0.0.0.0 11
distance xxx neighbor ip wildcardmask access-list (In ospf this neibor ip
must be router-id of the router)
==========================
The above commands makes AD of 200.200.200.0 network leaned from 10.10.10.2
neighbor to appear in R1 routing table as 111, so if the same network is
leared by ospf too(AD= 110), The router R1 perfers ospf routes over eigrp
routes.

thanks

Mani

"22Cent@gmail.com" <22cent@gmail.com> wrote:
Hello Group,
Can anyone confirm if the eigrp distance command can be applied to a
specific neighbor using an access-list to change one advertised
network? Any help would be great.

TIA
Ray



This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:11:58 GMT-3