Juniper
JN0-661 · Question #45
Which command will match communities 101:111, 111:1, and 999:1111?
The correct answer is D. set policy-options community COMMUNITY members ''^... :1+''. Period (.)--A wildcard character that matches any single digit in an AS number. + stands for one or more repetitions of term. ? stands for zero or one repetition of term. bgp-communities-and-extended-communities-for-use-in-routing-policy-match-conditions.html#id-
Advanced BGP
Question
Which command will match communities 101:111, 111:1, and 999:1111?
Options
- Aset policy-options comminity COMMUNITY members ''^... :1?''
- Bset policy-options community COMMUNITY members ''^1.*:1+''
- Cset policy-options community COMMUNITY members [''^1.1:1?'' 999:1111]
- Dset policy-options community COMMUNITY members ''^... :1+''
How the community answered
(51 responses)- A2% (1)
- B6% (3)
- C8% (4)
- D84% (43)
Explanation
Period (.)--A wildcard character that matches any single digit in an AS number. + stands for one or more repetitions of term. ? stands for zero or one repetition of term. bgp-communities-and-extended-communities-for-use-in-routing-policy-match-conditions.html#id-
Topics
#BGP community regex#community matching#routing policy#regular expressions
Community Discussion
No community discussion yet for this question.