This might seem silly, but have you verified what the network settings are? (Apple Menu=>System Preferences=>Network | Show Built-in Ethernet). Since it sounds like this was a second hand machine, it might be manually configured for a different network setup. Swich it to Configure Using DHCP...