configure vlan

How To Configure Vlan in Cisco Switch

Cisco Switching Network Administrator
 Vlan means virtual local area network. its use logically separate workstation. in this topology we use two vlan for sales and MKT.now we configure vlan for sales and MKT in this topology
Step 1
Create Vlan in Cisco Switch
IOU1(config)#vlan 50
IOU1(config-vlan)#name sales
IOU1(config)#vlan 60
IOU1(config-vlan)#name MKT
Verify Vlan
IOU1#show vlan brief
VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Et0/0, Et0/1, Et0/2, Et0/3
Et1/0, Et1/1, Et1/2, Et1/3
Et2/0, Et2/1, Et2/2, Et2/3
Et3/0, Et3/1, Et3/2, Et3/3
50 sales active
60 MKT active
Then Assign Vlan in specific port
IOU1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
IOU1(config)#int e0/0
IOU1(config-if)#des
IOU1(config-if)#description sales
IOU1(config-if)#sw
IOU1(config-if)#switchport mo
IOU1(config-if)#switchport mode ac
IOU1(config-if)#switchport mode access
IOU1(config-if)#sw
IOU1(config-if)#switchport ac
IOU1(config-if)#switchport access vl
IOU1(config-if)#switchport access vlan 50
IOU1(config-if)#int e0/1
IOU1(config-if)#description sales
IOU1(config-if)#switchport mode access
IOU1(config-if)#switchport access vlan 50
IOU1(config-if)#int e0/2
IOU1(config-if)#description MKT
IOU1(config-if)#switchport access vlan 60
IOU1(config-if)#int e0/3
IOU1(config-if)#description MKT
IOU1(config-if)#switchport access vlan 60To verify port status
IOU1#show interfaces status
Port       Name     Status           Vlan      Duplex       Speed               Type
Et0/0    sales      connected      50           auto           auto              unknown
Et0/1    sales       connected     50           auto           auto              unknown
Et0/2   MKT       connected     60          auto           auto               unknown
Et0/3   MKT       connected     60          auto            auto               unknown

1 thought on “How To Configure Vlan in Cisco Switch

Leave a Reply

Your email address will not be published. Required fields are marked *