arpsend(8)

πŸ“¦ version 4.9.4, in ubuntu jammy

✨ arpsend(8) β€” the Containers-era glow-up ✨

okay bestie, sit down, hydrate, and let me tell you about arpsend from the Containers manual section. she's a networking girlie and she's here to yell at your local network πŸ’…


🌸 NAME 🌸

arpsend β€” literally just send ARP requests. that's the whole vibe. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

arpsend -D -e target_ip [ -e target_ip ...]  [-c count] [-w timeout]
        interface

arpsend -U -i source_ip [-c count] [-w timeout] interface

πŸ’– DESCRIPTION πŸ’–

so the utility arpsend sends ARP packets out on device interface, and its whole main character purpose is to detect or update neighbours' ARP caches with a given IP. that's it. that's the job. she does it flawlessly 🫢


πŸ‘‘ COMMANDS πŸ‘‘

run the utility with one of the following commands, bestie (pick one, not both, it's giving decisive):

  • -D β€” sends a broadcast ARP request to detect neighbours with target_ip. you have to specify target_ip (that's the -e option, keep reading πŸ“–).
  • -U β€” sends a broadcast ARP request to update neighbours' ARP caches with source_ip. you have to specify source_ip (that's the -i option, iykyk).

✨ OPTIONS ✨

  • -c count β€” how many packets to send. default is infinity 😭 yes fr, she will just keep going forever unless you tell her to chill.
  • -w interval β€” the interval between packets, in seconds. default is 1 second.
  • -i source_ip_address β€” sets the source IP address field in the ARP packet.
  • -e target_ip_address β€” sets the target IP address field in the ARP packet. note that you can specify the -e option multiple times to detect many IP addresses in one utility call. she's multitalented, obsessed πŸ’…

πŸ’€ EXIT STATUS πŸ’€

arpsend returns 0 upon successful execution. if something goes wrong, it returns an appropriate error code. (and bestie, things do go wrong sometimes, so here's the chart:)

  1. 1 β€” EXC_USAGE β€” usage error πŸ™ˆ
  2. 2 β€” EXC_SYSTEM β€” system error 😭
  3. 3 β€” EXC_RECV β€” ARP reply was received (not me getting a reply when I wasn't expecting one πŸ’€)

🌈 EXAMPLES 🌈

to send a request on interface eth0 to detect any neighbour computers with IP 192.168.10.200:

arpsend -D -e 192.168.10.200 eth0

to send a request on interface eth0 to update neighbours' ARP caches with IP 192.168.10.200:

arpsend -U -i 192.168.10.200 eth0

πŸŽ€ NOTES πŸŽ€

the interface you use has to be arpable and must not be loopback. like, /sbin/ip link show interface should show neither NOARP nor LOOPBACK flags in the interface parameters. if it does, she's not the one, bestie 🚫

🧚 SEE ALSO 🧚


πŸ’œ LICENSE πŸ’œ

Copyright (C) 2000-2011, Parallels, Inc. Licensed under GNU GPL.


and that's the whole page, gorgeous ⭐ she's arpsend(8) from the OpenVZ source, dated 18 Mar 2012, and yes the footer matches the header because she's consistent like that πŸ’– slay, go ping your neighbours, periodt πŸ¦‹

πŸ“¦ where this page comes from