Monday 14 May 2012

Basic Vlans and Trunks Part 4


 Basic Vlans and Trunks Part 4


1.      Take 3 Switches.
2.      Connect 3 switches through cross over.
3.     Configure the Hostname as well as the Vlans.
        Switch>
                   Switch>enable
                   Switch#hostname
                  Translating "hostname"...domain server (255.255.255.255)
                  % Unknown command or computer name, or unable to find computer address

                  Switch#config t
                  Enter configuration commands, one per line.  End with CNTL/Z.
                  Switch(config)#hostname CCNA
                  CCNA(config)#vlan 99
                   CCNA(config-vlan)#name Admin
                   CCNA(config-vlan)#exit
                  CCNA(config)#vlan 10
                  CCNA(config-vlan)#name MLAB
                  CCNA(config-vlan)#exit
                   CCNA(config)#vlan 20
                   CCNA(config-vlan)#name ALAB
                   CCNA(config-vlan)#exit
                   CCNA(config)#vlan 30
                   CCNA(config-vlan)#name ELAB
                   CCNA(config-vlan)#exit
                   CCNA(config)#exit
                   CCNA# copy running-config startup-config
                   Destination filename [startup-config]?
                   Building configuration...
                   [OK]
                   CCNA#

4.      Same configuration on another switches.
5.      Take 7 systems and rename as the following figure.
6.       Using the Config tab in Packet Tracer, configure the IP address, mask, and default gateway on each host
 PC – 192.168.10.100 255.255.255.0
 PC – 192.168.10.101 255.255.255.0

PC – 192.168.20.100 255.255.255.0
PC – 192.168.20.101 255.255.255.0

PC – 192.168.30.100 255.255.255.0
PC – 192.168.30.101 255.255.255.0

Admin System 192.168.99.100 255.255.255.0

7.      Configure the Vlans on switch0(CCNA)
               CCNA2#config t
                Enter configuration commands, one per line.  End with CNTL/Z.
                CCNA2(config)#int range fa0/6-10
                CCNA2(config-if-range)#switchport mode access
                 CCNA2(config-if-range)#switchport access vlan 10
                 CCNA2(config-if-range)#exit
                 CCNA2(config)#int range fa0/11-17
                 CCNA2(config-if-range)#switchport mode access
                 CCNA2(config-if-range)#switchport access vlan 20
                 CCNA2(config-if-range)#exit
                 CCNA2(config)#int range fa0/18-23
                 CCNA2(config-if-range)#switchport mode access
                 CCNA2(config-if-range)#switchport access vlan 30
                 CCNA2(config-if-range)#exit
                 CCNA2(config)#int fa0/24
                  CCNA2(config-if)#switchport mode access
                  CCNA2(config-if)#switchport access vlan 99
                   CCNA2(config-if)#exit
                   CCNA2(config)#exit
8.      Same configuration on another switches    
9.      Configure the trunk
Switch CCNA
                  CCNA>enable
                   CCNA#config t
                   Enter configuration commands, one per line.  End with CNTL/Z.
                    CCNA(config)#int range fa0/1-2
                     CCNA(config-if-range)#switchport mode trunk

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

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


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

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

                CCNA(config-if-range)#switchport trunk native vlan 99
              CCNA(config-if-range)#exit
            
                   CCNA(config-if)#exit
                   CCNA(config)#exit
              Switch CCNA1
                     CCNA1#config t
                    Enter configuration commands, one per line.  End with CNTL/Z.
                     CCNA1(config)#int fa0/1
                     CCNA1(config-if)#switchport mode trunk
                      CCNA1(config-if)#switchport mode
                      %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on 
                       FastEthernet0/1                        
                      (1), with CCNA FastEthernet0/1 (99).

                        % Incomplete command.
                       CCNA1(config-if)#switchport trunk native vlan 99
                       CCNA1(config-if)#exit
                       CCNA1(config)#exit
                    Switch CCNA2
                     CCNA2#config t
                      Enter configuration commands, one per line.  End with CNTL/Z.
                     CCNA2(config)#int fa0/1
                     CCNA2(config-if)#switchport mode trunk
                      CCNA2(config-if)#switchport mode
                      %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on     
                       FastEthernet0/1                        
                      (1), with CCNA FastEthernet0/1 (99).

                        % Incomplete command.
                       CCNA2(config-if)#switchport trunk native vlan 99
                       CCNA2(config-if)#exit
                       CCNA2(config)#exit

                      Now try to ping from PC 192.168.10.100 to 192.168.10.101.

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



     

No comments:

Post a Comment