I am redistributing OSPF routes inside a network, through BGP. However I don't want to redistribute all the advertised routes from OSPF (specificaly the private networks) to the outside of the AS. How can I prevent some routes from being redistributed in BGP, using route-maps/access-lists?

1 Answer 1


Create a prefix list for the routes you don't want to allow. Then create a route-map and deny that prefix list, but permit everything else. Use that route-map to filter the routes redistributed into BGP.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.