> i can see that ifconfig gives me ip from dhcp
According to your last post, you did not get an ip from the dhcp server.
You might try manually configuring it: $ sudo ifconfig eth0 <client ip> netmask <255.255.255.0> UP
Then add the default gateway to the route table: $ sudo route add default gw <ip of gateway>
Then test it: $ ping
www.google.com