RE: EIGRP distance for certain routers.

From: Brian McGahan (bmcgahan@internetworkexpert.com)
Date: Mon Sep 01 2003 - 12:28:58 GMT-3


        You can change the distance of EIGRP on a per prefix basis, but
only for internal EIGRP routes.

        The distance syntax is as follows:

Distance [distance] [source] [source_wildcard] [acl]

Where [distance] = desired administrative distance
[source] = originating router (from w.x.y.z in the sh ip route [prefix]
output)
[source_wildcard] = wildcard mask to match [source]
[acl] = access-list that matches prefixes in question

        Take the following output:

Rack1R2#sh ip route eigrp
     220.20.1.0/26 is subnetted, 1 subnets
D EX 220.20.1.64 [170/2560512256] via 144.1.32.3, 08:51:38,
Serial0/0.32
D 3.0.0.0/8 [90/2297856] via 144.1.32.3, 00:05:52, Serial0/0.32
D 4.0.0.0/8 [90/2297856] via 144.1.32.3, 00:00:03, Serial0/0.32
     144.1.0.0/24 is subnetted, 5 subnets
D EX 144.1.23.0 [170/2560512256] via 144.1.32.3, 08:51:38,
Serial0/0.32
D EX 144.1.13.0 [170/2560512256] via 144.1.32.3, 08:51:38,
Serial0/0.32
D EX 144.1.15.0 [170/2560512256] via 144.1.32.3, 08:51:38,
Serial0/0.32Rack1R2#sh ip route 3.0.0.0
Routing entry for 3.0.0.0/8
  Known via "eigrp 6", distance 90, metric 2297856, type internal
  Redistributing via eigrp 6
  Last update from 144.1.32.3 on Serial0/0.32, 00:04:40 ago
  Routing Descriptor Blocks:
  * 144.1.32.3, from 144.1.32.3, 00:04:40 ago, via Serial0/0.32
      Route metric is 2297856, traffic share count is 1
      Total delay is 25000 microseconds, minimum bandwidth is 1544 Kbit
      Reliability 255/255, minimum MTU 1500 bytes
      Loading 1/255, Hops 1

        3.0.0.0 is learned via EIGRP from the neighbor 144.1.32.3. The
route is internal with a default AD of 90. Suppose we want to change
the distance of this prefix to 100:

Rack1R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Rack1R2(config)#access-list 1 permit 3.0.0.0
Rack1R2(config)#router eigrp 6
Rack1R2(config-router)#distance 100 144.1.32.3 0.0.0.0 1
Rack1R2(config-router)#end
Rack1R2#clear ip route 3.0.0.0
Rack1R2#sh ip route eigrp
     220.20.1.0/26 is subnetted, 1 subnets
D EX 220.20.1.64 [170/2560512256] via 144.1.32.3, 08:52:51,
Serial0/0.32
D 3.0.0.0/8 [100/2297856] via 144.1.32.3, 00:00:02, Serial0/0.32
D 4.0.0.0/8 [90/2297856] via 144.1.32.3, 00:01:16, Serial0/0.32
     144.1.0.0/24 is subnetted, 5 subnets
D EX 144.1.23.0 [170/2560512256] via 144.1.32.3, 08:52:51,
Serial0/0.32
D EX 144.1.13.0 [170/2560512256] via 144.1.32.3, 08:52:51,
Serial0/0.32
D EX 144.1.15.0 [170/2560512256] via 144.1.32.3, 08:52:51,
Serial0/0.32

        As you can see from the above output, the prefix 3.0.0.0/8 now
has a distance of 100, and all other prefixes are left unaffected. Now
let's try to change the distance of 220.20.1.64, an external EIGRP
prefix, to 101.

Rack1R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Rack1R2(config)#access-list 2 permit 220.20.1.64
Rack1R2(config)#router eigrp 6
Rack1R2(config-router)#distance 101 0.0.0.0 255.255.255.255 2
Rack1R2(config-router)#end
Rack1R2#clear ip route 220.20.1.64
Rack1R2#sh ip route eigrp
     220.20.1.0/26 is subnetted, 1 subnets
D EX 220.20.1.64 [170/2560512256] via 144.1.32.3, 00:00:01,
Serial0/0.32
D 3.0.0.0/8 [100/2297856] via 144.1.32.3, 00:00:47, Serial0/0.32
D 4.0.0.0/8 [90/2297856] via 144.1.32.3, 00:00:47, Serial0/0.32
     144.1.0.0/24 is subnetted, 5 subnets
