.. _example_protocols_rip_redistribute_redistributebgp: ################ Redistribute Bgp ################ Scenario to verify RIP **redistribute bgp** functionality with metric configuration and route-map filtering options. .. image:: redistributebgp.svg :width: 800 ************************* Test RIP Redistribute BGP ************************* Description =========== Test RIP **redistribute bgp** basic functionality across three routers. **DUT1** (BGP AS 10) announces a dummy interface route via BGP. **DUT0** (BGP AS 10 + RIP) learns the route via BGP and redistributes it to RIP. **DUT2** (RIP only) learns the BGP route through RIP redistribution. Scenario ======== .. include:: redistributebgp/testripredistributebgp .. raw:: html
************************************* Test RIP Redistribute BGP With Metric ************************************* Description =========== Test RIP **redistribute bgp metric** with a custom value (``metric 5``). **DUT0** redistributes BGP routes with ``metric 5``. **DUT2** learns the route with ``metric 6`` (incremented by 1 hop). Scenario ======== .. include:: redistributebgp/testripredistributebgpwithmetric .. raw:: html
******************************************************* Test RIP Redistribute BGP Metric 16 Route Not Announced ******************************************************* Description =========== Test RIP **redistribute bgp metric 16** - route is **not announced**. When **DUT0** redistributes BGP routes with ``metric 16`` (infinity), the routes are **not announced** to RIP neighbors. **DUT2** does not see the route. Scenario ======== .. include:: redistributebgp/testripredistributebgpmetric16routenotannounced .. raw:: html
**************************************** Test RIP Redistribute BGP With Route-Map **************************************** Description =========== Test RIP **redistribute bgp route-map** filtering functionality. **DUT1** announces two dummy routes (``dum0`` and ``dum1``) via BGP. **DUT0** uses a route-map to only redistribute ``192.168.100.0/24`` to RIP. **DUT2** learns only the matching route, while ``192.168.200.0/24`` is filtered out. Scenario ======== .. include:: redistributebgp/testripredistributebgpwithroute-map .. raw:: html