cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
576
Views
0
Helpful
9
Replies

Redistribute eigrp

david.sua
Level 1
Level 1

Hi all!

Somebody know if it's possible exclude a host/net from eigrp?

for example, i want to redistribute static routes.

I have this static routes:

ip route 192.168.0.0 255.255.255.0 s1/0

ip route 192.168.1.0 255.255.255.0 s1/1

with "redistribute static" command i notify all my static routes but i don't want to notify 192.168.1.0/24.

Somebody can help me?

Regards

1 Accepted Solution

Accepted Solutions

Harold Ritter
Cisco Employee
Cisco Employee

try redistribute static route-map xyz

route-map xyz permit 10

match ip address 1

!

access-list 1 permit 192.168.0.0

access-list 1 deny any

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

9 Replies 9

Harold Ritter
Cisco Employee
Cisco Employee

try redistribute static route-map xyz

route-map xyz permit 10

match ip address 1

!

access-list 1 permit 192.168.0.0

access-list 1 deny any

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

This work great!

thank you.

Is there any need for the deny statement in the access-list

Hi,

I don't think, may be Harold can answer this.

And please never forget the metrics when doing redistribution.

BR,

Mohammed Mahmoud.

There's no need for deny statement at the end as there's a implicit deny to the access list. The one thing to gain with an explict deny at the end of an access list is it will show you the # of hits that didn't match any of the above rules.

HTH

Sundar

Sundar,

You are perfectly right about the deny statement not adding anything. I just like to use it for clarity. This way even a novice looking at the config don't have to ask themselve what the default is ;-)

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

I was looking on some of our static routes that were redistributed through EIGRP and we didn't define the metric. EIGRP used the metric of the outbound interface where the static route is pointed. The route was redistributed even without metric defined. HTH.

you are correct.

It is not mandatory to use the metric while redistributing static or connected routes in EIGRP

Narayan

joshua.walton
Level 1
Level 1

Another thing to note is if you create a route-map with a permit statement do not configure another sequence, there is also an explicit deny any at the end.

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco