Your network is connected to two different ISPs and you notice that they are using your network for transit traffic. In this scenario, which two configuration statements will solve this problem? (Choose two.)
A.
set policy-options policy-statement ISP term REST then reject
B.
set policy-options policy-statement ISP term ROUTES then reject
C.
set policy-options as-path LOCAL-ROUTES ג€()ג€
D.
set policy-options as-path LOCAL-ROUTES ג€(65310|65441)+ג€
A; default is accept, so leftovers should be rejected.
C; You can use AS path regular expressions to create a null AS path that matches routes (prefixes) that have originated in your AS. These routes have not been advertised to your AS by any external peers. To create a null AS path, use the parentheses operator enclosed in quotation marks with no intervening spaces: “()"
https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/policy-configuring-as-path-regular-expressions-to-use-as-routing-policy-match-conditions.html#understanding-as-path-regular-expressions-for-use-as-routing-policy-match-conditions__id-10256235
A and C are correct.
*A - It's necessary to create the term REST to reject the ISPs routes
*C - You can use AS path regular expressions to create a null AS path that matches routes (prefixes) that have originated in your AS. These routes have not been advertised to your AS by any external peers. To create a null AS path, use the parentheses operator enclosed in quotation marks with no intervening spaces:
[edit policy-options]
as-path null-as “()";
https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/policy-configuring-as-path-regular-expressions-to-use-as-routing-policy-match-conditions.html
A and C are correct.
*A - It's necessary to create the term REST to reject the ISPs routes
*C - You can use AS path regular expressions to create a null AS path that matches routes (prefixes) that have originated in your AS. These routes have not been advertised to your AS by any external peers. To create a null AS path, use the parentheses operator enclosed in quotation marks with no intervening spaces:
[edit policy-options]
as-path null-as “()";
https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/policy-configuring-as-path-regular-expressions-to-use-as-routing-policy-match-conditions.html
A. set policy-options policy-statement ISP term ROUTES then reject
B. set policy-options as-path LOCAL-ROUTES ")"
C. set policy-options policy-statement ISP term REST then reject
D. set policy-options as-path LOCAL-ROUTES "(65310 I 65441) +"
It's D*
{m,n}Match at least m and at most n repetitions of term
{m}Match exactly m repetitions of term
{m,}Match m or more repetitions of term
*Match 0 or more repetitions of term, same as {0,}
+Match 1 or more repetitions of term, same as {1,}
?Match 0 or 1 repetitions of term, same as {0,1}
|Match one of the two terms on either side of the pipe
- Used to represent a range
'...).()Used to group terms, or indicate null with no space
C is correct, we need to mark our internal BGP routes - this means AS_PATH "()"
B is correct answers - we need to forbid our routes to be used by our EBGP peers, so we shouldn't export all our local routes, we should export all other BGP routes from other BGP peers which is default BGP behavior
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
somanyquestions
Highly Voted 3 years, 1 month agoztw3587t
Most Recent 1 year, 5 months agoztw3587t
1 year, 5 months agomohdema
1 year, 12 months agomohdema
1 year, 12 months agoDIbyam
2 years agobartahr
2 years, 1 month agoguesswho123
1 year, 11 months ago