Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

vlan

date_range 09-Dec-23

Syntax (Ethernet and 802.1Q Tagging)

content_copy zoom_out_map
vlan {
    members [ (all | names | vlan-ids) ];
}

Syntax (Static MAC-based VLANs)

content_copy zoom_out_map
vlan vlan-name { 			
    mac  mac-address {	
            next-hop interface-name;
    }
}

Syntax (Unknown Unicast)

content_copy zoom_out_map
vlan  (all | vlan-name) {
    interface interface-name;
}

Ethernet

content_copy zoom_out_map
[edit interfaces ge-chassis/slot/port                 unit                 logical-unit-number                 ethernet-switching],
[edit interfaces xe-chassis/slot/port                 unit                 logical-unit-number                 ethernet-switching]

802.1Q Tagging

content_copy zoom_out_map
[edit interfaces interface-name                 unit                 logical-unit-number                 family ethernet-switching]

Static MAC-based VLANs

content_copy zoom_out_map
[edit ethernet-switching-options static] 

Unknown Unicast

content_copy zoom_out_map

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.

footer-navigation