To run MTR (My Traceroute) from your Linux server, you need to ensure MTR is installed on your server. MTR is a great tool for network diagnostics.
Step 1: Install MTR
You can install MTR using the package manager.
For Debian/Ubuntu:
sudo apt update sudo apt install mtr -y
For CentOS/RHEL/Fedora
sudo yum install mtr -y
Step 2: Run MTR
Once installed, you can run MTR with the following command:
mtr <hostname or IP address>
-
Example:
mtr www.krypt.com
This command will start running the MTR session to www.krypt.com
Please wait for 2-3 min before saving the MTR report.
Step 3: Saving MTR Output to a File
You can save the output to a text file for further analysis:
sudo mtr -r www.krypt.com > mtr_report.txt
This will create a file named mtr_report.txt
with the MTR report.
Notes:
-
Network Permission: Some servers may restrict ICMP traffic, so MTR might not work as expected if outgoing ICMP requests are blocked.