.. _example_protocols_bgp_address-family_ipv6-unicast_redistribute_redistribute: ############ Redistribute ############ .. sidebar:: Contents .. contents:: :depth: 2 :local: Scenario to verify BGP **address-family ipv6-unicast redistribute connected** and **redistribute static** functionality with **metric** and **route-map** filtering options, for both iBGP and eBGP sessions. Route redistribution injects IPv6 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 IPv6 Redistribute ************************** Description =========== Test BGP address-family ipv6-unicast 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/testbgpipv6redistribute .. raw:: html