.. _example_protocols_ripng_redistribute_redistributebgp:
################
Redistribute Bgp
################
Scenario to verify RIPng **redistribute bgp** functionality with metric configuration
and route-map filtering options.
.. image:: redistributebgp.svg
:width: 800
***************************
Test RIPng Redistribute BGP
***************************
Description
===========
Test RIPng **redistribute bgp** basic functionality across three routers.
**DUT1** (BGP AS 10) announces a dummy interface route via BGP.
**DUT0** (BGP AS 10 + RIPng) learns the route via BGP and redistributes it to RIPng.
**DUT2** (RIPng only) learns the BGP route through RIPng redistribution.
Scenario
========
.. include:: redistributebgp/testripngredistributebgp
.. raw:: html
***************************************
Test RIPng Redistribute BGP With Metric
***************************************
Description
===========
Test RIPng **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/testripngredistributebgpwithmetric
.. raw:: html
*********************************************************
Test RIPng Redistribute BGP Metric 16 Route Not Announced
*********************************************************
Description
===========
Test RIPng **redistribute bgp metric 16** - route is **not announced**.
When **DUT0** redistributes BGP routes with ``metric 16`` (infinity), the routes
are **not announced** to RIPng neighbors. **DUT2** does not see the route.
Scenario
========
.. include:: redistributebgp/testripngredistributebgpmetric16routenotannounced
.. raw:: html
******************************************
Test RIPng Redistribute BGP With Route-Map
******************************************
Description
===========
Test RIPng **redistribute bgp route-map** filtering functionality.
**DUT1** announces two dummy routes (``dum0`` and ``dum1``) via BGP.
**DUT0** uses a route-map to only redistribute ``2001:db8:100::/64`` to RIPng.
**DUT2** learns only the matching route, while ``2001:db8:200::/64`` is filtered out.
Scenario
========
.. include:: redistributebgp/testripngredistributebgpwithroute-map
.. raw:: html