An administrator needs to configure port security on an access switch running Junos OS to limit the number of learned MAC addresses on interface ge-0/0/1 to a maximum of two. Which configuration statement accomplishes this?
Trap 1: set interfaces ge-0/0/1 unit 0 family ethernet-switching mac-limit 2
MAC limits are defined under switch-options or ethernet-switching-options, not directly under family ethernet-switching unit 0.
Trap 2: set ethernet-switching-options secure-access-port interface…
This syntax does not match the valid Junos secure-access-port options.
Trap 3: set protocols l2-security interface ge-0/0/1 mac-limit 2
There is no l2-security protocols hierarchy in Junos OS for interface-level mac-limits.
- A
set switch-options interface ge-0/0/1.0 mac-limit limit 2
This statement correctly sets the MAC limit to two on the specified interface under switch-options.
- B
set interfaces ge-0/0/1 unit 0 family ethernet-switching mac-limit 2
Why wrong: MAC limits are defined under switch-options or ethernet-switching-options, not directly under family ethernet-switching unit 0.
- C
set ethernet-switching-options secure-access-port interface ge-0/0/1 maximum-mac-count 2
Why wrong: This syntax does not match the valid Junos secure-access-port options.
- D
set protocols l2-security interface ge-0/0/1 mac-limit 2
Why wrong: There is no l2-security protocols hierarchy in Junos OS for interface-level mac-limits.