03-14-2012 07:16 AM - edited 03-04-2019 03:39 PM
All,
I'm playing with rip redistribution through eigrp and I'm trying to use the distance command to change AD for a single route, but it isn't working. I've tried several combinations, and it seems like the only one that works is "distance eigrp 90 119" (I'm playing with external routes overriding internally learned routes). If I try to use "distance 119 10.12.0.1 0.0.0.0 20", it doesn't modify anything. Is the distance eigrp command the only way to modify redistributed routes?
R2(config-router)#do sh run | s router eigrp
router eigrp 100
redistribute rip metric 1 1 1 1 1
network 172.24.0.0 0.0.0.255
distance 119 10.12.0.1 0.0.0.0 20
no auto-summary
R2(config-router)#do sh access-list 20
Standard IP access list 20
10 permit 2.0.0.0, wildcard bits 0.255.255.255
R 2.0.0.0/8 [120/1] via 10.12.0.1, 00:00:13, FastEthernet0/0
Even on R4, the route is the default external eigrp AD:
D EX 2.0.0.0/8 [170/2560025856] via 172.34.0.2, 00:06:03, FastEthernet0/0
Thanks,
John
Solved! Go to Solution.
03-14-2012 07:27 AM
Please check the command reference for this command:
http://www.cisco.com/en/US/docs/ios/12_0/np1/command/reference/1reigrp.html#wp1017590
There is a note stating explicitly that:
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.
Perhaps not what you wanted to hear but I hope this is sufficient as an answer to your question.
regards,
Leo
03-14-2012 08:14 AM
03-14-2012 07:20 AM
Hi ,
As far as I know , you cannot change EXTERNAL eigrp route AD per neigbor.
So the solution will be to higher the rip AD per neighbor. not the case because you are redistributing from rip but you can do this using global AD configuration and change the external AD of all eigrp external routes.
Also the distance ( AD change ) will be LOCAL only.
Dan
03-14-2012 07:27 AM
Please check the command reference for this command:
http://www.cisco.com/en/US/docs/ios/12_0/np1/command/reference/1reigrp.html#wp1017590
There is a note stating explicitly that:
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.
Perhaps not what you wanted to hear but I hope this is sufficient as an answer to your question.
regards,
Leo
03-14-2012 07:34 AM
Thanks Leo...that's what I was seeing, I just wonder why Cisco allows for the command to be shown at all
R2(config-router)#distance ?
<1-255> Administrative distance
eigrp IP-EIGRP distance
R2(config-router)#distance 119 ?
A.B.C.D IP Source address
R2(config-router)#distance 119 10.12.0.1 ?
A.B.C.D Wildcard bits
R2(config-router)#distance 119 10.12.0.1 0.0.0.0 ?
<1-99> IP Standard access list number
<1300-1999> IP Standard expanded access list number
WORD Standard access-list name
I wonder if they were going to support it at one point (or in the future) and didn't take the command out. Either way, this is just a lab in GNS so it's not a big deal but 'good to know' information...
Thanks!
03-14-2012 07:36 AM
Hi Leo ,
As far as I know you can change the AD of certain routes (using acl) per neighbor , provided those are internal eigrp routes.
Your link si somehow old ..IOS 12.0
Regards
Dan
03-14-2012 07:53 AM
Dan-Ciprian Cicioiu wrote:
Hi Leo ,
As far as I know you can change the AD of certain routes (using acl) per neighbor , provided those are internal eigrp routes.
Your link si somehow old ..IOS 12.0
Regards
Dan
Yes, but these are external routes. However, I checked the 12.3 version as well:
http://www.cisco.com/en/US/docs/ios/12_3/iproute/command/reference/ip2_c1g.html#wp1039273
(I hope the link works for everyone because I had to take out the section partner/ )
Here they removed the note but it is still not possible to set the AD using a route map or something like that.
regards,
Leo
03-14-2012 08:04 AM
Hi Leo ,
Yes, I agree with the external eigrp routes. My misunderstanding was regarding your previous post :
"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."
Anyway this is taken from "distance eigrp" command reference so it does not apply in this case.
Using "distance
Regards
Dan
03-14-2012 08:12 AM
It looks that way too. I can create an internal route and advertise via eigrp and change that AD by source, but I can't change the externals. You can do this in ospf though (for externals).
03-14-2012 08:14 AM
Yes , this is a EIGRP specific behavior.
Regards
Dan
03-14-2012 08:15 AM
5 points to you Dan! Thanks...now I can quit beating my head against the wall...
03-14-2012 08:17 AM
My pleasure
Regards
Dan
03-14-2012 08:26 AM
Dan,
Good one! I constantly seem to forget about this peculiarity in EIGRP...
These subtle differences in diverse routing protocols and their implementations can drive you crazy... or make you a CCIE
Best regards,
Peter
03-14-2012 08:43 AM
Peter...believe it or not, that's what I'm studying for. My written is this weekend (If I don't reschedule!)
03-14-2012 08:49 AM
John,
Wow, then I'm pulling for you! Absolutely! But don't worry - you'll beat it.
Best regards,
Peter
03-14-2012 09:01 AM
Thanks! I need all the support I can get
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide