Published On: August 6ᵗʰ, 2019 02:05
Cisco Enterprise Network Compute System Switch Command Reference
VLAN Commands
vlan
Syntax Description
Command History
interface vlan
To enter the interface configuration (VLAN) mode for a specific VLAN or a range of VLANs, use the interface vlan command in the switch configuration mode. After this command is entered, all commands configure this VLAN or range of VLANs.
Syntax Description
vlan-id |
Specifies the VLAN ID. Valid range is: |
vlan-range |
Specifies a VLAN range. You can enter the range in the following formats: Values for the range can be between 1–2349 and 2450–4093. |
Command Default
Not applicable
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
Examples
The following example shows how to configure a VLAN.
nfvis(config-switch)# interface vlan 1
private-vlan
Syntax Description
Command History
show switch vlan
show switch vlan [ vlan-id] [ detailed { created-by | name | tagged-ports | untagged-ports | vlan} ]
Syntax Description
vlan-id |
Specifies the VLAN ID. |
created-by |
Displays the information based on the creation mode. |
name |
Displays the information based on the name. |
tagged-ports |
Displays the information based on the tagged ports. |
untagged-ports |
Displays the information based on the untagged ports. |
vlan |
Displays the information based on the VLAN. |