Date: Tue, 6 Dec 2016 13:33:14 -0500 (EST) From: DTD <doug@safeport.com> To: freebsd-questions@FreeBSD.ORG Subject: anyone know what 'ping: sendto: Can't assign requested" means Message-ID: <alpine.BSF.2.00.1612061326441.53759@bucksport.safeport.com>
next in thread | raw e-mail | index | archive | help
For truth in advertising this is pinging from a jail. The problem is limited to pinging outside of the jailed environment. I took a shot a the ping source to see if there was an illuminating comment around the message but got lost in tacking this through libc source. I can show this is not a routing issue and the jails can ping. Our LAN has a dozen or so devices all in the network 192.168.2.0/24. To demonstrate the problem I used two hosts in the LAN and some external systems. The jail environment is chaos (host) and two jails, gaia and gsscc. First, from either jail all the above is ping-able: >From gaia: gaia:~> ping -c 2 chaos PING chaos.boltsys.com (192.168.2.117): 56 data bytes 64 bytes from 192.168.2.117: icmp_seq=0 ttl=64 time=0.020 ms 64 bytes from 192.168.2.117: icmp_seq=1 ttl=64 time=0.047 ms --- chaos.boltsys.com ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.020/0.034/0.047/0.013 ms gaia:~> ping -c 2 gsscc PING gsscc.boltsys.com (192.168.2.111): 56 data bytes 64 bytes from 192.168.2.111: icmp_seq=0 ttl=64 time=0.022 ms 64 bytes from 192.168.2.111: icmp_seq=1 ttl=64 time=0.023 ms artemis is a host on the 192.168.2.0/24: gaia:~> ping -c 2 artemis PING artemis.boltsys.com (192.168.2.102): 56 data bytes ping: sendto: Can't assign requested address ping: sendto: Can't assign requested address ^C --- artemis.boltsys.com ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss Any TCP protocol works: gaia:~> ssh artemis Password for doug@artemis.boltsys.com: Last login: Tue Dec 6 13:00:12 2016 from :0.0 FreeBSD 10.3-RELEASE-p11 (GENERIC) #0: Mon Oct 24 18:49:24 UTC 2016 Welcome to FreeBSD! artemis:~> ping -c 2 www.ibm.com PING e2874.x.akamaiedge.net (104.119.114.9): 56 data bytes 64 bytes from 104.119.114.9: icmp_seq=0 ttl=60 time=8.996 ms 64 bytes from 104.119.114.9: icmp_seq=1 ttl=60 time=10.140 ms --- e2874.x.akamaiedge.net ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 8.996/9.568/10.140/0.572 ms artemis:~> exit logout Connection to artemis closed. So everything but ping works. I took a shot at making chaos a gateway and using NAT to get around this. Turns out I do not know how to do that. within the same /24 anyway. So the question comes down to under what conditions does ping give the 'sendto: Can't assign requested address' error. I have not been able to get that to happen outside of a jailed environment. Just to do all posibilities DNS or not, does not change anything: gaia:~> ping -c 2 192.168.2.117 PING 192.168.2.117 (192.168.2.117): 56 data bytes 64 bytes from 192.168.2.117: icmp_seq=0 ttl=64 time=0.032 ms 64 bytes from 192.168.2.117: icmp_seq=1 ttl=64 time=0.020 ms --- 192.168.2.117 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.020/0.026/0.032/0.006 ms gaia:~> ping -c 2 192.168.2.102 PING 192.168.2.102 (192.168.2.102): 56 data bytes ping: sendto: Can't assign requested address ping: sendto: Can't assign requested address ^C --- 192.168.2.102 ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1612061326441.53759>