added function to set the network adapter configuration