Access-list for a redistribution

Posted on 2011-04-21
Last Modified: 2012-05-11
just wondering if the following access-list for a route-map to be used for ospf redistribution will work?  
I am trying to deny just a host within a network and redistribute all IPs on that network.  The access-list and route-map
is below:

router ospf 10
 redistribute static metric 1 metric-type 1 subnets route-map REDISTRIBUTE-STATIC

route-map REDISTRIBUTE-STATIC permit 10
 match ip address 30
 set metric 1
access-list 30 deny host
access-list 30 permit
access-list 30 permit
access-list 30 deny any log

 Thanks much,
Question by:ccie13026
    LVL 18

    Accepted Solution

    I haven't tried this but my guess is it isn't going to work.  But as usual it really boils down to "what problem are you trying to solve."  Are you trying to prevent traffic from reaching the host?  If so, obviously an ACL would work, but that's not very scaleable.  You might want to play around with black-hole filtering.  Basically set up a route-map, match on an ACL and set the next-hop to null0.  

    Author Closing Comment

    This was something to try and not a complete solution.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Please see preceding article here: Figure 1 After Root Bridge has been elected, then what?..... Let's start by defining a Root Port in la…
    SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
    Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now