05-11-2007 07:59 AM - edited 03-03-2019 04:56 PM
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
Solved! Go to Solution.
05-11-2007 08:23 AM
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,
05-11-2007 08:23 AM
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,
05-11-2007 08:39 AM
This work great!
thank you.
05-11-2007 11:21 AM
Is there any need for the deny statement in the access-list
05-11-2007 01:17 PM
Hi,
I don't think, may be Harold can answer this.
And please never forget the metrics when doing redistribution.
BR,
Mohammed Mahmoud.
05-11-2007 01:26 PM
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
05-11-2007 01:33 PM
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,
05-11-2007 02:08 PM
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.
05-11-2007 02:12 PM
you are correct.
It is not mandatory to use the metric while redistributing static or connected routes in EIGRP
Narayan
05-12-2007 05:14 AM
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.
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: