Thats a leakage in technology which you can term as VLAN Leakage. The reason WHY it is pinging is because you have access ports configured on both the switches which are connected to each other.
Now when frame comes to fa0/1 port on 2924 switch and because that port is not a trunk port but just an access port when frame moves out of that potr there is no tagging on that frame and its just a frame without any vlan information and once it reaches 3560 switch on fa0.1 and because it is configured also as an access port for vlan 2 it assigns PVID 2 for that frame and now that frame is a part of vlan 2 when it reaches 3560 backplane and is the reason your communication is working between switches.
If you configure the connection between the 2 switches as a trunk port it will not work.
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...