.. _example_protocols_bgp_redistribute_redistribute: ############ Redistribute ############ .. sidebar:: Contents .. contents:: :depth: 2 :local: Scenario to verify BGP **redistribute connected** and **redistribute static** functionality with **metric** and **route-map** filtering options, for both iBGP and eBGP sessions. Route redistribution injects routes from other sources into BGP: - **redistribute connected**: Injects routes for directly connected networks (interfaces). DUT0 uses a dummy interface (dum0) to create a connected route. - **redistribute static**: Injects static routes configured on the router. DUT0 uses a blackhole static route to create the redistributed route. For each source type, three variants are tested: - **Basic**: Redistribute without options. DUT1 learns the route and installs it. - **With metric**: Redistribute with ``metric 100`` (MED). DUT1 learns the route with the specified MED value visible in the BGP table. - **With route-map**: Redistribute with a route-map filter. Only routes matching the route-map criteria are redistributed; others are filtered out. DUT0 has two routes but only one matches the filter. Each variant is tested with both iBGP (same AS) and eBGP (different AS) sessions. ********************* Test BGP Redistribute ********************* Description =========== Test BGP redistribute connected and static: basic (DUT1 learns the route), metric (DUT1 learns with MED 100), and route-map (only matching routes redistributed). Each variant tested with iBGP and eBGP. Scenario ======== .. include:: redistribute/testbgpredistribute .. raw:: html