a program running in linux system and get the gateway's ip address