GNS3 can't ping switch

in CCNA & CCENT
I have dhcp setup on a router in GNS3 with my pc directly connected to a physical switch. I can ping the Internet but not the switch. What am I doing wrong?