I have a network setup as in the picture:
The central box is a gateway (Ubuntu 15.10) which relays the packets betwen the various networks (only one is shown on the picture - lan0
) and Internet.
- gateway: I can ping all interfaces and hosts on Internet
laptop
: I can ping all interfaces and hosts on Internet except192.168.0.254
I do not know yet why I cannot ping it, and this is why I am capturing the traffic. This is not my question, though if someone has an idea it is welcome. All interfaces accept all traffic and there is forwarding in place between all interfaces
When capturing packets to understand why the ping fails, I did three tests
- ping from
laptop
to192.168.0.10
The ping goes through, but tcpdump -i int0 icmp
does not show any packets captured
- ping from
laptop
to192.168.0.254
The ping does not go through and tcpdump -i int0 icmp
shows
13:26:28.032635 IP 10.10.10.93 > 192.168.0.254: ICMP echo request, id 1, seq 671, length 40
13:26:32.604606 IP 10.10.10.93 > 192.168.0.254: ICMP echo request, id 1, seq 672, length 40
- ping from
laptop
to8.8.8.8
The ping goes through and tcpdump -i int0 icmp
shows
14:02:52.016081 IP 192.168.0.10 > google-public-dns-a.google.com: ICMP echo request, id 1, seq 749, length 40
14:02:52.029388 IP google-public-dns-a.google.com > 192.168.0.10: ICMP echo reply, id 1, seq 749, length 40
I understand the second case (at least the fact that the echo request is captured).
Why in the first case no packets are captured while the ping goes through?
Why in the third case the capture only shows a request from 192.168.0.10? Where is the one from laptop
? (I guess that the reason is the same as above)