Routing

 View Only
last person joined: 20 hours ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Cisco to Juniper

    Posted 12-01-2022 15:36
    Edited by Aron 12-05-2022 18:30
    Migrating from cisco to Juniper



    Router bgp 20
    network 65.20.25.20 mask 255.255.255.252
    network 66.78.55.0 mask 255.255.255.0
    neighbor 65.20.25.24 remote-as 45
    neighbor 158.12.20.12 remote-as 40

    Juniper :

    Looking for equivalent configuration

    ------------------------------
    Arun kumar R
    ------------------------------


  • 2.  RE: Cisco to Juniper

    Posted 12-02-2022 01:17
    Edited by Sheetanshu 12-02-2022 12:33
    ================================== Export Policy  ====================================
    
    set policy-options policy-statement bgp-export term 1 from route-filter 65.20.25.20/30 exact
    set policy-options policy-statement bgp-export term 1 from route-filter 66.78.55.0/24 exact
    set policy-options policy-statement bgp-export term 1 then accept
    =======================================================================================
    
    ================================== Set autonomous system ===============================
    
    set routing-options autonomous-system 20
    
    =========================================================================================
    
    
    ========================= BGP Configuration ==============================================
    
    set protocols bgp group ebgp neighbor 65.20.25.24 peer-as 45
    set protocols bgp group ebgp neighbor 158.12.20.12 peer-as 40
    set protocols bgp group ebgp export bgp-export
    
    ==========================================================================================


    ------------------------------
    Sheetanshu Shekhar
    ------------------------------



  • 3.  RE: Cisco to Juniper

    Posted 12-02-2022 06:20
    I would also add a final reject term to prevent other prefixes from being automatically sent by the default accept.

    set policy-options policy-statement bgp-export term 2 then reject​


    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------



  • 4.  RE: Cisco to Juniper

    Posted 12-02-2022 08:59
    BGP routes will be advertised by default to external peers. Since there is no route-map in the Cisco config that would prevent this default BGP action, I would not add term 2 in the export policy.

    ------------------------------
    Sheetanshu Shekhar
    ------------------------------



  • 5.  RE: Cisco to Juniper

    Posted 12-02-2022 10:25
    Sheetanshu, 

    Should that first policy option be /30 and not a /32 ?

    set policy-options policy-statement bgp-export term 1 from route-filter 65.20.25.20/32 exact​


    ------------------------------
    DAVID CLARK
    ------------------------------



  • 6.  RE: Cisco to Juniper

    Posted 12-02-2022 12:32
    Hi David,

    Yes, it should be a /30 and not /32. Thanks for highlighting it, I have corrected it now.

    Regards

    ------------------------------
    Sheetanshu Shekhar
    ------------------------------



  • 7.  RE: Cisco to Juniper

    Posted 12-02-2022 10:25
    Sheetanshu, 

    Would this policy option not need to be a /30 and not a /32 ?
    set policy-options policy-statement bgp-export term 1 from route-filter 65.20.25.20/32 exact​


    ------------------------------
    DAVID CLARK
    ------------------------------



  • 8.  RE: Cisco to Juniper

    Posted 12-05-2022 18:43
    Edited by Aron 12-05-2022 18:44
    set protocols bgp group ebgp neighbor 65.20.25.24 peer-as 45
    set protocols bgp group ebgp neighbor 158.12.20.12 peer-as 40
    set protocols bgp group ebgp export bgp-export​

    If we have export statement defined like above, Is it not only two networks will be advertised to both the peer and not other routes.
    I want only the below networks defined in the route map/filter to be advertised to
    158.12.20.12​
    peer and rest all the incoming routes to be sent to 65.20 .....peer, because 65.20...network is locally connected and the 66.78 network is being received from the peer 65.20.25.24. All the Internet routes to be sent to 65.20.25.24 including the default.


    I also encountered an issue today. There is Primary along with the ISP (on which cisco is installed). I replaced the Juniper with cisco and the sites are not working.



    ------------------------------
    Arun kumar R
    ------------------------------



  • 9.  RE: Cisco to Juniper

    Posted 12-05-2022 23:38
    Hi Arun,

    If I understood correctly, this is your requirement: -

    a) Advertise only 65.20.25.20/32 and 66.78.55.0/24 prefixes to the peer 158.12.20.12, and block everything else.
    b) Advertise all routes to 65.20.25.24.

    For a) BGP will advertise all the BGP routes (learned from other peers) by default to any external peer. So, if you need to restrict BGP routes to be advertised to 158.12.20.12, use the following configuration (add term 2 to the policy to reject all other routes, and apply only the 158.12.20.12 neighbour as export policy)
    ================================== Export Policy  ====================================
    
    set policy-options policy-statement bgp-export-158_12 term 1 from route-filter 65.20.25.20/30 exact
    set policy-options policy-statement bgp-export-158_12 term 1 from route-filter 66.78.55.0/24 exact
    set policy-options policy-statement bgp-export-158_12 term 1 then accept
    set policy-options policy-statement bgp-export-158_12 term 2 then reject
    =======================================================================================
    
    ================================== Set autonomous system ===============================
    
    set routing-options autonomous-system 20
    
    =========================================================================================
    
    
    ========================= BGP Configuration ==============================================
    
    set protocols bgp group ebgp neighbor 65.20.25.24 peer-as 45
    set protocols bgp group ebgp neighbor 158.12.20.12 peer-as 40
    set protocols bgp group ebgp neighbor 158.12.20.12 export bgp-export-158_12
    
    ==========================================================================================

    For b), if all the routes that you want to advertise are BGP routes, then they will be advertised by default.

    I can't comment on the problems encountered during replacing the Juniper router with Cisco, as there isn't much information provided.


    ------------------------------
    Sheetanshu Shekhar
    ------------------------------