vlan
Syntax (Ethernet and 802.1Q Tagging)
vlan { members [ (all | names | vlan-ids) ]; }
Syntax (Unknown Unicast)
vlan (all | vlan-name) { interface interface-name; }
Ethernet
[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
[edit interfaces interface-name unit logical-unit-number family ethernet-switching]
Static MAC-based VLANs
[edit ethernet-switching-options static]
Unknown Unicast
[edit ethernet-switching-options unknown-unicast-forwarding]
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.
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.