VLAN Port Showing Inactive in show vlan brief
Presenting Symptom
A VLAN port shows as 'inactive' in the output of 'show vlan brief', and the connected device cannot communicate on the VLAN.
Network Context
This occurs in a small branch office with a single Cisco Catalyst 2960 switch running IOS 15.0. The switch has multiple VLANs configured (VLAN 10, 20, 30) for different departments. The problem is observed on an access port assigned to VLAN 20, which suddenly shows as inactive.
Diagnostic Steps
Check VLAN status and port assignment
show vlan briefVLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 10 Sales active Fa0/5, Fa0/6 20 Engineering inactive 30 HR active Fa0/7, Fa0/8 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
VLAN 20 shows status 'inactive' and no ports are listed under it. This indicates the VLAN is not operational, likely because it is not created in the VLAN database or is administratively down.
Verify VLAN configuration in running-config
show running-config | include vlan 20vlan 20 name Engineering
If the VLAN is configured, you will see the vlan 20 and name lines. If not, the VLAN does not exist in the configuration. In this case, the output may be empty or show only 'vlan 20' without a name.
Check if VLAN is present in VLAN database
show vlan id 20VLAN ID: 20 VLAN Name: Engineering VLAN Type: Ethernet VLAN State: inactive ...
If the VLAN exists but is inactive, the state will show 'inactive'. This could be due to the VLAN being administratively shut down or because the VLAN is not created in the VLAN database (if using VTP).
Check VTP status (if applicable)
show vtp statusVTP Version : 2 Configuration Revision : 0 Maximum VLANs supported locally : 1005 Number of existing VLANs : 5 VTP Operating Mode : Server VTP Domain Name : VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00 Local updater ID is 0.0.0.0 (no valid interface found)
If VTP is enabled and the VLAN is not present in the VTP database, it may not be propagated. However, in a simple branch office, VTP is often disabled. If VTP mode is 'Transparent', VLANs are locally configured.
Root Cause
The VLAN 20 was not created in the switch's VLAN database. The 'vlan 20' command was either never executed or was removed, causing the VLAN to be inactive. As a result, any access port assigned to VLAN 20 cannot forward traffic because the VLAN does not exist in the switch's VLAN table.
Resolution
Verification
Run 'show vlan brief' again to confirm VLAN 20 is now active and shows the assigned ports: VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 10 Sales active Fa0/5, Fa0/6 20 Engineering active Fa0/7, Fa0/8 30 HR active Fa0/9, Fa0/10 ... Also verify the port is up/up with 'show interfaces status' or 'show interfaces fa0/7 switchport'.
Prevention
["Always create VLANs in the VLAN database before assigning them to ports.","Use a consistent VLAN configuration process, such as a configuration template or automation, to avoid missing VLANs.","If using VTP, ensure the VTP domain is correctly configured and the VLAN is propagated to all switches."]
CCNA Exam Relevance
On the CCNA 200-301 exam, this scenario appears in troubleshooting questions where a VLAN is missing or inactive. Candidates must know that a VLAN must be created in the VLAN database before it can be used. The exam may present a 'show vlan brief' output and ask why a port is not working, or require the candidate to identify the missing VLAN configuration. Key fact: A VLAN must exist in the VLAN database to be active; otherwise, it shows as 'inactive'.
Exam Tips
Memorize that 'inactive' in 'show vlan brief' means the VLAN is not created or is administratively down.
Remember that 'show running-config | include vlan' can quickly reveal if a VLAN is configured.
Practice the 'vlan <vlan-id>' and 'name <name>' commands to create VLANs.
Commands Used in This Scenario
Test Your CCNA Knowledge
Practice with scenario-based questions to prepare for the CCNA 200-301 exam.
Practice CCNA Questions