Courseiva
Layer 2 Switching And VLANsmediumMultiple ChoiceObjective-mapped

JNCIS-ENT Layer 2 Switching And VLANs Practice Question

You are configuring a trunk port on an EX Series switch and need to explicitly define the allowed VLAN list as VLANs 10, 20, and 30. Which configuration statement is correct?

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/4 unit 0 family ethernet-switching interface-mode trunk vlan members [ 10 20 30 ]

Explicit VLAN lists on trunk ports use square brackets or comma separation under the vlan members statement.

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 vlans members ge-0/0/4 [ 10 20 30 ]

    Why it's wrong here

    VLAN membership is configured under the interface hierarchy, not the global VLAN hierarchy.

  • set interfaces ge-0/0/4 unit 0 family ethernet-switching trunk-vlan 10,20,30

    Why it's wrong here

    This is an invalid configuration statement.

  • set interfaces ge-0/0/4 unit 0 family ethernet-switching interface-mode trunk vlan members [ 10 20 30 ]

    Why this is correct

    Correct. Brackets enclose the list of member VLANs on a trunk port.

  • set interfaces ge-0/0/4 unit 0 family ethernet-switching interface-mode trunk allowed-vlans 10 20 30

    Why it's wrong here

    The allowed-vlans keyword is not used in Junos; 'vlan members' is correct.

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

About these practice questions

One of 506 original JNCIS-ENT practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.