Use MTR command in Linux to view the traceroute report for a remote machine. As a network administrator, you need to learn the usage of mtr command to Diagnosing Network issues.
MTR command is a powerful tool to diagnose and isolate networking errors and provide reports of the network.
Install MTR command in Linux
sudo apt update && apt upgrade sudo apt install mtr-tiny
sudo yum update sudo yum install mtr
brew install mtr
The Syntax mtr command
$ mtr [domainName/IP]
[vagrant@DevopsRoles ~]$ mtr devopsroles.com
The output as below
How to view hostnames and numeric IP addresses
[vagrant@DevopsRoles ~]$ mtr -b google.com
The output as picture below
Enable Report Mode
[vagrant@DevopsRoles ~]$ mtr -r -c 10 google.com >mtr-report-google
The output report as below
MTR command a network diagnostic tool. More information “$ man mtr” command in Linux.