Improve addNetworkConfigurationWithDhcp