Create VLANS on a 2950 Switch

vlan

 

create vlans on a switch

Switch# configure terminal

Switch(config)# vlan 2

Switch(config-vlan)# name engineering

Switch(config-vlan)# exit

Switch(config)#vlan3

Switch(config-vlan)# name marketing

Switch(config-vlan)# exit

Switch(config)#vlan4

Switch(config-vlan)# name accounting

Switch(config-vlan)# exit

Switch(config)# interface fastethernet0/2

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 2

Switch(config-if)# exit

Switch(config)# interface fastethernet0/3

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 3

Switch(config-if)# exit

Switch(config)# interface fastethernet0/4

Switch(config-if)# switchport mode access

Switch(config-if)# switchport access vlan 4

Switch(config-if)# end

In this way all the port no 2 of the three switches will be in engineering vlan , all port no 3 will be in marketing vlan and all port no 4 in accounting vlan . All the machines in a particular vlan can communicate with each other even after being on different floors .

Comments are closed.

(adsbygoogle = window.adsbygoogle || []).push({}); //--> Feedjit Flag Counter