Using arp Command In Linux (Examples)

Arp command in Linux (Address Resolution protocol) is a communication Protocol used in IPv4 which functions as a manipulator of the system’s ARP cache . For debugging purposes, the arp program also allows a complete dump of the ARP cache. The main function of this command is to resolve the IP address of a system to its mac address and also used to find address of a network neighbor for a given IPv4 address.

Syntax to use arp command in Linux

arp [-vn] [-H type] [-i if] -a [hostname]

Options to use with arp command

-v | –verbose:  It shows the verbose information.
-n | –numeric: It shows numerical addresses instead of symbolic host, port or usernames.
-H type | –hw-type type | -t type: This tells arp which class of entries it should check for. Default value is ether. List of possible hardware types(which support ARP) are ash(Ash), ether(Ethernet), ax25(AMPR AX.25), netrom (AMPR NET/ROM), rose (AMPR ROSE), arcnet (ARCnet), dlci (Frame Relay DLCI), fddi (Fiber Distributed Data Interface), hippi (HIPPI), irda (IrLAP), x25 (generic X.25), eui64 (Generic EUI-64).

Examples of arp command

arp

Displays network card and Ethernet connectivity.