.. _example_protocols_bgp_redistribute_redistributerip:
################
Redistribute Rip
################
Scenario to verify BGP **redistribute rip** functionality with metric and
route-map filtering options.
.. image:: redistributerip.svg
:width: 800
******************************
Test BGP Redistribute RIP iBGP
******************************
Description
===========
Test BGP **redistribute rip** with iBGP. **DUT0** runs RIP and announces
a dummy interface route. **DUT1** (RIP + BGP AS 10) learns the route via RIP
and redistributes it into BGP. **DUT2** (BGP AS 10) learns the RIP route through
iBGP redistribution.
Scenario
========
.. include:: redistributerip/testbgpredistributeripibgp
.. raw:: html
******************************
Test BGP Redistribute RIP eBGP
******************************
Description
===========
Test BGP **redistribute rip** with eBGP. **DUT0** runs RIP and announces
a dummy interface route. **DUT1** (RIP + BGP AS 10) learns the route via RIP
and redistributes it into BGP. **DUT2** (BGP AS 20) learns the RIP route through
eBGP redistribution.
Scenario
========
.. include:: redistributerip/testbgpredistributeripebgp
.. raw:: html
******************************************
Test BGP Redistribute RIP With Metric iBGP
******************************************
Description
===========
Test BGP **redistribute rip metric** with iBGP. **DUT1** redistributes
RIP routes with ``metric 100`` (MED). **DUT2** learns the route with MED 100.
Scenario
========
.. include:: redistributerip/testbgpredistributeripwithmetricibgp
.. raw:: html
******************************************
Test BGP Redistribute RIP With Metric eBGP
******************************************
Description
===========
Test BGP **redistribute rip metric** with eBGP. **DUT1** (BGP AS 10) redistributes
RIP routes with ``metric 100`` (MED) to **DUT2** (BGP AS 20).
Scenario
========
.. include:: redistributerip/testbgpredistributeripwithmetricebgp
.. raw:: html
*********************************************
Test BGP Redistribute RIP With Route-Map iBGP
*********************************************
Description
===========
Test BGP **redistribute rip route-map** with iBGP. **DUT0** announces two RIP
routes (``dum0`` and ``dum1``) via RIP. **DUT1** uses a route-map to only
redistribute ``192.168.100.0/24`` to BGP. **DUT2** learns only the matching route,
while ``192.168.200.0/24`` is filtered out.
Scenario
========
.. include:: redistributerip/testbgpredistributeripwithroute-mapibgp
.. raw:: html
*********************************************
Test BGP Redistribute RIP With Route-Map eBGP
*********************************************
Description
===========
Test BGP **redistribute rip route-map** with eBGP. **DUT0** announces two RIP
routes (``dum0`` and ``dum1``) via RIP. **DUT1** (BGP AS 10) uses a route-map
to only redistribute ``192.168.100.0/24`` to BGP. **DUT2** (BGP AS 20) learns only
the matching route.
Scenario
========
.. include:: redistributerip/testbgpredistributeripwithroute-mapebgp
.. raw:: html