Lessons · Network switches · creating a VLAN
Making a VLAN
`vlan <number>` in global configuration creates it and opens VLAN configuration mode, where `name` gives it a label.
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 is the first half of every VLAN job. The second half is putting ports in it, and doing them in the wrong order is where the surprise in the next lesson comes from.
How to think about it
Create the VLAN, name it, exit. Then check `show vlan brief` before touching any port, because a typo in the number is invisible until traffic stops.
Worked example
enableThe # prompt.
configure terminalInto configuration mode.
vlan 50Created, and you are now in (config-vlan)#.
name PRINTERSThe label that shows up in show vlan brief.
exitOut of the VLAN, back to (config)#.
endOut.
show vlan brief50 PRINTERS active, with no ports. That is a correctly created and completely unused VLAN.
Your turn
Name the VLAN you are inside PRINTERS.
PRINTERS
Console into a switch
The trap
Naming a VLAN with a space in it. `name Sales Team` keeps Sales and drops the rest, exactly like hostname does.
Practise creating a VLAN on HoneA question on it now, a coding challenge where there is one, and it is remembered for review. Free, no email needed.