.. _example_protocols_bgp_neighbor_prefix-list: ########### Prefix-List ########### This scenario demonstrates how to configure prefix-list filtering for BGP neighbors. A prefix-list defines which IP prefixes can be advertised to or received from a BGP neighbor based on IP prefix matching. Unlike route-maps which can match many attributes (AS-path, communities, etc.), prefix-lists are optimized for simple and efficient IP prefix filtering. In this test, DUT0 is configured with a prefix-list that only permits advertisement of 1.1.1.0/24, preventing the directly connected network 10.215.200.0/24 from being advertised to DUT1. This is useful for controlling which routes are shared with BGP peers. ************************* Test BGP with prefix-list ************************* Description =========== Test to verify that prefix-list filtering controls which routes are advertised to BGP neighbors. DUT0 exports only routes matching prefix-list pl1 (1.1.1.0/24). DUT1 should receive route 1.1.1.0/24 but NOT the connected network 10.215.200.0/24. Scenario ======== .. include:: prefix-list/testbgpwithprefix-list .. raw:: html