Virtual LANs (VLAN) | 627
To view the configured VLANs, use the show vlan command in EXEC privilege mode (Figure 37-3).
Figure 37-3.  show vlan Command Example
A VLAN is active only if the VLAN contains interfaces and those interfaces are operationally up. In 
Figure 37-3, VLAN 1 is inactive because it contains the interfaces that are not active. The other VLANs 
listed in the Figure 37-3 contain enabled interfaces and are active. 
When you delete a VLAN (using the 
no interface vlan vlan-id command), any interfaces assigned to that 
VLAN are assigned to the default VLAN as untagged interfaces.
Assign Interfaces to a VLAN
To assign interfaces in Layer 2 mode to a VLAN, use the tagged and untagged commands. To place an 
interface in Layer 2 mode, use the 
switchport command.
These Layer 2 interfaces can further be designated as tagged or untagged. For more information, refer to 
the Interfaces and Configure Layer 2 (Data Link) Mode. When you place an interface in Layer 2 mode 
using the 
switchport command, the interface is automatically designated untagged and placed in the default 
VLAN. 
To view which interfaces are tagged or untagged and to which VLAN they belong, use the 
show vlan 
command. For example, Figure 37-3 shows that six VLANs are configured, and two interfaces are 
assigned to VLAN 2. The Q column in the 
show vlan command example notes whether the interface is 
tagged (T) or untagged (U). For more information about this command, refer to the command statement in 
the Layer 2 chapter of the FTOS Command Reference Guide.
To view just the interfaces that are in Layer 2 mode, use the 
show interfaces switchport command in EXEC 
privilege mode or EXEC mode.
Note: In a VLAN, the shutdown command stops Layer 3 (routed) traffic only. Layer 2 traffic continues to 
pass through the VLAN. If the VLAN is not a routed VLAN (that is, configured with an IP address), the 
shutdown command has no affect on VLAN traffic.
FTOS#show vlan
Codes: * - Default VLAN, G - GVRP VLANs, R - Remote Port Mirroring VLANs, P - Primary, C -
Community, I - Isolated
Q: U - Untagged, T - Tagged
   x - Dot1x untagged, X - Dot1x tagged
   G - GVRP tagged, M - Vlan-stack, H - VSN tagged
   i - Internal untagged, I - Internal tagged, v - VLT untagged, V - VLT tagged
    NUM    Status    Description                     Q Ports
    1      Inactive  a
*   20     Active                                    U Po32()
                                                     U Te 0/3,5,13,53-56
    1002   Active                                    T Te 0/3,13,55-56
FTOS#