惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
宝玉的分享
宝玉的分享
M
MIT News - Artificial intelligence
S
SegmentFault 最新的问题
博客园 - 叶小钗
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
博客园_首页
U
Unit 42
月光博客
月光博客
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Even Without Typing a Command — Understanding What show v...
TAKUMI SUGAT · 2026-05-19 · via DEV Community

TAKUMI SUGATA

Introduction

While studying for CompTIA Network+, I couldn't totally understand what "show VLAN command" shows. I have never typed command on my computer and seen the output.

I understood what VLAN was and what the command actually shows, everything clicked. So, I decided to write it down.


What is VLAN

At first, before understanding Show VLAN command, we need to know VLAN.

VLAN = Virtual Local Area Network
It is a mechanism that divides a physical network into virtual segments.

Enter fullscreen mode Exit fullscreen mode

Why VLAN is needed

Without VLAN:
 → Everyone is in the same network
 → All data are shared across the entire organization regardless of department
 → Problem for security and performance

With VLAN:
 → Be able to divide network depend on department
 → Only sales staff can access data managed by the sales department
 → Ensure security

Enter fullscreen mode Exit fullscreen mode

Familiar example

Without VLAN:
 → Everyone work in one room
 → Every conversation can be heard to everyone

With VLAN:
 → Each department has its own private room
 → Conversation cannot be overheard by other departments

Enter fullscreen mode Exit fullscreen mode

Configuration diagram

【Without VLAN】

Switch
 ├── PC(Sales department)
 ├── PC(Development department)  ← Everyone in the same network
 └── PC(Management department)

【With VLAN】

Switch
 ├── VLAN 10(Sales department)── PC・PC
 ├── VLAN 20(Development department)── PC・PC  ← Divide network into each department
 └── VLAN 30(Management department)── PC・PC

Enter fullscreen mode Exit fullscreen mode


What is show VLAN command

It is the *command to verify VLAN information on a Cisco switch *.

Caution:
The show vlan command is exclusive to switches running Cisco IOS 

Other vendors use other command:
 Juniper  → show vlans
 HP/Aruba → show vlans
 Dell     → show vlan

Enter fullscreen mode Exit fullscreen mode


Kinds of the command

There are three main command on this.

1. show vlan

Show All VLAN information in detail

Enter fullscreen mode Exit fullscreen mode

2. show vlan brief

Show VLAN overview simply
 → The most used command
 → Frequently appears in the exam

Enter fullscreen mode Exit fullscreen mode

3. show vlan id [Number]

Just show specific VLAN

例:
show vlan id 10
 → Show only VLAN 10 information

Enter fullscreen mode Exit fullscreen mode


Output images

Output example for show vlan brief.

VLAN Name                Status    Ports
---- -------------------- --------- ------
1    default              active    Gi0/1, Gi0/2
10   Sales                active    Gi0/3, Gi0/4
20   Engineering          active    Gi0/5, Gi0/6
30   Management           active    Gi0/7
1002 fddi-default         act/unsup
1003 token-ring-default   act/unsup

Enter fullscreen mode Exit fullscreen mode


Meanings of each row

VLAN:
 → VLAN ID( Identification number)
 → Available range 1〜4094

Name:
 → VLAN name

Status:
 → active    = Work normally
 → act/unsup = Not supported

Ports:
 → Ports assigned to the VLAN
 → Gi = GigabitEthernet

Enter fullscreen mode Exit fullscreen mode

About Default VLAN (VLAN 1)

VLAN 1 is a special case

・All ports belong to VLAN 1 as default
・Cannot be deleted
・Cannot be changed from name "default"

Enter fullscreen mode Exit fullscreen mode

Caution for security

It is dangerous to use VLAN 1 itself
 ↓
Reason:
Misconfiguration can cause unintended traffic across the network because all ports belong to VLAN 1 as default.

Measure:
It is common to move to other VLAN in production environment

Enter fullscreen mode Exit fullscreen mode


When the command is used

Troubleshooting

Verifying whether VLAN setting are correctly configured .

Example:
PC cannot connect to network
 ↓
Type "show vlan brief" and confirm the output
 ↓
Discover problem that this port was not assigned to VLAN

Enter fullscreen mode Exit fullscreen mode

Setting confirmation

After creating a new VLAN, run this command to verify the settings were applied correctly.

Example:
Confirm whether settings success correctly by type this command after new VLANN is created 

Enter fullscreen mode Exit fullscreen mode

Adding new devices

Setting after confirming "Which vlan we have to add to"

Example:
We want to add a new PC to the sales department network
 ↓
Confirming VLAN ID for sales department by typing "show vlan brief" 
    ↓
Assigning the port to the VLAN

Enter fullscreen mode Exit fullscreen mode


Command comparison in each vendor

Vendor Command
Cisco show vlan / show vlan brief
Juniper show vlans
HP / Aruba show vlans
Dell show vlan

Summary

VLAN :
To divide physical network into segment virtually
It can ensure security by network segmentation 

Show VLAN Command:
The command to confirm VLAN information on Cisco IOS Switch 

Main command:
show vlan       → Show detailed information
show vlan brief → Show overview( Most frequently used)
show vlan id XX → Show specific VLAN information

Use case:
・Troubleshooting
・Setting confirmation
・Adding new devices to VLAN

Caution:
・Command dedicated to Cisco IOS
・All port belong to VLAN 1 as default
・Don't use VLAN 1 in production environment

Enter fullscreen mode Exit fullscreen mode


Conclusion

At first, I had no idea what the show vlan command was actually displaying. Once I understood that VALN is a mechanism for dividing a network into virtual segments, the output - including the meaning of each column - fell into place naturally.