Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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:

    • Use AS-path filters with the ip as-path access-list and the neighbor filter-list commands.
    • Use route map filters with the route-map and the neighbor route-map commands.

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

    • Issue the neighbor distribute-list command in Router Configuration mode.
    host1:vr1(config-router)#neighbor group1 distribute-list list1 in

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

    Published: 2014-08-12