Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

vlan

Syntax (Ethernet and 802.1Q Tagging)

Syntax (Static MAC-based VLANs)

Syntax (Unknown Unicast)

Ethernet

802.1Q Tagging

Static MAC-based VLANs

Unknown Unicast

Description

For both Gigabit Ethernet and aggregated Ethernet interfaces and 802.1Q Tagging, assign an 802.1Q VLAN tag ID to a logical interface.

For Static MAC-based VLANs, specify the name of a VLAN to add to the Ethernet switching table.

For unknown unicast, specify a VLAN from which unknown unicast packets will be forwarded, or specify that the packets should be forwarded from all VLANS. Unknown unicast packets are forwarded from a VLAN to a specific trunk interface.

The remaining statements are explained separately. See CLI Explorer.

Tip:

To display a list of all configured VLANs on the system, including VLANs that are configured but not committed, type ? after vlan or vlans in your configuration mode command line. Note that only one VLAN is displayed for a VLAN range.

Options

all

All VLANs.

vlan-name

Name of the VLAN to add to the Ethernet switching table.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

interface—To view this statement in the configuration.interface-control—To add this statement to the configuration.

system—To view this statement in the configuration.system-control—To add this statement to the configuration.

routing—To view this statement in the configuration.routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 9.0.