Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Changing redistributed AD

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
Blue

Re: Changing redistributed AD

John:

Use the distance 89 eigrp form of the command.

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

HTH

Victor

Blue

Re: Changing redistributed AD

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

Re: Changing redistributed AD

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 ***
Blue

Re: Changing redistributed AD

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

Re: Changing redistributed AD

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 ***
Blue

Re: Changing redistributed AD

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

Re: Changing redistributed AD

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 ***
Blue

Re: Changing redistributed AD

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

Re: Changing redistributed AD

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 ***
Blue

Re: Changing redistributed AD

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

Re: Changing redistributed AD

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 ***
Blue

Re: Changing redistributed AD

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

Re: Changing redistributed AD

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

Blue

Re: Changing redistributed AD

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

Blue

Re: Changing redistributed AD

John, all kidding aside. Do you have any other question?

It got a little confusing with all the posts going back and forth at lightening speed...lol

Victor

Re: Changing redistributed AD

Victor,

That's fine. I used to get confused with this kind of thing before.

At that time I thought that "what the hell is going on? Why I can't change, Okay I can't change!" (grin)

Toshi

Blue

Re: Changing redistributed AD

Of course, Im just teasing John.

he and I go back a long time...we have a lot in common, too...

My father and his father were....fathers...:-)

Re: Changing redistributed AD

LOL!!!!!!!!

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

Re: Changing redistributed AD

Victor,

That's why I have been trying to make a serious forum to be fun. Obviously I can't! heheheh...

BTW,How are you going? Victor

Edit: Time to use the rating system for you two.

Toshi

179
Views
20
Helpful
19
Replies