Redistribute eigrp

Answered Question
May 11th, 2007
User Badges:

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

Correct Answer by Harold Ritter about 9 years 11 months ago

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,

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Harold Ritter Fri, 05/11/2007 - 08:23
User Badges:
  • 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,

royalblues Fri, 05/11/2007 - 11:21
User Badges:
  • Green, 3000 points or more

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

mohammedmahmoud Fri, 05/11/2007 - 13:17
User Badges:
  • Green, 3000 points or more


Hi,


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


And please never forget the metrics when doing redistribution.



BR,

Mohammed Mahmoud.

sundar.palaniappan Fri, 05/11/2007 - 13:26
User Badges:
  • Green, 3000 points or more

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

Harold Ritter Fri, 05/11/2007 - 13:33
User Badges:
  • Cisco Employee,

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,

John Patrick Lopez Fri, 05/11/2007 - 14:08
User Badges:

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.

royalblues Fri, 05/11/2007 - 14:12
User Badges:
  • Green, 3000 points or more

you are correct.


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


Narayan

Actions

This Discussion