.. _example_protocols_rip_redistribute_redistributeospf:
#################
Redistribute Ospf
#################
Scenario to verify RIP **redistribute ospf** functionality with metric configuration
and route-map filtering options.
.. image:: redistributeospf.svg
:width: 800
**************************
Test RIP Redistribute OSPF
**************************
Description
===========
Test RIP **redistribute ospf** basic functionality across three routers.
**DUT1** (OSPF) announces a dummy interface route via OSPF.
**DUT0** (OSPF + RIP) learns the route via OSPF and redistributes it to RIP.
**DUT2** (RIP only) learns the OSPF route through RIP redistribution.
Scenario
========
.. include:: redistributeospf/testripredistributeospf
.. raw:: html
**************************************
Test RIP Redistribute OSPF With Metric
**************************************
Description
===========
Test RIP **redistribute ospf metric** with a custom value (``metric 5``).
**DUT0** redistributes OSPF routes with ``metric 5``.
**DUT2** learns the route with ``metric 6`` (incremented by 1 hop).
Scenario
========
.. include:: redistributeospf/testripredistributeospfwithmetric
.. raw:: html
********************************************************
Test RIP Redistribute OSPF Metric 16 Route Not Announced
********************************************************
Description
===========
Test RIP **redistribute ospf metric 16** - route is **not announced**.
When **DUT0** redistributes OSPF routes with ``metric 16`` (infinity), the routes
are **not announced** to RIP neighbors. **DUT2** does not see the route.
Scenario
========
.. include:: redistributeospf/testripredistributeospfmetric16routenotannounced
.. raw:: html
*****************************************
Test RIP Redistribute OSPF With Route-Map
*****************************************
Description
===========
Test RIP **redistribute ospf route-map** filtering functionality.
**DUT1** announces two dummy routes (``dum0`` and ``dum1``) via OSPF.
**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:: redistributeospf/testripredistributeospfwithroute-map
.. raw:: html