Like others have mentioned you'll require a router preferably a 3550 to route between vlans 2 and 10 in order for PC1 and PC2 to ping each other. Also the ports to which the cross-over cable is connected on both switches MUST be configured as Trunk (switchport mode trunk) and not access.
Apparently you can have two NICs on one of the PCs/Server and configure them as default gateways for both Vlans. See the vlan tutorial on the website (classic solution).
Hope this helps!
"...you are never too old to learn" anon
Re: Inter VLAN communcation
10 years 9 months ago #25584
Although this isn't a recommended setup, it will work. Here's why.
When a frame from PC1 enters SW1, it is marked as VLAN 2. The switch compares the destination MAC to its CAM and forwards it out the appropriate VLAN 2 port facing SW2. The frame isn't tagged, because the port is configured as an access port.
SW2 receives this untagged frame on its access port, and marks it as VLAN 10. It performs a CAM lookup and forwards the frame out the appropriate VLAN 10 port.
Remember, VLANs are only locally significant to a switch.