JN0-281 practice question 1 of 35

Which of the following are correct methods for configuring VLANs on a Junos OS switch? (Choose two)

Full set: 271 questions
Answer options
A: Using the set vlans command to assign an IP address to the VLAN
B: Using the set interfaces command to assign a port to a specific VLAN Correct answer
C: Using the show interfaces command to configure VLANs
D: Using the set interfaces command to configure the VLAN ID for the interface Correct answer
Correct Answer:
B. Using the set interfaces command to assign a port to a specific VLAN; D. Using the set interfaces command to configure the VLAN ID for the interface
Explanation

In Junos OS for EX and QFX Series switches, VLANs are configured in two main parts. First, the VLAN itself is created under the [edit vlans] hierarchy. Second, interfaces (ports) are assigned to these VLANs under the [edit interfaces] hierarchy. The set interfaces unit 0 family ethernet-switching vlan members command assigns an access port to a single VLAN. For trunk ports, multiple VLANs can be listed. Therefore, using the set interfaces command is the correct method for assigning ports and their VLAN membership.

Why Incorrect

A. Using the set vlans command to assign an IP address to the VLAN: IP addresses are assigned to Layer 3 interfaces (like IRB interfaces) under [edit interfaces], not directly to the VLAN configuration under [edit vlans].
C. Using the show interfaces command to configure VLANs: show commands are used for verification and monitoring, not for configuration. Configuration is done using set commands in configuration mode.

References

1. Juniper Networks TechLibrary, "Configuring VLANs on Switches," Example: Configuring a Basic VLAN on a Single Switch. This guide shows the command set interfaces ge-0/0/0 unit 0 family ethernet-switching vlan members sales to assign a port to a VLAN.

2. Juniper Networks TechLibrary, "Understanding VLANs on Switches". Under the "Configuring VLANs" section, it details that after creating a VLAN, you must "Configure the interfaces that are to be members of the VLAN." This is done within the [edit interfaces] stanza.

Scroll to Top