VLAN
• VLAN stands for virtual local area network. VLAN is a
technology we use for the purpose of Broadcast isolation or
segregation of LAN .
• Generally what happen in company there is so many
department , for that each and every department require pc
and to connect that pc we require Switch .If we buy different
switch for each department the cost of IT infra will going to
increase ,to save that cost of the company , network engineers
implement vlan on their switch.
So here we go.
Task-1 Create VLAN
VLAN 10 sales
VLAN 20 mrkt
VLAN 30 finance
VLAN 40 IT
Task-2 IP Range
Vlan 10 – [Link]/27
Subnet [Link]
Vlan 20 – [Link]/26
Subnet [Link]
Vlan 30 – [Link]/27
Subnet [Link]
Vlan 40 – [Link]/28
Subnet [Link]
Task-3 Assign VLAN to the respected port as per
diagram & assign IP to the PC
SOLUTION :-
• So, start first with the switch
Switch>en
Switch# conf t
Step 1 :- we will first create VLAN
Switch(config)#vlan 10
Switch(config)#name sales
Switch(config)#exit
Switch(config)#vlan 20
Switch(config)#name mrkt
Switch(config)#exit
Switch(config)#Vlan 30
Switch(config)#name finance
Switch(config)#exit
Switch(config)#vlan 40
Switch(config)#name IT
Switch(config)#exit
Step 2 :- Assignment of VLAN
Switch(config)#interface ethernet 0/0
Switch(config)#Switchport mode access
Switch(config)#Switchport access vlan 10
Switch(config)#Exit
Switch(config)#interface ethernet 0/1
Switch(config)#switchport mode access
Switch(config)#switchport access vlan 10
Switch(config)#exit
Switch(config)#interface ethernet 0/2
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 20
Switch(config)# exit
Switch(config)#interface ethernet 0/3
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 20
Switch(config)# exit
Switch(config)#interface ethernet 1/0
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 30
Switch(config)# exit
Switch(config)#interface ethernet 1/1
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 30
Switch(config)# exit
Switch(config)#interface ethernet 1/2
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 30
Switch(config)# exit
Switch(config)#interface ethernet 1/3
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 40
Switch(config)# exit
Switch(config)#interface ethernet 2/0
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 40
Switch(config)# exit
Switch(config)#interface ethernet 2/1
Switch(config)# switchport mode access
Switch(config)# switchport access vlan 40
Switch(config)# exit
Switch(config)# do show vlan
Switch(config)# do show running-config