cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3374
Views
5
Helpful
7
Replies

Cannot ping over switches (VLANs configured)

Pietro955
Level 1
Level 1

Hi guys, this is my firts post here, I'm studying for the CCNA exam and now I'm learning how to use vlans. As the title says I cannot ping PCs or other objects over the first switch but I'm still able to ping sub interfaces. This is the configuration, thanks for your time:

 

Switc0 config:
Current configuration : 1687 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/2

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/3

switchport access vlan 10

switchport mode access

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/11

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/12

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/13

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/14

switchport access vlan 20

switchport mode access

!

interface FastEthernet0/15

switchport access vlan 30

switchport mode access

!

interface FastEthernet0/16

switchport access vlan 40

switchport mode access

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

switchport access vlan 50

switchport mode access

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

switchport mode trunk

!

interface FastEthernet0/24

switchport mode trunk

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

!

end



Router0 config:

Current configuration : 1187 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

!

!

!

!

ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

interface FastEthernet0/0.1

encapsulation dot1Q 10

ip address 172.16.10.1 255.255.255.0

!

interface FastEthernet0/0.2

encapsulation dot1Q 20

ip address 172.16.20.1 255.255.255.0

!

interface FastEthernet0/0.3

encapsulation dot1Q 30

ip address 172.16.30.1 255.255.255.0

!

interface FastEthernet0/0.4

encapsulation dot1Q 40

ip address 172.16.40.1 255.255.255.0

!

interface FastEthernet0/0.5

encapsulation dot1Q 50

ip address 172.16.50.1 255.255.255.0

!

interface FastEthernet0/0.6

encapsulation dot1Q 60

ip address 172.16.60.1 255.255.255.0

!

interface FastEthernet0/0.7

encapsulation dot1Q 70

ip address 172.16.70.1 255.255.255.0

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Vlan1

no ip address

shutdown

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end


Switch1 config:

Current configuration : 1149 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

switchport mode trunk

!

interface FastEthernet0/23

switchport mode trunk

!

interface FastEthernet0/24

switchport mode trunk

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

!

end



Switch2 config:

Current configuration : 1409 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

switchport access vlan 60

switchport mode access

!

interface FastEthernet0/2

switchport access vlan 60

switchport mode access

!

interface FastEthernet0/3

switchport access vlan 60

switchport mode access

!

interface FastEthernet0/4

switchport access vlan 60

switchport mode access

!

interface FastEthernet0/5

switchport access vlan 60

switchport mode access

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

switchport access vlan 50

switchport mode access

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

switchport mode trunk

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

!

!

end



Switch3 config:

Current configuration : 1358 bytes

!

version 12.2

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

!

!

spanning-tree mode pvst

spanning-tree extend system-id

!

interface FastEthernet0/1

switchport access vlan 70

switchport mode access

!

interface FastEthernet0/2

switchport access vlan 70

switchport mode access

!

interface FastEthernet0/3

switchport access vlan 70

switchport mode access

!

interface FastEthernet0/4

switchport access vlan 70

switchport mode access

!

interface FastEthernet0/5

switchport access vlan 70

switchport mode access

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

switchport mode trunk

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

login

!

!

 

 

 

 

 

 

1 Accepted Solution

Accepted Solutions


So far I spot issue:
Vlans are missing on switches; even switch that only passing others traffic (trunking) must have vlan id that should pass over. in other words, if vlan x does not exists on switch, vlan x is removed from trunking. Sw 0 missing vlan 60; switch missing all of them.

View solution in original post

7 Replies 7

Martin L
VIP
VIP

 

do PCs have default gateways set up?  like all PCs in vlan 10 should point to  172.16.10.1 and be on  172.16.10.x/24 network. 

if this is in Packet tracer, please zip it and attach here, it is easier/faster to spot issue

 

Regards, ML
**Please Rate All Helpful Responses **

Yes... I can ping the pcs that are connected to the same switch as the router is connected, but can't ping over the first switch


So far I spot issue:
Vlans are missing on switches; even switch that only passing others traffic (trunking) must have vlan id that should pass over. in other words, if vlan x does not exists on switch, vlan x is removed from trunking. Sw 0 missing vlan 60; switch missing all of them.

Thanks, I really appreciate. I would like to know why tho. If you have a book or some PDF files to read about it would be nice, because in the slides from where I'm studying it's not mentioned, and I'd like to know how VLANS and protocols works in the deep. Thanks for your answer :)


I think you need ccna book to pass the exam; the one by W. Odom is good one.
I look for source for your question"Why vlan x is removed from trunking?"
but compare show interface trunk before and after a "fix" was apply

Switch#sh int trunk 
Port        Mode         Encapsulation  Status        Native vlan
Fa0/22      on           802.1q         trunking      1

Port        Vlans allowed on trunk
Fa0/22      1-1005

Port        Vlans allowed and active in management domain
Fa0/22      1,70

EDIT: this switch will not let traffic in vlans 10 thru 60 pass over its trunks; only vlan 1 and 70

Here is the zip, thanks mate

This is SW1 after the fix

 

 

 

 

Desktop Screenshot 2020.05.21 - 21.51.51.01 (2).png

 

 

 

 

Review Cisco Networking for a $25 gift card