Practical LAB (CCNA) : Why can’t PC2 ping PC4?“ and fix the issue

Excercise 1: 
Goal. Use the diagram below and configure the following: 
1. Hostname according to the diagram and a banner on Switch1 with your name. 
2. Access interfaces and VLANs. 
3. Trunk interfaces. 
4. IP addresses on PCs. 
5. Answer the question „Why can’t PC2 ping PC4?“ and fix the issue.










1. Hostname and banner 
Switch>enable
Switch#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname S1
S1(config)#banner motd #Cyber Quince#
2. Access and VLANs
Switch1
S1(config)#interface FastEthernet 0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 5
% Access VLAN does not exist. Creating vlan 5
S1(config-if)#exit
S1(config)#interface FastEthernet 0/2
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 7
% Access VLAN does not exist. Creating vlan 7
S1(config-if)#exit
S1(config)#interface GigabitEthernet 0/1
S1(config-if)#switchport mode trunk

S1(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1,
changed state to up

Switch2
S2(config)#interface FastEthernet 0/1
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 5
% Access VLAN does not exist. Creating vlan 5
S2(config-if)#exit
S2(config)#interface range GigabitEthernet 0/1-2
S2(config-if-range)#switchport mode trunk

S2(config-if-range)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,
changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2,
changed state to up
Switch3

S2(config)#interface FastEthernet 0/1
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 7
% Access VLAN does not exist. Creating vlan 7
S2(config-if)#exit
S2(config)#interface FastEthernet 0/2
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan 5
% Access VLAN does not exist. Creating vlan 5
S2(config-if)#exit
S2(config)#interface GigabitEthernet 0/2
S2(config-if)#switchport mode trunk
3. Trunks Switch1 
S1(config)#interface GigabitEthernet 0/1 
S1(config-if)#switchport mode trunk 


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

 Switch2 S2(config)#interface range GigabitEthernet 0/1-2 
S2(config-if-range)#switchport mode trunk 


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

Switch3 
S2(config)#interface GigabitEthernet 0/2 
S2(config-if)#switchport mode trunk


5. Why can’t PC2 ping PC4 PC2 should be able to ping PC4, since they belong to the same VLAN. But the ping fails. 
Reason: Switch2, which is on the way, isn’t aware that VLAN 7 exists in the network.

 Solution: create VLAN 7 on Switch2: S2(config)#vlan 7


Post a Comment

Previous Post Next Post