Basic Vlans and Trunks Part 2
1. Take 12 systems.
2. Change top three systems name and IP
Address as
(Morning Lab F
192.168.1.97 Afternoon Lab F
192.168.1.98 Evening Lab F
192.168.1.99)
3. Change left three systems name and IP
Address as
(Morning Lab1 192.168.1.27 Morning Lab2
192.168.1.28 Morning Lab3 192.168.1.29)
4. Change Down three systems name and IP
Address as
(Afternoon Lab1 192.168.1.37 Afternoon Lab2 192.168.1.38
Afternoon Lab3 192.168.1.39)
5. Change left three systems name and IP
Address as
(Evening Lab1 192.168.1.47 Evening Lab2
192.168.1.48 Evening Lab3 192.168.1.49)
6. Take
One switch2960 and configure as shown below.
Single click on
switch and select CLI (IOS command line interface)
Switch>
Switch>enable
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname CCNA
CCNA(config)#vlan 10
CCNA(config-vlan)#name LabF
CCNA(config-vlan)# vlan 20
CCNA(config-vlan)#name MorningLab
CCNA(config-vlan)# vlan 30
CCNA(config-vlan)#name AfternoonLab
CCNA(config-vlan)# vlan 40
CCNA(config-vlan)#name EveningLab
CCNA(config-vlan)#exit
CCNA(config)#exit
CCNA#
Now we will check vlans
CCNA#
show vlan
Now
we will access switrchport to vlan
CCNA#
CCNA#
config t
Enter configuration commands, one per line. End with CNTL/Z.
CCNA(config)#interface fastethernet 0/1
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 20
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/2
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 30
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/3
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 40
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/4
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 20
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/5
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 20
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/6
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 20
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/7
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 30
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/8
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 30
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/9
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 30
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/10
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 40
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/11
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 40
CCNA(config-if)#exit
CCNA(config)#interface fastethernet 0/12
CCNA(config-if)#switchport mode access
CCNA(config-if)#switchport access vlan 40
CCNA(config-if)#end
CCNA#show
vlan
Now try to ping from one Morning Lab
F(192.168.1.97) to Morning Lab 1(192.168.1.27)
It will replay.
Now try to ping from one
Morning Lab 1(192.168.1.97) to Morning Lab 3(192.168.1.29)
It will replay.
Now try to ping from one
Morning Lab 1(192.168.1.97) to Afternoon Lab 3(192.168.1.39)
It will Show request
timeout.
Try it from Afternoon and Evening Labs.
No comments:
Post a Comment