Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show vlans

Syntax

The show vlans syntax is as follows:

Description

Display information about VLANs configured on bridged Ethernet interfaces. For interfaces configured to support a VoIP VLAN and a data VLAN, the show vlans command displays both tagged and untagged membership for those VLANs.

Note:

When a series of VLANs is created using the vlan-range statement, such VLAN names are preceded and followed by a double underscore. For example, a series of VLANs using the VLAN range 1 through 3 and the base VLAN name marketing would be displayed as __marketing_1__, __marketing_2__, and __marketing_3__.

Note:

To display an 802.1X supplicant successfully authenticated in multiple-supplicant mode with dynamic VLAN movement, use the show vlans vlan-name extensive operational mode command, where vlan-name is the dynamic VLAN.

Options

The show vlans options are as follows:

<vlan-name>

Displays the VLAN name.

brief

Displays a concise summary of configured VLANs on a network device.

detail

Displays detailed information about configured VLANs on a network device.

extensive

Displays complete information about configured VLANs on a network device.

instance

Displays information about the specified routing instance.

interface

Displays information about the specified interface.

logical-system Displays the name of the logical system of the VLAN. If you don't provide a value, all VLANs that belong to the logical system are displayed.
object-summary Displays the object GUID output.
operational

Displays information about the operational routing instances.

satellite

Show satellite vlan details.

vlan-groups

Displays the dot1x VLAN groups information.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show vlans command. Output fields are listed in the approximate order in which they appear. The show vlans output fields are as follows:

Table 1: show vlans Output Fields

Field Name

Field Description

Level of Output

Routing instance

Name of the Routing Instance.

All levels.

VLAN Name

Name of the VLAN.

All levels.

Tag

802.1Q tag applied to this VLAN. If none is displayed, no tag is applied.

All levels

Interfaces

Interface associated with learned MAC addresses or All-members option (flood entry). An asterisk (*) beside the interface indicates that the interface is UP.

All levels

State

Current state of the VLAN. Possible values:

  • Active

  • Inactive

brief, extensive

Internal index

VLAN index internal to Junos OS software.

brief, extensive

Generation index

Generation number of the VLAN object in kernel.

brief, extensive

Origin

Manner in which the VLAN was created. Possible values:

  • Static

  • Dynamic

brief, extensive

MAC aging

Indicates whether the MAC address entry in the Ethernet switching table (MAC table) is removed or "ages out" if no traffic is seen from that address during that time. Possible values:

  • Enabled

  • Disabled

brief, extensive

MAC aging time

Indicates the duration that a MAC address entry remains in the Ethernet switching table (MAC table) before it is removed or "ages out" if no traffic is seen from that address during that time.

brief, extensive

Layer 3 interface

Layer 3 interface associated with the VLAN..

brief, extensive

Mac-IP-Snooping Enabled

Indicates whether the global mac-ip snooping feature is enabled or not.

To enable this feature, see https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/global-mac-ip-snooping-edit-protocols-l2-learning.html. To disable this feature, see https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/no-mac-ip-snooping-edit-vlans-switch-options.html.

detail,extensive

VXLAN Enabled

Indicates whether the VLAN is mapped to a VXLAN Network Identifier (VNI) to extend Layer 2 connectivity over a Layer 3 network or not.

detail,extensive

Number of interfaces

Number of tagged and untagged interfaces associated with a VLAN.

detail, extensive

Total MAC count

The total number of MAC addresses learnt in the VLAN.

detail, extensive

Sample Output (EX Series and QFX Series Switches, SRX Series Firewalls)

show vlans brief (EX Series, QFX Series, SRX Series)

show vlans detail (EX Series, QFX Series, SRX Series)

show vlans extensive (Private VLANs on EX Series, QFX Series, SRX Series - single switch)

show vlans extensive (Private VLANs on EX Series, QFX Series, SRX Series - multiple switches)

show vlans extensive (Port-Based on EX Series, QFX Series, SRX Series)

show vlans extensive (MAC-based on EX Series, QFX Series, SRX Series)

Sample Output: EX Series with ELS Switches and MX Routers

show vlans brief (EX Series Switch)

show bridge domain brief (MX Routers)

show vlans detail (EX Series Switch)

show bridge domain detail (MX Routers)

show vlans extensive (EX Series Switch)

show bridge domain extensive (MX Routers)

Release Information

Command introduced in Junos OS Release 8.4.

Option dot1q-tunneling added in Junos OS Release 12.1 for the QFX Series.

Option interface introduced in Junos OS Release 13.2X50-D10 (ELS).