Ad space (banner)
📡Networking Lessons
Lesson 14 / 39

Creating a VLAN with vlan

When you want to actually create a new VLAN group, use vlan. It is used in configuration mode: it creates the VLAN with the number you give and drops you into that VLAN's configuration mode.

The syntax is vlan number. Numbers range from 1 to 4094, and the number is how the VLAN is identified.

Running vlan 10 creates VLAN 10, changes the prompt to (config-vlan)#, and lets you continue with settings such as its name.

A common stumble is reusing a VLAN number that is already serving another purpose, sowing confusion in the network design. A VLAN numbering register saves you here.

In real work, when a new department or system arrives, the standard procedure is to allocate a VLAN number first and then create it with this command.

Networking
Try it (type this into the pseudo terminal)
vlan 10

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)