Hone

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

enable
The # prompt.
configure terminal
Into configuration mode.
vlan 50
Created, and you are now in (config-vlan)#.
name PRINTERS
The label that shows up in show vlan brief.
exit
Out of the VLAN, back to (config)#.
end
Out.
show vlan brief
50 PRINTERS active, with no ports. That is a correctly created and completely unused VLAN.

Your turn

Name the VLAN you are inside PRINTERS.

 PRINTERS

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.