Added function to check dhcp/static and reset the network