S
S
shell_guy2021-12-08 18:25:17
linux
shell_guy, 2021-12-08 18:25:17

How to make broadcast request from linux shell?

Good day!
You need to contact the gateway with an arp request to find out which devices are connected to it
. I didn’t find any sane examples, can anyone come across in practice?
Please tell me the console command
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-12-08
@karabanov

fping -c 1 -ag 192.168.254.0/24- replace 192.168.254.0/24 with your subnet.
Then ip neor ip --json ne | jqif further it is necessary to parse the data by a script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question