.. _example_protocols_ripng_redistribute_redistributeconnected:
######################
Redistribute Connected
######################
Scenario to verify RIPng **redistribute connected** functionality with metric configuration
and route-map filtering options.
********************************************
Test RIPng Default Metric With Default Value
********************************************
Description
===========
Test RIPng **redistribute connected metric** with the **default value** (``metric 1``).
When metric is not explicitly configured, RIPng uses ``metric 1`` by default.
**DUT0** redistributes the connected IPv6 route ``2001:db8:100::/64`` with the default metric.
**DUT1** learns this route with ``metric 2`` (incremented by 1 hop). The route is
installed in the routing table and connectivity is verified with ping.
Scenario
========
.. include:: redistributeconnected/testripngdefaultmetricwithdefaultvalue
.. raw:: html
******************************************
Test RIPng Default Metric With Valid Value
******************************************
Description
===========
Test RIPng **redistribute connected metric** with a valid value (``metric 5``).
**DUT0** redistributes the connected IPv6 route ``2001:db8:100::/64`` with ``metric 5``.
**DUT1** learns this route with ``metric 6`` (incremented by 1 hop). The route is
installed in the routing table and connectivity is verified with ping.
Scenario
========
.. include:: redistributeconnected/testripngdefaultmetricwithvalidvalue
.. raw:: html
****************************************
Test RIPng Metric 16 Route Not Announced
****************************************
Description
===========
Test RIPng **redistribute connected metric 16** - route is **not announced**.
When **DUT0** redistributes ``2001:db8:100::/64`` with ``metric 16`` (infinity), the route
is **not announced** to neighbors because it is already unreachable at the source.
**DUT1** does not see the route in RIPng database, does not install it in routing table,
and **ping fails**.
Scenario
========
.. include:: redistributeconnected/testripngmetric16routenotannounced
.. raw:: html
************************************************
Test RIPng Redistribute Connected With Route-Map
************************************************
Description
===========
Test ``RIPng`` **route redistribution** with **route-map filtering** between two routers.
**DUT0** has two dummy interfaces (``dum0`` and ``dum1``), but only ``dum0`` matches the
``route-map INTERNAL`` filter. This validates that **only matching IPv6 routes** are advertised
while non-matching routes (``dum1``) are filtered out.
Scenario
========
.. include:: redistributeconnected/testripngredistributeconnectedwithroute-map
.. raw:: html