cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
930
Views
20
Helpful
19
Replies

Changing redistributed AD

John Blakley
VIP Alumni
VIP Alumni

All,

I'm injecting ospf routes into eigrp. The route on the other side shows:

D EX 6.6.6.6 [170/1662976] via 192.168.1.1, 00:00:35, FastEthernet0/0

I want to change the AD from 170 to something else. On the other router, I'm running eigrp and it's redistributing. On the router above, I only have eigrp. I can change the AD in an actual eigrp network:

RTR1:

router eigrp 100

network 1.1.1.1 0.0.0.0

RTR2:

distance 89 192.168.1.1 0.0.0.0 15

access-list 15 permit host 1.1.1.1

If I add 6.6.6.6 to the acl above, it doesn't get changed, but stays at 170. The 6.6.6.6 is a route that's advertised from ospf into eigrp on the other router. Is there a way that I can change this AD? I'm showing hits on the acl, so I know it's getting there.

Thanks,

John

HTH, John *** Please rate all useful posts ***
19 Replies 19

lamav
Level 8
Level 8

John:

Use the distance 89 eigrp form of the command.

Right now, the 89 is defaulting to just internal distance.

HTH

Victor

USING CORRECT FORM

Router#sh run | be router eigrp 10

router eigrp 10

network 192.168.5.1 0.0.0.0

distance eigrp 90 22

no auto-summary

!

no ip http server

no ip http secure-server

ip classless

!

access-list 10 permit 99.99.99.99

access-list 10 permit 100.100.100.100

!

!

Routing entry for 100.100.100.100/32

Known via "eigrp 10", distance 22, metric 28160, type external

Redistributing via eigrp 10

--output omitted--

============================================================

Notice what happens when I dont use that form of the command and just default to "distance 22".

Router#sh run | be router eigrp 10

router eigrp 10

network 192.168.5.1 0.0.0.0

distance 22 192.168.5.2 0.0.0.0 10

no auto-summary

!

no ip http server

no ip http secure-server

ip classless

!

access-list 10 permit 99.99.99.99

access-list 10 permit 100.100.100.100

!

!

!

Router#

Router#

Router#sh ip ro 100.100.100.100

Routing entry for 100.100.100.100/32

Known via "eigrp 10", distance 170, metric 28160, type external

Redistributing via eigrp 10

--output omitted--

HTH

Victor

Victor,

Router#sh run | be router eigrp 10

router eigrp 10

network 192.168.5.1 0.0.0.0

distance 22 192.168.5.2 0.0.0.0 10

no auto-summary

!

no ip http server

no ip http secure-server

ip classless

!

access-list 10 permit 99.99.99.99

access-list 10 permit 100.100.100.100

!

!

!

Router#

Router#

Router#sh ip ro 100.100.100.100

Routing entry for 100.100.100.100/32

Known via "eigrp 10", distance 170, metric 28160, type external

Redistributing via eigrp 10

--output omitted--

The bolded and italicized areas shows me that yours doesn't take either. You specify the network in your acl, but the distance doesn't affect the route. Maybe I'm not going crazy?

Thanks,

John

HTH, John *** Please rate all useful posts ***

USING CORRECT FORM

Router#sh run | be router eigrp 10

router eigrp 10

network 192.168.5.1 0.0.0.0

distance eigrp 90 22

no auto-summary

!

no ip http server

no ip http secure-server

ip classless

!

access-list 10 permit 99.99.99.99

access-list 10 permit 100.100.100.100

!

!

Routing entry for 100.100.100.100/32

Known via "eigrp 10", distance 22, metric 28160, type external

Redistributing via eigrp 10

--output omitted--

============================================================

Notice what happens when I dont use that form of the command and just default to "distance 22".

Router#sh run | be router eigrp 10

router eigrp 10

network 192.168.5.1 0.0.0.0

distance 22 192.168.5.2 0.0.0.0 10

no auto-summary

!

no ip http server

no ip http secure-server

ip classless

!

access-list 10 permit 99.99.99.99

access-list 10 permit 100.100.100.100

!

!

!

Router#

Router#

Router#sh ip ro 100.100.100.100

Routing entry for 100.100.100.100/32

Known via "eigrp 10", distance 170, metric 28160, type external

Redistributing via eigrp 10

--output omitted--

HTH

Victor

Victor,

The command that you're showing may be version-centric. I don't have that option.

I can set all eigrp internal/external distances by:

distance eigrp

or I can specify the source:

distance 89 acl

The acl option allows for me to specify networks, but it seems to only affect internal routes and not external.

Thanks,

John

HTH, John *** Please rate all useful posts ***

Hello, Earth to John, Come in John...Houston...LOL

"I can set all eigrp internal/external distances by:

distance eigrp "

That is exactly the command I recommend using because if you dont...

"The acl option allows for me to specify networks, but it seems to only affect internal routes and not external."

CORRECTION START

FROM FIRST MESSAGE:

the correct command is "distance eigrp "

Remove the "89"

See my example.

CORRECTION END

Victor

LOL! Listen.... :)

Okay, so say that I want two paths, both external routes from eigrp, that I want to have different ADs? Is that not possible?

HTH, John *** Please rate all useful posts ***

First of all, before we go any further, do you see the difference in the 2 versions of the command and the different results?

See my example closely.

When I use the ACL form of the command, it changes only internal routes.

When I use the option that allows me to change internal and external with no acl, it allows me to change the external, too.

Victor

I see the differences. I just wanted to know why I was able to set internal only and not external. It's always good to know :)

Thanks Victor!

John

HTH, John *** Please rate all useful posts ***

You're welcome!

Thanks for the rating.

And by the way, you know when I get sarcastic Im just teasing you. You gotta have SOME fun on this thing! :-)

If not, you start acting like...Jon...LOLOLOL

Victor

It's quite alright :) I don't offend easily! And I agree, there is a lot of "seriousness" to this board.

John

HTH, John *** Please rate all useful posts ***

I was hoping to smoke Jon out with that last comment...he must have gone to bed...lol

John,

I'm afraid that you can't change AD of EIGRP external routes with a "distance" command by using ACL.

Yes you can change it by using "distance eigrp ".

Edit: The latter command will affect the whole D*EX.

HTH,

Toshi

Toshi, I just said that 1,451 times....maybe 1,452, actually. :-)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card