nmap -sP 192.168.1.*
Daniel J. Luke
dluke at geeklair.net
Fri Mar 18 12:44:43 PDT 2011
On Mar 18, 2011, at 3:55 PM, Pol Hallen wrote:
>
> nmap -sP 192.168.1.*
>
> sendto in send_ip_packet_sd: sendto(4, packet, 28, 0, 192.168.1.2, 16) =>
> No route to host
> Offending packet: ICMP 192.168.1.6 > 192.168.1.2 Echo request
> (type=8/code=0) ttl=50 id=14976 iplen=7168
> Sleeping 15 seconds then retrying
> sendto in send_ip_packet_sd: sendto(4, packet, 28, 0, 192.168.1.2, 16) =>
> Host is down
> Offending packet: ICMP 192.168.1.6 > 192.168.1.2 Echo request
> (type=8/code=0) ttl=50 id=14976 iplen=7168
> Sleeping 60 seconds then retrying
>
> nmap -e en1 192.168.1.*
>
> same result..
>
> why?
Probably because your machine can't route to those addresses?
`ping 192.168.1.2` would likely give you the same result
As a random guess, I would suspect your netmask may not be what you expect it is.
> I don't have any problem with nmap (on linux os)
with a different network config?
It works fine with the /24 that I'm on when I run nmap -sP XXX.XXX.XXX.\*
and if I copy you:
% nmap -sP 192.168.1.\*
Starting Nmap 5.50 ( http://nmap.org ) at 2011-03-18 15:39 EDT
Nmap done: 256 IP addresses (0 hosts up) scanned in 103.04 seconds
(since my local network has a default route and I'm not using 192.168.1.0/24 internally)
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
More information about the macports-users
mailing list