bug fixing - gets to doing http-get without error

fixed an error in getting the ip network data. Also added setting the
dhcp mode as without it the dns server addresses are not set correctly