Lessons · Network switches · reading the VLAN table
Reading the VLAN table
`show vlan brief` lists every VLAN with its number, its name, and every access port in it.
Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.
What it is for
It answers the two questions you will actually be asked: does this VLAN exist, and is this desk in it. One screen, both answers.
How to think about it
Read the Ports column, not the names. A VLAN with a perfect name and no ports is doing nothing, and that is the most common configuration mistake there is.
Worked example
enableThe # prompt.
configure terminalInto configuration mode.
vlan 30Something to look at.
name SALESNamed.
exitOut of the VLAN.
interface gi0/2One port.
switchport mode accessAccess.
switchport access vlan 30In VLAN 30.
endOut.
show vlan brief30 SALES active Gi0/2. The port is on the line, so the VLAN is really in use.
Your turn
List every VLAN and the ports in it.
show vlan
Console into a switch
The trap
Looking for a trunk port in this table. Trunks are not in one VLAN, so they do not appear against any of them. `show interfaces status` shows those.
Practise reading the VLAN table on HoneA question on it now, a coding challenge where there is one, and it is remembered for review. Free, no email needed.