Thanks, your explanations have clarified a lot!
xTR is working as expected, however, I've observed
unexpected pattern while watching interfaces on xTR with tcpdump.
Outgoing icmp packets are visible only on eth0.
Incoming icmp packets are visible only on lispTun0.
Is this an expected behavior?
My setup looks like this:
Internet --- eth0 XTR eth1 (153.16.49.225/28) --- NODE (153.16.49.226/28)
I am including tcpdump logs:
---------- pinging 8.8.8.8 from NODE
root@NODE:~# ping -c1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=38 time=109 ms
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 109.785/109.785/109.785/0.000 ms
root@XTR:/etc# sudo tcpdump -nvvXSs 0 -i lispTun0 icmp
tcpdump: listening on lispTun0, link-type RAW (Raw IP), capture size 65535
bytes
14:25:44.027523 IP (tos 0x0, ttl 39, id 0, offset 0, flags [none],
proto ICMP (1), length 84)
8.8.8.8 > 153.16.49.226: ICMP echo reply, id 20619, seq 1, length 64
0x0000: 4500 0054 0000 0000 2701 b8a7 0808 0808
E..T....'.......
0x0010: 9910 31e2 0000 f707 508b 0001 eb27 9e51
..1.....P....'.Q
0x0020: 3def 0600 0809 0a0b 0c0d 0e0f 1011 1213
=...............
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
.............!"#
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
$%&'()*+,-./0123
0x0050: 3435 3637 0000 0000 0000 0000 0000 0000
4567............
0x0060: 0000 0000 0000 0000
root@XTR:~# sudo tcpdump -nvvXSs 0 -i eth0 icmp
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size
65535 bytes
14:25:43.917970 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto
ICMP (1), length 84)
153.16.49.226 > 8.8.8.8: ICMP echo request, id 20619, seq 1, length
64
0x0000: 4500 0054 0000 4000 3f01 60a7 9910 31e2
E..T..@.?.`...1.
0x0010: 0808 0808 0800 ef07 508b 0001 eb27 9e51
........P....'.Q
0x0020: 3def 0600 0809 0a0b 0c0d 0e0f 1011 1213
=...............
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
.............!"#
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
$%&'()*+,-./0123
0x0050: 3435 3637
---------- pinging NODE from EXTERNAL-HOST
EXTERNAL-HOST% ping -c1 153.16.49.226
PING 153.16.49.226 (153.16.49.226): 56 data bytes
64 bytes from 153.16.49.226: icmp_seq=0 ttl=57 time=180.585 ms
--- 153.16.49.226 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 180.585/180.585/180.585/0.000 ms
root@XTR:/etc# sudo tcpdump -nvvXSs 0 -i lispTun0 icmp
tcpdump: listening on lispTun0, link-type RAW (Raw IP), capture size 65535
bytes
14:10:09.411026 IP (tos 0x0, ttl 39, id 4417, offset 0, flags [none],
proto ICMP (1), length 84)
194.29.146.3 > 153.16.49.226: ICMP echo request, id 17243, seq 0,
length 64
0x0000: 4500 0054 1141 0000 2701 6355 c21d 9203
E..T.A..'.cU....
0x0010: 9910 31e2 0800 f6c5 435b 0000 519e 2349
..1.....C[..Q.#I
0x0020: 0000 5df4 0809 0a0b 0c0d 0e0f 1011 1213
..].............
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
.............!"#
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
$%&'()*+,-./0123
0x0050: 3435 3637 0000 0000 0000 0000 0000 0000
4567............
0x0060: 0000 0000 0000 0000
root@XTR:~# sudo tcpdump -nvvXSs 0 -i eth0 icmp
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size
65535 bytes
14:10:09.411233 IP (tos 0x0, ttl 63, id 26807, offset 0, flags [none],
proto ICMP (1), length 84)
153.16.49.226 > 194.29.146.3: ICMP echo reply, id 17243, seq 0,
length 64
0x0000: 4500 0054 68b7 0000 3f01 f3de 9910 31e2
E..Th...?.....1.
0x0010: c21d 9203 0000 fec5 435b 0000 519e 2349
........C[..Q.#I
0x0020: 0000 5df4 0809 0a0b 0c0d 0e0f 1011 1213
..].............
0x0030: 1415 1617 1819 1a1b 1c1d 1e1f 2021 2223
.............!"#
0x0040: 2425 2627 2829 2a2b 2c2d 2e2f 3031 3233
$%&'()*+,-./0123
0x0050: 3435 3637
Regards,
Artur