• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

arp: command not found

by admin

arp stands for Address Resolution Protocol, and it is used to map the MAC addresses of devices (globally unique identifying number) to IPs. Computers contain an ARP table that maps MAP and IP addresses. To view all entries in the table, run the following command:

$ arp -a

If you get below error while running arp:

arp: command not found

You may need to install the net-tools package according to your choice of distribution.

Distribution Command
Debian apt-get install net-tools
Ubuntu apt-get install net-tools
Alpine apk add net-tools
Arch Linux pacman -S net-tools
Kali Linux apt-get install net-tools
CentOS yum install net-tools
Fedora dnf install net-tools
Raspbian apt-get install net-tools
Docker docker run cmd.cat/arp arp

arp Example

1. Show current arp table:

$ arp -a

2. Clear the entire cache:

$ arp -a -d

3. Delete a specific entry:

$ arp -d address

4. Create an entry:

$ arp -s address mac_address

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Clone Linux disk partition over network using dd
  2. Understanding Device Persistence and Oracle ASMLib
  3. How to Change Time Interval to Fall Back to Secondary DNS Server in CentOS/RHEL
  4. How to use Exit Codes in Conditional Statements in Shell Scripts
  5. How to tar, untar files and view contents of tar file under Linux
  6. archlinux-java Command Examples in Linux
  7. nmcli device Command Examples in Linux
  8. mkfs.fat Command Examples in Linux
  9. How To Configure NIS (Network Information System) Master and Slave Servers in CentOS/RHEL
  10. Downloading RPM Packages with dependencies [ yumdownloader Vs yum-downloadonly Vs repoquery]

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright