nerdexam
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)
  • A
    2% (1)
  • B
    6% (3)
  • C
    8% (4)
  • D
    84% (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.

Full JN0-661 Practice