[lxc-users] Network connection on a Debian unstable host

Geordie geordi at kos.net
Tue Mar 24 22:39:29 UTC 2015


Fajar 
> 
> Try a simple "ping -n 10.0.0.1" on the container, and on the host
> side do
# ping -n 10.0.0.1
bash: ping: command not found 

> 
> tcpdump -n -i eth0 host 10.0.0.1

tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode listening on eth0, link-type EN10MB (Ethernet), capture size
262144 bytes 18:15:48.970335 ARP, Request who-has 10.0.0.1 tell
10.0.0.13, length 28 18:15:48.973066 ARP, Reply 10.0.0.1 is-at
f8:35:dd:1e:3a:75, length 46


> tcpdump -n -i br0
tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode listening on br0, link-type EN10MB (Ethernet), capture size
262144 bytes 18:17:01.392363 IP 64.64.178.207.5678 >
255.255.255.255.5678: UDP, length 130 18:17:02.012365 IP
69.7.245.252.5678 > 255.255.255.255.5678: UDP, length 110
18:17:39.514331 IP 10.0.0.13.953 > 10.0.0.8.2049: Flags [.], ack
4223125816, win 11358, options [nop,nop,TS val 8151168 ecr 771846865],
length 0 18:17:39.514458 IP 10.0.0.13.953 > 10.0.0.8.2049: Flags [P.],
seq 1:105, ack 1, win 11358, options [nop,nop,TS val 8151168 ecr
771846865], length 104: NFS request xid 2961890616 100 getattr [|nfs]
18:17:39.514546 IP 10.0.0.8.2049 > 10.0.0.13.953: Flags [.], ack 1, win
33702, options [nop,nop,TS val 771852878 ecr 8136129], length 0
18:17:39.514800 IP 10.0.0.8.2049 > 10.0.0.13.953: Flags [P.], seq 1:49,
ack 105, win 33702, options [nop,nop,TS val 771852878 ecr 8151168],
length 48: NFS reply xid 2961890616 reply ok 44 getattr [|nfs]
18:17:39.514824 IP 10.0.0.13.953 > 10.0.0.8.2049: Flags [.], ack 49,
win 11358, options [nop,nop,TS val 8151168 ecr 771852878], length 0
18:17:44.522251 ARP, Request who-has 10.0.0.13 tell 10.0.0.8, length 46
18:17:44.522311 ARP, Reply 10.0.0.13 is-at 00:22:68:10:74:b6, length 28
18:17:52.962328 IP 10.0.0.13 > 224.0.0.22: igmp v3 report, 1 group
record(s) 18:17:53.456166 IP 10.0.0.13.1900 > 239.255.255.250.1900:
UDP, length 94 18:17:53.456497 IP 10.0.0.8.1900 > 239.255.255.250.1900:
UDP, length 1024 18:17:53.778317 IP 10.0.0.13 > 224.0.0.22: igmp v3
report, 1 group record(s) 18:17:54.456416 IP 10.0.0.13.1900 >
239.255.255.250.1900: UDP, length 94 18:17:55.456565 IP 10.0.0.13.1900
239.255.255.250.1900: UDP, length 94 18:17:58.962329 IP 10.0.0.13 >
224.0.0.22: igmp v3 report, 1 group record(s) 18:17:59.050318 IP
10.0.0.13 > 224.0.0.22: igmp v3 report, 1 group record(s)
18:18:01.202282 IP 52.11.238.223.443 > 10.0.0.13.53140: Flags [.],
ack 3566607281, win 42, options [nop,nop,TS val 1142622415 ecr
8111461], length 0 18:18:01.202354 IP 10.0.0.13.53140 >
52.11.238.223.443: Flags [.], ack 1, win 364, options [nop,nop,TS val
8156590 ecr 1142261795], length 0

IP 64.64.178.207.5678 69.7.245.252.5678 these are KOS.net name servers
52.11.238.223.443 amazon networks - interesting


Geordie

> 
> That would at least show where the packets gone missing. If everything
> works, you should see icmp echo and reply packets on both host's eth0
> and br0.
> 



More information about the lxc-users mailing list