Nmap Development mailing list archives

Re: [BUG] nping cant ping local host using LAN ip


From: rndbit <rndbit () nm ru>
Date: Fri, 08 Feb 2013 12:48:26 +0200

This info is from my clean test VM (notice ip 192.168.0.105). Nping
fails there same way as on my main machine (192.168.0.100) so do not be
alarmed about changed ip. Here are outputs:

Starting Nmap 6.25 ( http://nmap.org ) at 2013-02-08 02:44 Pacific Standard Time

192.168.0.105

lo0 lo0 srcaddr 192.168.0.105 direct

Nmap done: 0 IP addresses (0 hosts up) scanned in 0.08 seconds

Starting Nmap 6.25 ( http://nmap.org ) at 2013-02-08 02:44 Pacific Standard Time

************************INTERFACES************************

DEV  (SHORT) IP/MASK                               TYPE        UP   MTU  MAC

eth0 (eth0)  fe80::d11f:244c:a241:acff/64          ethernet    up   1500 08:00:27:4F:28:02

eth0 (eth0)  192.168.0.105/24                      ethernet    up   1500 08:00:27:4F:28:02

lo0  (lo0)   ::1/128                               loopback    up   -1

lo0  (lo0)   127.0.0.1/8                           loopback    up   -1

tun0 (tun0)  fe80::5efe:c0a8:69/128                point2point down 1280

tun1 (tun1)  2001:0:5ef5:79fd:cb5:1c6a:3f57:ff96/0 point2point up   1280

tun1 (tun1)  fe80::cb5:1c6a:3f57:ff96/0            point2point up   1280

DEV  WINDEVICE

eth0 \Device\NPF_{0DF26A5B-9991-4522-9F71-57B442FE9CB6}

eth0 \Device\NPF_{0DF26A5B-9991-4522-9F71-57B442FE9CB6}

lo0  <none>

lo0  <none>

tun0 <none>

tun1 <none>

tun1 <none>

**************************ROUTES**************************

DST/MASK                                DEV  GATEWAY

255.255.255.255/32                      eth0

192.168.0.105/32                        eth0

127.0.0.1/32                            lo0

127.255.255.255/32                      lo0

192.168.0.255/32                        eth0

255.255.255.255/32                      lo0

192.168.0.0/24                          eth0

127.0.0.0/8                             lo0

224.0.0.0/4                             lo0

224.0.0.0/4                             eth0

0.0.0.0/0                               eth0 192.168.0.1

fe80::d11f:244c:a241:acff/128           eth0

::1/128                                 lo0

fe80::cb5:1c6a:3f57:ff96/128            tun1

2001:0:5ef5:79fd:cb5:1c6a:3f57:ff96/128 tun1

fe80::5efe:c0a8:69/128                  tun0

fe80::/64                               eth0

fe80::/64                               tun1

2001::/32                               tun1

ff00::/8                                eth0

ff00::/8                                lo0

ff00::/8                                tun1

::/0                                    tun1

===========================================================================

Interface List

 12...08 00 27 4f 28 02 ......Intel(R) PRO/1000 MT Desktop Adapter

  1...........................Software Loopback Interface 1

 13...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter

 11...00 00 00 00 00 00 00 e0 Microsoft Teredo Tunneling Adapter

===========================================================================

IPv4 Route Table

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.105     10

        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306

        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306

  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306

      192.168.0.0    255.255.255.0         On-link     192.168.0.105    266

    192.168.0.105  255.255.255.255         On-link     192.168.0.105    266

    192.168.0.255  255.255.255.255         On-link     192.168.0.105    266

        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306

        224.0.0.0        240.0.0.0         On-link     192.168.0.105    266

  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306

  255.255.255.255  255.255.255.255         On-link     192.168.0.105    266

===========================================================================

Persistent Routes:

  None

IPv6 Route Table

===========================================================================

Active Routes:

 If Metric Network Destination      Gateway

 11     58 ::/0                     On-link

  1    306 ::1/128                  On-link

 11     58 2001::/32                On-link

 11    306 2001:0:5ef5:79fd:cb5:1c6a:3f57:ff96/128

                                    On-link

 12    266 fe80::/64                On-link

 11    306 fe80::/64                On-link

 11    306 fe80::cb5:1c6a:3f57:ff96/128

                                    On-link

 12    266 fe80::d11f:244c:a241:acff/128

                                    On-link

  1    306 ff00::/8                 On-link

 11    306 ff00::/8                 On-link

 12    266 ff00::/8                 On-link

===========================================================================

Persistent Routes:

  None


rand() & 1

On 2013-02-07 23:50, David Fifield wrote:
On Thu, Feb 07, 2013 at 04:34:46PM +0200, rndbit wrote:
C:\Program Files (x86)\Nmap>nping --debug --privileged 192.168.0.100
Nping will send packets at raw ethernet level

Starting Nping 0.6.25 ( http://nmap.org/nping ) at 2013-02-07 16:32
FLE Standard
 Time
Resolving specified targets...
Failed to determine route to host 192.168.0.100. Skipping it...
Execution aborted. Nping needs at least one valid target to operate.
LAN 192.168.0.100 - ip of machine that runs nping.
Tested it on clean VM too, same result.
Pinging other host on lan works fine.
Specifying --send-eth yields same results.
Thanks for this report. Can you show us the output of these commands?
      nmap --route-dst 192.168.0.100
      nmap --iflist
      route print

David Fifield




Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: