.. _example_protocols_bgp_redistribute_redistributeospf: ################# Redistribute Ospf ################# Scenario to verify BGP **redistribute ospf** functionality with metric and route-map filtering options. .. image:: redistributeospf.svg :width: 800 ******************************* Test BGP Redistribute OSPF iBGP ******************************* Description =========== Test BGP **redistribute ospf** with iBGP. **DUT0** runs OSPF and announces a dummy interface route. **DUT1** (OSPF + BGP AS 10) learns the route via OSPF and redistributes it into BGP. **DUT2** (BGP AS 10) learns the OSPF route through iBGP redistribution. Scenario ======== .. include:: redistributeospf/testbgpredistributeospfibgp .. raw:: html
******************************* Test BGP Redistribute OSPF eBGP ******************************* Description =========== Test BGP **redistribute ospf** with eBGP. **DUT0** runs OSPF and announces a dummy interface route. **DUT1** (OSPF + BGP AS 10) learns the route via OSPF and redistributes it into BGP. **DUT2** (BGP AS 20) learns the OSPF route through eBGP redistribution. Scenario ======== .. include:: redistributeospf/testbgpredistributeospfebgp .. raw:: html
******************************************* Test BGP Redistribute OSPF With Metric iBGP ******************************************* Description =========== Test BGP **redistribute ospf metric** with iBGP. **DUT1** redistributes OSPF routes with ``metric 100`` (MED). **DUT2** learns the route with MED 100. Scenario ======== .. include:: redistributeospf/testbgpredistributeospfwithmetricibgp .. raw:: html
******************************************* Test BGP Redistribute OSPF With Metric eBGP ******************************************* Description =========== Test BGP **redistribute ospf metric** with eBGP. **DUT1** (BGP AS 10) redistributes OSPF routes with ``metric 100`` (MED) to **DUT2** (BGP AS 20). Scenario ======== .. include:: redistributeospf/testbgpredistributeospfwithmetricebgp .. raw:: html
********************************************** Test BGP Redistribute OSPF With Route-Map iBGP ********************************************** Description =========== Test BGP **redistribute ospf route-map** with iBGP. **DUT0** announces two OSPF networks (``dum0`` and ``dum1``) via OSPF. **DUT1** uses a route-map to only redistribute ``192.168.100.0/24`` to BGP. **DUT2** learns only the matching route, while ``192.168.200.0/24`` is filtered out. Scenario ======== .. include:: redistributeospf/testbgpredistributeospfwithroute-mapibgp .. raw:: html
********************************************** Test BGP Redistribute OSPF With Route-Map eBGP ********************************************** Description =========== Test BGP **redistribute ospf route-map** with eBGP. **DUT0** announces two OSPF networks (``dum0`` and ``dum1``) via OSPF. **DUT1** (BGP AS 10) uses a route-map to only redistribute ``192.168.100.0/24`` to BGP. **DUT2** (BGP AS 20) learns only the matching route. Scenario ======== .. include:: redistributeospf/testbgpredistributeospfwithroute-mapebgp .. raw:: html