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:
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.
set policy-options as-path CUSTOMER "580 (300|400)?"set policy-options policy-statement CUSTOMER-ROUTES term 10 from as-path CUSTOMERset policy-options policy-statement CUSTOMER-ROUTES term 10 from protocol bgpset policy-options policy-statement CUSTOMER-ROUTES term 10 then acceptset policy-options policy-statement CUSTOMER-ROUTES term 20 then rejectset protocols bgp group CUSTOMER import CUSTOMER-ROUTES
Many Thanks 😃