JNCIS-ENT Layer 2 Switching And VLANs Practice Question
An administrator wants to configure MAC-based VLAN assignment on an EX Series switch so that specific client devices are automatically placed into VLAN 20 based on their source MAC address regardless of which port they plug into. Where is MAC-based VLAN assignment configured in Junos?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
set ethernet-switching-options mac-based-vlan interface ge-0/0/1 vlan 20
MAC-based VLAN classification is configured under the [edit ethernet-switching-options mac-based-vlan] hierarchy.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
set protocols vlan-assignment mac <mac> vlan-id 20
Why it's wrong here
This hierarchy does not exist in Junos OS.
- ✗
set vlans vlan-id 20 mac-address-match <mac>
Why it's wrong here
VLANs do not contain direct MAC matching parameters.
- ✓
set ethernet-switching-options mac-based-vlan interface ge-0/0/1 vlan 20
Why this is correct
Correct. Mac-based VLAN configuration maps MAC addresses or OUI prefixes to specific VLANs on interfaces.
- ✗
set interfaces ge-0/0/1 unit 0 family ethernet-switching dynamic-vlan 20
Why it's wrong here
Dynamic VLAN assignment via RADIUS uses 802.1X/MAC RADIUS, but static MAC-based VLAN configuration uses ethernet-switching-options.
Visual reference
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
About these practice questions
Courseiva writes every JNCIS-ENT question from scratch — 506 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Juniper Networks exam blueprint
This JNCIS-ENT practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JNCIS-ENT exam.