Traceroute in Azure SSH Based

Richelle Lanuza 96 Reputation points
2022-02-02T05:43:17.097+00:00

May I know if there's a way how to traceroute the Google DNS in SSH Based of Azure? Everytime I configured the traceroute in SSH Based. The prompted is always like this 170431-ssh.jpg

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
775 questions
{count} votes

3 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2022-02-02T09:21:47.213+00:00

    @Richelle Lanuza Thank you for reaching out to Microsoft Q&A.

    Your Traceroute reaches the destination i.e., google.com as seen from the last hop (#23), it is successful. However, all the requests to the intermediate routers have timed out as seen from the above CMD prompt.

    This happens because Traceroute by default uses ICMP and this ICMP packet (ping) was silently discarded by the intermediate routers. This happens because usually they are setup not to respond to ICMP packets. This is also true with Azure Network. This does not mean that the Traceroute did not succeed ad you can see the last hop reaches the destination and shows the RTT as well.

    If you wish to see a better output i.e., responses from intermediate routers as well, try using TCP Traceroute- https://www.namecheap.com/support/knowledgebase/article.aspx/9777/2194/how-to-use-tcp-traceroute/

    Hope this helps. Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    0 comments No comments

  2. Richelle Lanuza 96 Reputation points
    2022-02-04T01:50:59.407+00:00

    Hi @SaiKishor-MSFT Do have any idea, how to change the Default Gateway through SSH in Azure?

    0 comments No comments

  3. suvasara-MSFT 10,076 Reputation points Moderator
    2022-02-04T07:09:38.693+00:00

    @Richelle Lanuza , you cannot change default gateway in Azure. Instead, you can create custom, or user-defined(static), routes in Azure to override Azure's default system routes.
    Here is a ref doc that clearly explains about custom UDR setup for your subnet.

    Also, In Azure Instead of Ping you should use PSping and for traceroute use NMAP as they use TCP port for detailed traffic route flows.

    Note: Sometimes it blocks some part of the route, maybe when it hits the datacenter.

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.