Courseiva
Layer 2 Switching And VLANshardMultiple ChoiceObjective-mapped

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

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

Quick reference

Access Control Model Comparison

ModelAcronymWho Controls Access?Best For
Discretionary Access ControlDACResource ownerSmall teams, file shares
Mandatory Access ControlMACSystem / security labelsClassified govt / military
Role-Based Access ControlRBACAdministrator (via roles)Enterprise environments
Attribute-Based Access ControlABACPolicy engine (user + resource attributes)Fine-grained, dynamic policies
Rule-Based Access ControlRuBACSystem rules / ACLsFirewall 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 →

How Courseiva writes practice questions · Editorial policy

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.