Introduction to the troubleshooting method of the peer ip under linux ping failure

The environment where the problem occurs is centos7.6. The two network ports ip added by this machine are 192.168.20.189 192.168.20.10 respectively, but the ip through the 180 network port is 192.168.20.180 after going out. Then log in to the terminal of 20.189 from ping 180 and always ping differently.

The specific troubleshooting methods are as follows:
1. Use the traceroute command to check:
traceroute [-n] -T -p <target port number> Host
traceroute -n -T -p 192.168.20.180

最后找到原因,同意主机加了同一网段的ip,当使用ping 命令的时候,去ping另外连接的一个网口的ip时候,发生冲突了,同意主机上不同网口上,在添加ip的时候,尽量不要使用同一网段的ip。
重要的事说三遍,注意注意!!!!

Guess you like

Origin blog.csdn.net/weixin_44881103/article/details/102853011