Routing

 View Only
last person joined: 2 days 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.  Juniper MX-series equivalent Cisco route-map

    Posted 04-08-2020 23:29

    Hi!
    We have a softaware router on Linux (Quagga).
    We bought Juniper MX204 and we need move configuration from Quagga to Juniper.

    This is my first expiriense with Juniper and I don’t know much yet.

     

    I have configuration on Quagga:

    network X.X.X.X/20 route-map SETCOM
    network Z.Z.Z.Z/22 route-map SETCOM


    route-map SETCOM permit 10
    set community YYYYY:0 YYYYY:10 YYYYY:100 YYYYY:150

     

    but I can't find equivalent configuration for Juniper.

     

    Thank you for your help and tips.

     

    P.S. English isn't native to me, sorry for the mistakes

     



  • 2.  RE: Juniper MX-series equivalent Cisco route-map

     
    Posted 04-08-2020 23:52

    Hello,

     

    the equivalent on Junos would be this:

     

    policy-options {
         prefix-list PREFIX1 {
            X.X.X.X/20;
    	Z.Z.Z.Z/22;
        }
         policy-statement SETCOM {
            term SETCOM1 {
                from {
                    prefix-list PREFIX1;
                }
    	    then {
                    community add COMMUNITY1;
    		community add COMMUNITY2;
    		community add COMMUNITY3;
    		community add COMMUNITY4;
                    accept;
                }
            }
        }
    	community COMMUNITY1 members YYYYY:0;
    	community COMMUNITY2 members YYYYY:10;
    	community COMMUNITY3 members YYYYY:100;
    	community COMMUNITY4 members YYYYY:150;
    }


  • 3.  RE: Juniper MX-series equivalent Cisco route-map

    Posted 04-08-2020 23:58

    Hi admin_max, 

     

    Greetings, 

    As per my understanding, in the Juniper terminology, it is called Filter-based forwarding.
    Please refer the below link for details and configuration example:  https://www.juniper.net/documentation/en_US/junos/topics/topic-map/filter-based-forwarding-policy-based-routing.html#jd0e894

     

    Please mark "Accept as solution" if this answers your query. 

     

    Kudos are appreciated too! 

     

    Regards, 

    Sharat Ainapur



  • 4.  RE: Juniper MX-series equivalent Cisco route-map
    Best Answer

    Posted 04-09-2020 00:10

    I think I found the answer to my question:
    https://www.juniper.net/documentation/en_US/junos/topics/concept/policy-bgp-communities-extended-communities-match-conditions-overview.html

    namely:
    You can configure BGP large community at the [edit policy-options community community-name members] and [edit routing-options static route ip-address community] hierarchy levels. The BGP large community attributes format has four fields: large:global administrator:assigned number:assigned number.

    I did so:

    static {
        route X.X.X.X/20 {
            discard;
            community [ YYYYY:0 YYYYY:10 YYYYY:100 YYYYY:150 ]
        }
        route Z.Z.Z.Z/22{
            discard;
            community [ YYYYY:0 YYYYY:10 YYYYY:100 YYYYY:150 ]
        }
    }