Create VLANS – One Switch Configuration

A VLAN is a seperate LAN. It can be created on the switch. Each switch has a default VLAN which is VLAN1. Hosts can be on the same subnet or not. Best practices dictate they should be on different subnets. Below are the commands to create two VLANS. The Student VLAN and the Management VLAN.VLAN

Create the VLANs, 50(students), 60(teachers), 99(mgt), 150(voice)

 
enable
configure terminal
vlan 50
name students
vlan 60
name teachers
vlan 99
name mgt

Assign ports to each VLAN
For VLAN students (ports 5 to 20 on interface 0)

interface range fastEthernet 0/5-15
switchport mode access
switchport access vlan 50

For VLAN teachers (ports 21 to 23 on interface 0)

interface range fastEthernet 0/20-23
switchport mode access
switchport access vlan 60

For VLAN mgt (ports 24 on interface 0) and also assign IP address in order to communicate with the switch

interface fastEthernet 0/24
switchport mode access
switchport access vlan 99
interface vlan 99
ip address 192.168.99.2 255.255.255.0
no shutdown
Share Button