Full function of Ping and ifconfig