.. _example_protocols_bgp_network_network: ####### Network ####### .. sidebar:: Contents .. contents:: :depth: 2 :local: Scenario to verify BGP **network** command functionality, including **basic** network advertisement and **route-map** filtered advertisement, for both iBGP and eBGP sessions. The ``network`` command is the primary method for injecting routes into BGP. It tells the router to advertise a specific prefix to BGP neighbors, provided the route exists in the routing table (e.g., via a static blackhole route). - **Basic network**: Announces the specified prefix to all neighbors. DUT1 should learn the network and install it in its routing table. - **Network with route-map**: Applies a route-map filter to the network command. Only networks matching the route-map criteria (via prefix-list) are announced. In this test, three networks are configured but only one matches the filter, so DUT1 learns only that network while the others are filtered out. Each variant is tested with both iBGP (same AS) and eBGP (different AS) sessions. **************** Test BGP Network **************** Description =========== Test BGP network command: basic (DUT1 learns the announced network) and route-map (only matching networks are advertised, others filtered out). Each variant tested with iBGP and eBGP. Scenario ======== .. include:: network/testbgpnetwork .. raw:: html