Find router and local ip address in linux systems