Skip to content
CodeDuckMan edited this page Feb 5, 2024 · 1 revision

Overview

This command is both a Linux and windows command with some minor differences.

Variants

-a Show all entries in the ARP cache. arp -a

-d Delete an entry in the ARP cache. arp -d 192.168.1.1

-s Add a new entry to the ARP cache. arp -s 192.168.1.1 ab:cd:ef:gh:ij:kl

-v Enable verbose mode. arp -v -a

-n Do not resolve names. arp -n -a

-i Specify the network interface. arp -i eth0 -a

-D Read hardware address from given device. arp -D eth0 -s 192.168.1.1

-e Display in default (Linux) style. arp -e -a

-H Specify the hardware type. arp -H ether -a

-p Publish the entry. arp -s 192.168.1.1 ab:cd:ef:gh:ij:kl -p

-r Read new entries from file or standard input. arp -r < arp_entries.txt

-t Specify the hardware type. arp -t ether -a

Clone this wiki locally