Wednesday 9 May 2012

Basic Vlans and Trunks Part 3


 Basic Vlans and Trunks Part 3

1.      Take 2 Switches.
2.      Connect 2 switches through cross over cable from Fastethernet 0/1 to Fastethernet 0/1.
3.     Configure the Hostname as well as the management LAN settings.
Switch>Enable
Switch#Config t
Switch(config)#hostname CCNA_1
CCNA_1(config)#interface VLAN 1
CCNA_1(config-if)#ip address 192.168.1.1 255.255.255.0
CCNA_1(config-if)#no shut

CCNA_1(config)#
ip default-gateway 192.168.1.254
Switch>Enable
Switch#Config t
Switch(config)#hostname CCNA_2
CCNA_2(config)#interface VLAN 1
CCNA_2(config-if)#ip address 192.168.1.2 255.255.255.0
CCNA_2(config-if)#no shut

CCNA
_2(config)#ip default-gateway 192.168.1.254.
4.      Take 6 systems and rename as M1,M2,A1,A2,E1 and E2 as in the figure.
5.       Using the Config tab in Packet Tracer, configure the IP address, mask, and default gateway on each host
A1 – 192.168.10.1 255.255.255.0 with a default gateway of 192.168.10.254
A2 – 192.168.10.2 255.255.255.0 with a default gateway of 192.168.10.254

M1 – 192.168.20.1 255.255.255.0 with a default gateway of 192.168.20.254
M2 – 192.168.20.2 255.255.255.0 with a default gateway of 192.168.20.254

E1 – 192.168.30.1 255.255.255.0 with a default gateway of 192.168.30.254
E2 – 192.168.30.2 255.255.255.0 with a default gateway of 192.168.30.254

6.      Configure the Vlans on switch0(CCNA_1)
       CCNA_1#config t
   CCNA_1(config)#vlan 10
   CCNA_1(config-vlan)#name M1
   CCNA_1(config-nlan)#exit
   CCNA_1(config)#
   CCNA_1(config)#vlan 20
   CCNA_1(config-vlan)#name A1
   CCNA_1(config-nlan)#exit
   CCNA_1(config)#
   CCNA_1(config)#vlan 30
   CCNA_1(config-vlan)#name E1
   CCNA_1(config-nlan)#exit
   CCNA_1(config)#exit
   CCNA_1#
7.      Configure the Vlans on switch1(CCNA_2)
   CCNA_2#config t
   CCNA_2(config)#vlan 10
   CCNA_2(config-vlan)#name M1
   CCNA_2(config-nlan)#exit
   CCNA_2(config)#
   CCNA_2(config)#vlan 20
   CCNA_2(config-vlan)#name A1
   CCNA_2(config-nlan)#exit
   CCNA_2(config)#
   CCNA_2(config)#vlan 30
   CCNA_2(config-vlan)#name E1
   CCNA_2(config-nlan)#exit
   CCNA_2(config)#exit
   CCNA_2#
8.      Assign ports to VLAN
     CCNA_1#configure terminal
      CCNA_1(config)#interface fastethernet 0/2
      CCNA_1(config-if)#switchport mode access
CCNA_1(config-if)#switchport access vlan 10
 
CCNA_1#configure terminal
      CCNA_1(config)#interface fastethernet 0/3
CCNA_1(config-if)#switchport mode access
CCNA_1(config-if)#switchport access vlan 20

CCNA_1#configure terminal
      CCNA_1(config)#interface fastethernet 0/4
CCNA_1(config-if)#switchport mode access
CCNA_1(config-if)#switchport access vlan 30

          Another switch CCNA_2
           CCNA_2#configure terminal
      CCNA_2(config)#interface fastethernet 0/2
CCNA_2(config-if)#switchport mode access
CCNA_2(config-if)#switchport access vlan 10

CCNA_2#configure terminal
      CCNA_2(config)#interface fastethernet 0/3
CCNA_2(config-if)#switchport mode access
CCNA_2(config-if)#switchport access vlan 20

CCNA_2#configure terminal
      CCNA_2(config)#interface fastethernet 0/4
CCNA_2(config-if)#switchport mode access
CCNA_2(config-if)#switchport access vlan 30
 
9.      Configure the trunk
             CCNA_1(config)#interface fastethernet 0/1
                  CCNA_1(config-if)#switchport mode trunk
                  CCNA_1(config-if)#end
                  CCNA_2(config)#interface fastethernet 0/1  
                   CCNA_2(config)#switchport mode trunk
                  CCNA_2(config)#end

10.   Test the VLANs and the Trunk

                  Ping from the E1 host to the E2 host The ping should be successful.

     

     If is there any mistakes and for any clarification please mail to ccnalab06@gmail.com (zerosix)



     

No comments:

Post a Comment