Basically you need to ensure that at least one of the (several) dhcp client packages (e.g. pump or dhcp-client) is already installed. Then edit the file:
/etc/network/interfaceswhich is the configuration file for ifup so that the relevant interface says something like:
iface eth0 inet dhcpSee the documentation e.g. man 5 interfaces for further details.
Apparently there are some tools/packages to automate setting up the
/etc/network/interfaces file and other networking stuff,
but no-one seems to bother to install them anyway.