Edit /etc/network/interfaces and put the following into it (I assume your network interface is eth0):
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
Then restart the network:
Code:
/etc/init.d/networking restart