• 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 Examples in Linux

by admin

As you know, nodes on the network typically have three identities: hostname, IP addresses, and MAC addresses. DNS translates hostnames to IP addresses. The Address Resolution Protocol (ARP) is used to relate IP addresses and MAC addresses. There is also an arp command that administrators can run to discover information about known MAC addresses.

Computers will cache recently resolved MAC and IP address combinations. If a computer has cached incorrect or out-of-date information, connectivity may be lost to a particular node. The ARP cache can be cleared as part of the troubleshooting process. For example, you can run arp -d {IP address} to a clear entry for a particular IP address, and then try to ping the host again. Use arp -a to view the cache.

Syntax

The syntax of the arp command is:

# arp [options]

arp Command Examples

1. Show the 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 in the ARP table:

# arp -s address mac_address

Filed Under: Linux

Some more articles you might also be interested in …

  1. gcov Command Examples in Linux
  2. archlinux-java: command not found
  3. How to use “yum downloadonly” to download a package without installing it
  4. How to use FTP under Linux to transfer files
  5. How to block a specific IP Connecting to a server with firewall-cmd
  6. Installing Security Vulnerabilities with yum on CentOS/RHEL 5,6,7 (Cheat Sheet)
  7. dconf : command not found
  8. apt-key: command not found
  9. How to Install Oracle Linux (UEK-2) with btrfs as a root filesystem
  10. daemonize: command not found

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