ping command: TTL Expired In Transit Error and Solution

When I try to ping other UNIX / Linux / BSD or MS-Windows servers in our network I get the following message:

TTL Expired In Transit

How do I fix this problem?

This error indicates network configuration problem. There is loop in routing:

A routing loop is a common problem with various types of networks, particularly computer networks. They are formed when an error occurs in the operation of the routing algorithm, and as a result, in a group of nodes, the path to a particular destination forms a loop. In the simplest version, a routing loop of size two, node A thinks that the path to some destination (call it C) is through its neighbouring node, node B. At the same time, node B thinks that the path to C starts at node A. Thus, whenever traffic for C arrives at either A or B, it will loop endlessly between A and B, unless some mechanism exists to prevent that behaviour.

How Do I Troubleshoot Routing Loop Problem?

To debug the problem you need to type the following command to see current routing table under UNIX / Linux / BSD / OS X operating systems:
# ip route show
# route -n
# netstat -rn
If you are using a hardware router or managed switch, check routing table using vendor specific route command, the following should work on cisco devices:
# show ip route
You can now find out wrong routing tables. You can delete or correct those routes using route command or ip command itself.
### delete example ###
ip route delete dev eth1
### set route example ###
ip route add dev eth0

In same cases you can simply reboot your router or managed switch and fix the problem.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • esam Almoubarak Nov 30, 2011 @ 17:00

    i have DVR conectet to internet throgh werless but i have problem when i ping ip TTL Expired In Transit please tel me who can i solved the problems

  • Godwin May 12, 2016 @ 15:15

    I have stopped routing and remote access service after that it was working good.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum