Utils net

Move some network related functions from utils_test to utils_net. And update the mac format to make the function can be used by Windows guests.