Expand all | Collapse all

Redistributing BGP into OSPF?

Jump to Best Answer
  • 1.  Redistributing BGP into OSPF?

    Posted 10-11-2018 11:41

    Can anyone help point me in the right direction.  I've been searching for documentation or examples on redistrubting BGP routes over to OSPF.  


    I have my cloud providers being delivered to us over two interfaces, each with there own logical vlan.  I'm receiving BGP routes from Microsoft and Google but i'd like to pass these over to our core router which is using OSPF over two other redundant connections.  


    On Cisco it's basicly just:


    router bgp 100
       redistribute ospf 1

    Not sure what the SRX context is.  

  • 2.  RE: Redistributing BGP into OSPF?
    Best Answer

    Posted 10-11-2018 12:54

    Hi Munozj,


    If the BGP routes are already present in the routing-table of the SRX, you can use an Export-policy to distribute those routes via OSPF to other peers.


    1. Create an Export-policy to match the BGP routes in the routing-table:
    [edit policy-options]
    user@srx# show
    	policy-statement BGP-INTO-OSPF {
    	    term BGP-ONLY {
    	        from protocol bgp;
    	        then {
    2. Apply the Export-policy under OSPF:
    [edit protocols]
    user@srx# show
    	ospf {
    	    export BGP-INTO-OSPF;
    	    area {
    	        interface ae0.0
    	        interface ge-0/0/0.0
    3. Confirm the routes advertisement (via LSAs) over OSFP:
    	> run show ospf database advertising-router self

    You can see and example to redistribute OSPF in to BGP in the following link. I know if the opposite but see that they follow the same steps.



    I hope this info is helpful.