I have such a topology made of network namespaces and veth pairs:
------ ------ ------ | a1 | | r1 | | r2 | | | a1-eth0-----------r1-eth0 | |r1-eth1--------------r2-eth1| | -----(184.108.40.206/30) (220.127.116.11/30)----(18.104.22.168/30) (22.214.171.124/30)-----
net.ipv4.ip_forward is 1.
I can successfully ping
a1 with the command:
ping -I a1-eth0 -c1 126.96.36.199
Also, I can successfully ping
r1-eth1 interface with the command:
ping -I r1-eth1 -c1 188.8.131.52
But then, why can't I ping
r1-eth0 interface? I get Destination Host Unreachable:
ping -I r1-eth0 -c1 184.108.40.206 PING 220.127.116.11 (18.104.22.168) from 22.214.171.124 r1-eth0: 56(84) bytes of data. From 126.96.36.199 icmp_seq=1 Destination Host Unreachable --- 188.8.131.52 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
The same way, I cannot ping one interface of router r1 by another interface of this very router:
# here I get Destination Host Unreachable again: ping -I r1-eth0 -c1 184.108.40.206 # here I get Redirect Host(New nexthop: 220.127.116.11): ping -I r1-eth1 -c1 18.104.22.168
Here is the main route table of r1:
ip route default via 22.214.171.124 dev r1-eth1 126.96.36.199/30 dev r1-eth0 proto kernel scope link src 188.8.131.52 184.108.40.206/30 dev r1-eth1 proto kernel scope link src 220.127.116.11
So to me it looks like the problem is that interfaces of the router
r1 cannot communicate between each other. However,
r1 forwards traffic between
Thank you for attention!
I needed to solve the problem discussed above to solve the problem Tc qdisc delay not seen in tcpdump recording. I have found the solution to that problem and I posted there by the link. So I do not need this question anymore and I close it. Thank you everybody for reading and participating!