If you are using the current version of Cumulus NetQ, the content on this page may not be up to date. The current version of the documentation is available here. If you are redirected to the main page of the user guide, then this page may have been renamed; please search for it there.

VLAN

Use the CLI to view VLAN information with the netq show vlan command.

The syntax for VLAN commands is:

netq [<hostname>] show vlan [<1-4096>] [around <text-time>] [json]

netq show interfaces type vlan [state <remote-interface-state>] [around <text-time>] [json]
netq <hostname> show interfaces type vlan [state <remote-interface-state>] [around <text-time>] [count] [json]

netq show macs [<mac>] [vlan <1-4096>] [origin] [around <text-time>] [json]
netq <hostname> show macs [<mac>] [vlan <1-4096>] [origin | count] [around <text-time>] [json]
netq <hostname> show macs egress-port <egress-port> [<mac>] [vlan <1-4096>] [origin] [around <text-time>] [json]

netq [<hostname>] show events [severity info | severity error ] message_type vlan [between <text-time> and <text-endtime>] [json]

View VLAN Information for All Devices

You can view the configuration information for all VLANs in your network by running the netq show vlan command. It lists VLANs by device, and indicates any switch virtual interfaces (SVIs) configured and the last time this configuration changed.

show vlan

View All VLAN Information for a Given Device

You can view the configuration information for all VLANs running on a specific device using the netq <hostname> show vlan command. It lists VLANs running on the device, the ports used, whether an SVI is present, and the last time this configuration changed.

leaf02 show vlan

View Information for a Given VLAN

You can view the configuration information for a particular VLAN using the netq show vlan <vlan-id> command. The ID must be a number between 1 and 4096.

show vlan 10

View VLAN Information for a Time in the Past

You can view the VLAN configuration information across the network or for a given device at a time in the past using the around option of the netq show vlan command.

show vlan around 30d
leaf02 show vlan around 7d

View VLAN Interface Information

You can view the current or past state of the interfaces associated with VLANs using the netq show interfaces command. This provides the status of the interface, its specified MTU, whether it is running over a VRF, and the last time it changed.

show interfaces type vlan

View the Number of VLAN Interfaces Configured

You can view the number of VLAN interfaces configured for a given device using the netq show vlan command with the hostname and count options.

leaf02 show interfaces type vlan count

View MAC Addresses Associated with a VLAN

You can determine the MAC addresses associated with a given VLAN using the netq show macs vlan command. The command also provides the hostnames of the devices, the egress port for the interface, whether the MAC address originated from the given device, whether it learns the MAC address from the peer (remote=yes), and the last time the configuration changed.

show macs vlan 10

View MAC Addresses Associated with an Egress Port

You can filter information down to just the MAC addresses associated with a given VLAN on a device that use a particular egress port. Use the netq <hostname> show macs command with the egress-port and vlan options.

leaf02 show macs egress-port bridge vlan 10

View the MAC Addresses Associated with vRR Configurations

You can view all MAC addresses associated with your vRR (virtual route reflector) interface configuration using the netq show interfaces type macvlan command. This is useful for determining if the specified MAC address inside a VLAN is the same or different across your vRR configuration.

show interfaces type macvlan

View All VLAN Events

View all VLAN-related events.

show events type vlan