BGP Prefix List Filtering

Prefix list filtering allows filtering of routes on a specific neighbour basis by using a prefix list.

To create a prefix list, use the command ip prefix-list then apply it to a neighbour using the neighbour x.x.x.x prefix-list y followed by in or out. In will filter inbound, and out will filter outbound.

! Allow routes between - with a subnet mask of
ip prefix-list FILTER-IN seq 10 permit ge 24

router bgp 65300
 address-family ipv4 unicast
 ! Filter inbound routes according to prefix list
 neighbor prefix-list FILTER-IN in



, ,




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.