JNCIS-ENT Layer 2 Switching And VLANs Practice Question
Which TWO configuration statements are required when configuring a trunk port on an EX Series switch to allow specific VLANs while blocking others? (Choose two.)
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 interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk
Trunk ports require setting the interface mode to trunk and explicitly defining the allowed member VLANs using vlan members.
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 interfaces ge-0/0/0 unit 0 family ethernet-switching interface-mode trunk
Why this is correct
This command sets the port operating mode to trunk.
- ✓
set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members [ vlan-10 vlan-20 ]
Why this is correct
This command specifies the exact list of VLANs allowed to traverse the trunk port.
- ✗
set interfaces ge-0/0/0 unit 0 family ethernet-switching encapsulation access
Why it's wrong here
Encapsulation access is used for access ports, not trunks.
- ✗
set interfaces ge-0/0/0 unit 0 family ethernet-switching port-mode hybrid
Why it's wrong here
Hybrid mode is a different port configuration concept and not required for a standard trunk port.
- ✗
set protocols l2-learning trunk-vlan-restriction
Why it's wrong here
This is not a valid Junos command for restricting VLANs on a trunk.
Visual reference
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.