Routing

 View Only
last person joined: 3 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.  BGP Regular Expression on mx480

    Posted 02-19-2019 07:49

    Hello everybody

     

    My Name is Cédric and it is my first post on this Forum. Hope somebody can help me 😃

     

    I have to setup a customer which have a BGP Session with us. Actually there is a session configured which allow just his AS on first place in the AS Path. 

    Now the customer ask us to expand the filter, because he have behind his AS additional customer with other AS.

     

    For example: Our customer has AS580. The customer from our customer has AS300 or AS400. Now I should allow more combination of AS Path like below:

    580

    580 300

    580 400

     

    Now is my question, how can I build a policy with that. I found a way on Juniper Documentation how it is possible to define several second AS. But I have also to allow just his first AS. Can somebody advise me how I can build a regular expression for that?

     

    Hope it is clear what i trying to build 😃

    Thank you for your help.

     

     



  • 2.  RE: BGP Regular Expression on mx480
    Best Answer

    Posted 02-19-2019 08:52

    Sample config:

    +++++++++++++

    set policy-options as-path CUSTOMER "580 (300|400)?"
    set policy-options policy-statement CUSTOMER-ROUTES term 10 from as-path CUSTOMER
    set policy-options policy-statement CUSTOMER-ROUTES term 10 from protocol bgp
    set policy-options policy-statement CUSTOMER-ROUTES term 10 then accept
    set policy-options policy-statement CUSTOMER-ROUTES term 20 then reject
    set protocols bgp group CUSTOMER import CUSTOMER-ROUTES

     



  • 3.  RE: BGP Regular Expression on mx480

    Posted 02-20-2019 23:50

    Many Thanks 😃