D EX 144.1.23.0 [170/2560512256] via 144.1.32.3, 00:00:47,
Serial0/0.32
D EX 144.1.13.0 [170/2560512256] via 144.1.32.3, 00:00:47,
Serial0/0.32
D EX 144.1.15.0 [170/2560512256] via 144.1.32.3, 00:00:47,
Serial0/0.32

        As you can see from the above output, the prefix is not
affected. The only protocol that you cannot change the distance on a
per prefix basis is external EIGRP.

HTH,

Brian McGahan, CCIE #8593
bmcgahan@internetworkexpert.com

Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-334-8987
Direct: 708-362-1418 (Outside the US and Canada)

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Jonathan V Hays
Sent: Saturday, August 30, 2003 3:13 PM
To: navaid@rogers.com; ccielab@groupstudy.com
Subject: RE: EIGRP distance for certain routers.

Unfortunately there are number of generic IOS routing protocol commands
that will appear to accept user input but not actually do anything.
Under EIGRP the "distance" command is one of them.

If you actually enter the command below to set the distance to 1 for
EIGRP routes generated by 10.7.1.0/24 network routers, you will see that
it does nothing. The AD will not change in your routing table.

To make a change you will need "distance eigrp" which allows you to
change the internal and external AD for all EIGRP routes, regardless of
source.

HTH,

Jonathan

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
navaid@rogers.com
Sent: Saturday, August 30, 2003 11:34 AM
To: ccielab@groupstudy.com
Subject: EIGRP distance for certain routers.

Hi all,

According to documentation CD:
You cannot set the administrative distance in EIGRP against certain
routes or sources, as you can with other protocols. The command does not
work this way with EIGRP.
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/
fiprrp_r/1rfeigrp.htm#1017590

Then what is purpose of following command:
R6(config-router)#distance ?
  <1-255> Administrative distance
  eigrp IP-EIGRP distance

R6(config-router)#distance 1 ?
  A.B.C.D IP Source address

R6(config-router)#distance 1 10.7.1.0 ?
  A.B.C.D Wildcard bits

R6(config-router)#distance 1 10.7.1.0 0.0.0.255 ?
  <1-99> IP Standard access list number
  <1300-1999> IP Standard expanded access list number
  WORD Standard access-list name
  <cr>

R6(config-router)#distance 1 10.7.1.0 0.0.0.255

thanks,

Naviad Shamsee

>
> From: "Georg Pauwen" <pauwen@hotmail.com>
> Date: 2003/08/30 Sat AM 09:53:56 EDT
> To: navaid@rogers.com, ccielab@groupstudy.com
> Subject: Re: ospf area range
>
> Hello,
>
> can you post your configs ? I cannot reproduce the problem, I either
get
> only the /26 IA route (without area range) or I get only the /24 IA
route
> (with area range).
>
> Regards,
>
> Georg
>
>
> >From: navaid@rogers.com
> >Reply-To: navaid@rogers.com
> >To: ccielab@groupstudy.com
> >Subject: ospf area range
> >Date: Fri, 29 Aug 2003 12:56:16 -0400
> >
> >Question: I am using area range command on R2 to summarize
172.29.12.0/26
> >as 24-bit mask. Why I am seeing more specific route on R5 ?
> >
> >R1----(area 12)----R2----(area0)----R5
> > 172.29.12.0/26 172.29.100.0/29
> >
> >On R2 using following command:
> >area 12 range 172.29.12.0 255.255.255.0
> >
> >On R1 I am seeing following two routes:
> >O IA 172.29.12.0/24 [110/20] via 172.29.12.2, 00:04:20,
Ethernet0/0
> >C 172.29.12.0/26 is directly connected, Ethernet0/0
> >
> >On R5 I am seeing following two routes:
> >O IA 172.29.12.0/26 [110/84] via 172.29.100.2, 00:05:40, Serial0
> >O IA 172.29.12.0/24 [110/74] via 172.29.100.2, 00:05:40, Serial0
> >
> >
>
>_______________________________________________________________________
> >You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> >
> >Subscription information may be found at:
> >http://www.groupstudy.com/list/CCIELab.html
>
> _________________________________________________________________
> MSN Messenger : discutez en direct avec vos amis !
> http://www.msn.fr/msger/default.asp
>
>

1



This archive was generated by hypermail 2.1.4 : Wed Oct 01 2003 - 07:24:21 GMT-3