← Back to list

VLAN

What is a VLAN?

Shiksha Satyal · 2026-05-01 15:40 · 0 claps · 0.7 min read
#vlan-configuration
Open on Medium ↗

VLAN

  1. What is a VLAN?

A VLAN is a logical grouping of devices on a network.

  1. What is the difference between VLAN and Subnetting?

VLAN

Works at the data-link layer. It is based on switch configuration.

Subnetting

Works on the network layer. It is based on IP addressing.

  1. Create a switch with 5 PCs. Create 2 VLANs and assign 2 PCs to 1 VLAN and another 3 PCs to another VLAN. Create different networks for the VLAN and test the connection.

Create a VLAN:

enable
configure terminal
vlan <vlan number>
name <name of vlan>
exit

Assign ports to the VLAN:

enable
configure terminal
interface <interface id>
switchport mode access
switchport mode <vlan id>

Assign a range of ports to the VLAN:

enable
configure terminal
interface range <interface id range>
switchport mode access
switchport mode <vlan id>

메타데이터
post_id
e95aab39c06a
slug
vlan-e95aab39c06a
url
https://medium.com/@shikshasatyal/vlan-e95aab39c06a
canonical_url
https://medium.com/@shikshasatyal/vlan-e95aab39c06a
author_url
https://medium.com/@shikshasatyal
status
ok
fetched_at
2026-06-24 16:30:55