.. _example_protocols_ripng_redistribute_redistributestatic:
###################
Redistribute Static
###################
Scenario to verify RIPng **redistribute static** functionality with metric configuration
and route-map filtering options.
******************************
Test RIPng Redistribute Static
******************************
Description
===========
Test RIPng **redistribute static** basic functionality between two routers.
**DUT0** has a static blackhole route ``2001:db8:100::/64`` and redistributes it to RIPng.
**DUT1** learns the static route through RIPng redistribution.
Scenario
========
.. include:: redistributestatic/testripngredistributestatic
.. raw:: html
******************************************
Test RIPng Redistribute Static With Metric
******************************************
Description
===========
Test RIPng **redistribute static metric** with a custom value (``metric 5``).
**DUT0** redistributes static routes with ``metric 5``.
**DUT1** learns the route with ``metric 6`` (incremented by 1 hop).
Scenario
========
.. include:: redistributestatic/testripngredistributestaticwithmetric
.. raw:: html
************************************************************
Test RIPng Redistribute Static Metric 16 Route Not Announced
************************************************************
Description
===========
Test RIPng **redistribute static metric 16** - route is **not announced**.
When **DUT0** redistributes static routes with ``metric 16`` (infinity), the routes
are **not announced** to RIPng neighbors. **DUT1** does not see the route.
Scenario
========
.. include:: redistributestatic/testripngredistributestaticmetric16routenotannounced
.. raw:: html
*********************************************
Test RIPng Redistribute Static With Route-Map
*********************************************
Description
===========
Test RIPng **redistribute static route-map** filtering functionality.
**DUT0** has two static routes (``2001:db8:100::/64`` and ``2001:db8:200::/64``).
A route-map only permits ``2001:db8:100::/64`` to be redistributed.
**DUT1** learns only the matching route, while ``2001:db8:200::/64`` is filtered out.
Scenario
========
.. include:: redistributestatic/testripngredistributestaticwithroute-map
.. raw:: html