Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.mobile.android > #68103
| From | David Lesher <wb8foz@panix.com> |
|---|---|
| Newsgroups | comp.mobile.android |
| Subject | Re: MAC ping app? |
| Date | 2020-04-02 20:27 +0000 |
| Organization | NRK Clinic for habitual NetNews Abusers - Beltway Annex |
| Message-ID | <r65hrc$b8r$1@reader2.panix.com> (permalink) |
| References | <r63urh$ba8$1@reader2.panix.com> <r64uqe$tui$1@news.mixmin.net> |
Arlen Holder <arlenholder@anyexample.com> writes:
>In response to what David Lesher <wb8foz@panix.com> wrote :
>> Is there an app out there that lets me ping by MAC address?
>a. I don't know; but...
>b. It's an interesting question...
>c. Worth, perhaps, figuring out... given Android is, um... sort of Linux.
>Googling... (and being purposefully helpful)... here's the first hit:
>o How To Ping By MAC Address? Ping Command Prompt
><https://www.webune.com/forums/how-to-ping-by-mac-address.html>
> "is it possible to ping a device using only the mac address...?
> ANSWER: the answer is no. IP Address is layer 3 of the OSI Model,
> and the MAC Address belongs to Layer 2"
> "what I can do is run the arp command, arp -a"
This fails on devices immune from "smurf attacks"
>Third hit...
>o How to ping a mac address
><https://www.techrepublic.com/forums/discussions/how-to-ping-a-mac-address/>
> "You can't really 'ping' a MAC address. But, if you know the MAC address
> of a device and if TCP/IP is running on the device and you don't know
> the IP address of the device you can ping it.
> Use 'arp -s ipaddr macaddr' to assign an ip address to the device
> (as far as your machine is concerned).
> Then you can ping the device using the ipaddr that you entered."
Did not try that.
>Fourth hit...
>o Ping Mac Address
><https://www.udemy.com/blog/ping-mac-address/>
> "You can't directly ping a MAC address, but you can use the
> arp command to ping all devices connected to your own computer"
Nope.
What DOES work is:
Nope.
Here is what I ended up with:
for a in {1..254}; do ping -c 1 -t 1 192.168.1.$a; done
Then arp works, but it's likely unnecessary; grep the ping output.
and not easy from a pocket toy.
--
A host is a host from coast to coast.................wb8foz@nrk.com
& no one will talk to a host that's close..........................
Unless the host (that isn't close).........................pob 1433
is busy, hung or dead....................................20915-1433
Back to comp.mobile.android | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
MAC ping app? David Lesher <wb8foz@panix.com> - 2020-04-02 05:57 +0000
Re: MAC ping app? Arlen Holder <arlenholder@anyexample.com> - 2020-04-02 20:32 +0530
Re: MAC ping app? David Lesher <wb8foz@panix.com> - 2020-04-02 20:27 +0000
Re: MAC ping app? Arlen Holder <arlenholder@anyexample.com> - 2020-04-03 19:28 +0530
Re: MAC ping app? tony@mountifield.org (Tony Mountifield) - 2020-04-02 20:43 +0000
Re: MAC ping app? Libor Striz <poutnik4REMOVEnntp@gmailCAPITALS.com.INVALID> - 2020-04-03 02:29 +0200
csiph-web