Filtering BGP Advertisements Using Distribute Lists

You can use the neighbor distribute-list command to filter routes to selected prefixes as specified in an access list. Distribute lists are applied only to external peers.

You can use the in keyword to apply the list to inbound routes (inbound policy) and out keyword to apply the list to outbound routes (outbound policy).

Besides using distribute lists to filter BGP advertisements, you can perform one of the following actions:

To filter routes to selected prefixes as specified in an access list:

host1:vr1(config-router)#neighbor group1 distribute-list list1 in

Use the no version to disassociate the access list from a neighbor.

Related Documentation