add a function to intialize all the network interfaces