11-26-2008 10:17 PM - edited 03-06-2019 02:42 AM
Hi,
Can someone explain what is the usage of the 'static' command
when used in conjunction with the distribute-list ?
I cant' find any explanation abt. this commnad on the command lookup tool.
If you look at the example below, does this mean that it only
denies any static route that has been defined in the ACL ? Meaning it will deny the 1st route and allow the 2nd and 3rd static route through ?
distribute-list 77 out static
!
!
access-list 77 deny 10.0.0.2
access-list 77 deny 10.0.0.3
access-list 77 permit any
!
!
ip route 10.0.0.2 255.255.255.248 192.168.0.1
ip route 10.0.0.4 255.255.255.248 134.251.72.183
ip route 10.0.0.5 255.255.255.255 134.251.72.184
Thank you,
- InternetB -
11-27-2008 03:40 AM
Yes that would be my interpretation, 10.0.0.2 will not be redistributed into the dynamic routing protocol but the other 2 would . Not sure why 10.0.0.3 is in there if its not in your static list , probably something that never got cleaned out .
11-27-2008 06:21 PM
Thanks Glen. The reason being is that the IPs 10.0.0.2 and 10.0.0.3 are routers that are going to the WAN and
in the future if any static routes
are added for 10.0.0.3. it would not cause any loops.
- InternetB -
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide