Adds dhcp configuration function