Il comando è traceroute. Per conoscere il tuo ip esterno puoi anche andare con telnet sul router e cercarlo lì.