VIRTUAL LOCAL AREA NETWORKS (VLANs)

VIRTUAL LOCAL AREA NETWORKS (VLANs)

“A virtual LAN (VLAN) is a group of networking devices in the same broadcast domain”

To verify the current configuration of the Switch.


Syntax:

Switch#show vlan

Output:








To Create a VLAN on a Switch

VLAN Creation:

Syntax:

Switch(config)#vlan <VLAN No.>

Switch(config-vlan)#name <name> 



Assigning VLAN membership to the ports:

Syntax:

Switch(config)#interface <type> <No.>

Switch(conf ig-if )#switchport mode access

Switch(config-if)#switchport access vlan <VLAN No.>

Switch(config-if)#exit






ON SWITCH1

VAN CREATION:

Switch1#conf t
Switch1(config)#vlan 10
Switch1(config-vlan)#name admin
Switch1(config-vlan)#exit
Switch1(config)#vlan 20
Switch1(config-vlan)#name accounts

Switch1(config-vlan)#exit


Assigning membership to ports:

Switch1(config)#interface fastEthernet 0/2
Switch1(config-if)#switchport mode access 
Switch1(config-if)#switchport access vlan 10
Switch1(config-if)#exit
Switch1(config)#interface fastEthernet 0/3
Switch1(config-if)#switchport mode access 
Switch1(config-if)#switchport access vlan 10
Switch1(config-if)#exit
Switch1(config)#interface fastEthernet 0/4
Switch1(config-if)#switchport mode access 
Switch1(config-if)#switchport access vlan 10
Switch1(config-if)#
Switch1(config-if)#exit
Switch1(config)#
Switch1(config)#interface fastEthernet 0/5
Switch1(config-if)#switchport mode access 
Switch1(config-if)#switchport access vlan 20
Switch1(config-if)#exit
Switch1(config)#interface fastEthernet 0/6
Switch1(config-if)#switchport mode access 
Switch1(config-if)#switchport access vlan 20
Switch1(config-if)#exit
Switch1(config)#
Switch1(config)#interface fastEthernet 0/7
Switch1(config-if)#switchport mode access 
Switch1(config-if)#switchport access vlan 20
Switch1(config-if)#exit
Switch1(config)#exit
Switch1#


Verification of VLAN:

Switch1#show vlan


OUTPUT:





No comments:

Post a Comment