.. _example_protocols_bgp_address-family_ipv6-unicast_redistribute_redistributeospfv6:
###################
Redistribute Ospfv6
###################
Scenario to verify BGP **address-family ipv6-unicast redistribute ospf6** functionality with metric and
route-map filtering options.
.. image:: redistributeospfv6.svg
:width: 800
**************************************
Test BGP IPv6 Redistribute OSPFv3 iBGP
**************************************
Description
===========
Test BGP **address-family ipv6-unicast redistribute ospf6** with iBGP. **DUT0** runs OSPFv3 and announces
a dummy interface route. **DUT1** (OSPFv3 + BGP AS 10) learns the route via OSPFv3
and redistributes it into BGP. **DUT2** (BGP AS 10) learns the OSPFv3 route through
iBGP redistribution.
Scenario
========
.. include:: redistributeospfv6/testbgpipv6redistributeospfv3ibgp
.. raw:: html
**************************************
Test BGP IPv6 Redistribute OSPFv3 eBGP
**************************************
Description
===========
Test BGP **address-family ipv6-unicast redistribute ospf6** with eBGP. **DUT0** runs OSPFv3 and announces
a dummy interface route. **DUT1** (OSPFv3 + BGP AS 10) learns the route via OSPFv3
and redistributes it into BGP. **DUT2** (BGP AS 20) learns the OSPFv3 route through
eBGP redistribution.
Scenario
========
.. include:: redistributeospfv6/testbgpipv6redistributeospfv3ebgp
.. raw:: html
**************************************************
Test BGP IPv6 Redistribute OSPFv3 With Metric iBGP
**************************************************
Description
===========
Test BGP **address-family ipv6-unicast redistribute ospf6 metric** with iBGP. **DUT1** redistributes
OSPFv3 routes with ``metric 100`` (MED). **DUT2** learns the route with MED 100.
Scenario
========
.. include:: redistributeospfv6/testbgpipv6redistributeospfv3withmetricibgp
.. raw:: html
**************************************************
Test BGP IPv6 Redistribute OSPFv3 With Metric eBGP
**************************************************
Description
===========
Test BGP **address-family ipv6-unicast redistribute ospf6 metric** with eBGP. **DUT1** (BGP AS 10) redistributes
OSPFv3 routes with ``metric 100`` (MED) to **DUT2** (BGP AS 20).
Scenario
========
.. include:: redistributeospfv6/testbgpipv6redistributeospfv3withmetricebgp
.. raw:: html
*****************************************************
Test BGP IPv6 Redistribute OSPFv3 With Route-Map iBGP
*****************************************************
Description
===========
Test BGP **address-family ipv6-unicast redistribute ospf6 route-map** with iBGP. **DUT0** announces two OSPFv3
networks (``dum0`` and ``dum1``) via OSPFv3. **DUT1** uses a route-map to only
redistribute ``2001:db8:100::/64`` to BGP. **DUT2** learns only the matching route,
while ``2001:db8:200::/64`` is filtered out.
Scenario
========
.. include:: redistributeospfv6/testbgpipv6redistributeospfv3withroute-mapibgp
.. raw:: html
*****************************************************
Test BGP IPv6 Redistribute OSPFv3 With Route-Map eBGP
*****************************************************
Description
===========
Test BGP **address-family ipv6-unicast redistribute ospf6 route-map** with eBGP. **DUT0** announces two OSPFv3
networks (``dum0`` and ``dum1``) via OSPFv3. **DUT1** (BGP AS 10) uses a route-map
to only redistribute ``2001:db8:100::/64`` to BGP. **DUT2** (BGP AS 20) learns only
the matching route.
Scenario
========
.. include:: redistributeospfv6/testbgpipv6redistributeospfv3withroute-mapebgp
.. raw:: html