BGP: Applying Distribute, Path, Prefix, and Route Map Filters to a Peer
BGP: Applying Distribute, Path, Prefix, and Route Map Filters to a Peer
Distribute filters, path filters, prefix filters, and route maps can all be applied to a BGP peer configuration for both incoming and outgoing updates. However, you cannot combine distribute filters (ACLs) and prefix filters.
First, enter BGP router mode for the AS. The prompt should look like:
Then use the following commands to apply:
an ACL to filter incoming route updates:
neighbor <ipadd>
a path list to filter incoming route updates:
neighbor <ipadd>
a prefix list to filter incoming route updates:
neighbor <ipadd>
a route map to filter incoming route updates or alter their attributes: neighbor <ipadd>
an ACL to filter outgoing route updates:
neighbor <ipadd>
a path list to filter outgoing route updates:
neighbor <ipadd>
a prefix list to filter outgoing route updates:
neighbor <ipadd>
a route map to filter outgoing route updates or alter their attributes: neighbor <ipadd>
You can also use an AS path list, prefix list or ACL in a route map, instead of applying it directly as a filter.
As mentioned in "Hierarchy of the Different Filters" on page 8, if you configure multiple types of filter, the switch applies the route maps last. This is true in both the incoming and outgoing directions.
Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes Page 35