Project Vlan

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

PROJECT : Virtual Local Area Network (VLAN)

OBJECTIVE:CONFIGURING VLAN APPARATUS: PCs,Switches,Cross cables,Straight Cales etc.

PROJECT SCENARIO:

SWITCH 1 CONFIGURATION
Switch>enable

STEP 1:Create Vlans


Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Switch(vlan)#vlan 10 name student VLAN 10 added: Name: student Switch(vlan)#vlan 20 name teacher VLAN 20 added: Name: teacher Switch(vlan)#exit APPLY completed. Exiting.... Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.

STEP 2:Assign Switchport on fastethernet interface ports


Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit

STEP 3:Assign Trunk Port to Neighbour Switch


Switch(config)#interface fastEthernet 0/3 Switch(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

SWITCH 2 CONFIGURATION
Switch>enable

STEP 1:Create Vlans


Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Switch(vlan)#vlan 10 name student VLAN 10 added: Name: student Switch(vlan)#vlan 20 name teacher VLAN 20 added: Name: teacher Switch(vlan)#exit APPLY completed. Exiting.... Switch#conf terminal Enter configuration commands, one per line. End with CNTL/Z.

STEP 2:Assign Switchport on fastethernet interface ports


Switch(config)#inter fastEthernet 0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#inter fastEthernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20

Switch(config-if)#exit Switch(config)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

STEP 3:Assign Trunk Port to Neighbour Switch


Switch(config)#interface fastEthernet 0/4 Switch(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to up

SWITCH 3 CONFIGURATION Switch>enable STEP 1:Create Vlans Switch#vlan database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Switch(vlan)#vlan 10 name student VLAN 10 added: Name: student Switch(vlan)#vl Switch(vlan)#vlan 20 n Switch(vlan)#vlan 20 name teacher VLAN 20 added: Name: teacher Switch(vlan)#exit APPLY completed. Exiting.... Switch#conf Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. STEP 2:Assign Switchport on fastethernet interface ports Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10

Switch(config-if)#exit Switch(config)#interface fastEthernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#exit Switch(config)# %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up

VLANS VLAN 10:-PC0,PC2,PC4 THESE PCS ARE PING TOGETHER VLAN 20:-PC1,PC3,PC5 THESE PCS ARE PING TOGETHER

You might also like