{"id":5788,"date":"2023-02-14T06:39:27","date_gmt":"2023-02-14T06:39:27","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=5788"},"modified":"2024-04-28T07:19:41","modified_gmt":"2024-04-28T07:19:41","slug":"arp-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/arp-command-in-linux\/","title":{"rendered":"The \u201carp\u201d Command in Linux [7 Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>arp<\/strong> command is a utility used to display and manipulate the Address Resolution Protocol (ARP) cache. It allows users to view the contents of the ARP cache, manually add or remove entries from the cache, and flush the entire cache if needed.<\/p>\n<p style=\"text-align: justify;\">In this article, I will try to familiarize you with the &#8220;arp&#8221; command with some practical and useful examples.<\/p>\n<div class=\"su-youtube su-u-responsive-media-yes\"><iframe width=\"600\" height=\"400\" src=\"https:\/\/www.youtube.com\/embed\/iVvKbcWHwrQ?\" frameborder=\"0\" allowfullscreen allow=\"autoplay; encrypted-media; picture-in-picture\" title=\"\"><\/iframe><\/div>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#Syntax_of_%E2%80%9Carp%E2%80%9D_Command\" >Syntax of &#8220;arp&#8221; Command<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#Options_for_%E2%80%9Carp%E2%80%9D_Command\" >Options for &#8220;arp&#8221; Command<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#How_Does_%E2%80%9Carp%E2%80%9D_Command_Work\" >How Does &#8220;arp&#8221; Command Work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#Uses_of_the_%E2%80%9Carp%E2%80%9D_Command_in_Linux\" >Uses of the \u201carp\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#1_Print_IP_Addresses_and_Mac_Addresses_Using_the_%E2%80%9Carp%E2%80%9D_command_in_Linux\" >1. Print IP Addresses and Mac Addresses Using the \u201carp\u201d command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#2_Print_All_Hosts_on_the_ARP_Cache\" >2. Print All Hosts on the ARP Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#3_Enable_Verbose_Mode_in_the_%E2%80%9Carp%E2%80%9D_Command_in_Linux\" >3. Enable Verbose Mode in the \u201carp\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#4_Arp_Cache_Entries_in_Numerical_Format\" >4. Arp Cache Entries in Numerical Format<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#5_Delete_A_Host_Using_the_%E2%80%9Carp%E2%80%9D_Command_in_Linux\" >5. Delete A Host Using the \u201carp\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#6_Applying_the_%E2%80%9Carp%E2%80%9D_Command_for_a_Particular_IP_Address\" >6. Applying the \u201carp\u201d Command for a Particular IP Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#7_Prints_Hosts_With_A_Specific_Type_of_Network_Protocol\" >7. Prints Hosts With A Specific Type of Network Protocol<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#People_Also_Ask\" >People Also Ask<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#What_is_%E2%80%9Carp%E2%80%9D_command\" >What is &#8220;arp&#8221; command?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#How_do_I_send_an_ARP_request_in_Linux\" >How do I send an ARP request in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#How_to_clear_ARP_in_Linux\" >How to clear ARP in Linux?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#How_do_I_use_ARP_and_ping\" >How do I use ARP and ping?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#Where_can_I_find_a_Linux_ARP_table\" >Where can I find a Linux ARP table?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Syntax_of_%E2%80%9Carp%E2%80%9D_Command\"><\/span>Syntax of &#8220;arp&#8221; Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The syntax of the arp command in Linux goes like the following:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp [OPTION]... [HOSTNAME\/IP ADDRESS]<\/code><\/pre>\n<p style=\"text-align: justify;\"><div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<strong>Note:<\/strong> The <strong>OPTION <\/strong>enclosed by <strong>square brackets <\/strong>(<strong>[]<\/strong>), followed by <strong>three dots <\/strong>denotes that you can use multiple <strong>options <\/strong>at the same time. Additionally, you may be required to provide a <strong>hostname <\/strong>or <strong>IP address<\/strong>. However, you can\u2019t provide multiple <strong>hostnames <\/strong>or <strong>IP addresses<\/strong>.<br \/>\n<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Options_for_%E2%80%9Carp%E2%80%9D_Command\"><\/span>Options for &#8220;arp&#8221; Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To know about the <strong>options<\/strong>, execute the following command:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man arp<\/code><\/pre>\n<p>Here is some of the necessary <strong>options of arp command<\/strong>:<\/p>\n<div class=\"su-table su-table-responsive su-table-alternate su-table-fixed\">\n<table style=\"border-collapse: collapse;width: 79.374%;height: 200px\">\n<tbody>\n<tr style=\"height: 25px\">\n<th style=\"width: 22.125%;height: 25px\">Option<\/th>\n<th style=\"width: 57.25%;height: 25px\">Description<\/th>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 22.125%;height: 25px\"><strong>-a<\/strong><\/td>\n<td style=\"width: 57.25%;height: 25px\">Shows all ARP cache entries.<\/td>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 22.125%;height: 25px\"><strong>-v<\/strong> or <strong>&#8211;verbose<\/strong><\/td>\n<td style=\"width: 57.25%;height: 25px\">Enable verbose mode.<\/td>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 22.125%;height: 25px\"><strong>-n<\/strong> or <strong>&#8211;numeric<\/strong><\/td>\n<td style=\"width: 57.25%;height: 25px\">Provides output in numerical format.<\/td>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 22.125%;height: 25px\"><strong>-d<\/strong><\/td>\n<td style=\"width: 57.25%;height: 25px\">Delete a host.<\/td>\n<\/tr>\n<tr style=\"height: 25px\">\n<td style=\"width: 22.125%;height: 25px\"><strong>-H<\/strong> or <strong>&#8211;hw-type<\/strong><\/td>\n<td style=\"width: 57.25%;height: 25px\">Specifies network protocol.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> The options are all <strong>case-sensitive<\/strong>, So, use them carefully. <\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_Does_%E2%80%9Carp%E2%80%9D_Command_Work\"><\/span>How Does &#8220;arp&#8221; Command Work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The <strong>arp<\/strong> command in Linux manages the Address Resolution Protocol (ARP) cache, which <strong>maps IP addresses to MAC addresses<\/strong> on a local network. It allows users to view the cache, add or remove entries, and clear the cache. When a device needs to communicate with another device, it sends out an ARP request to obtain the MAC address corresponding to the target IP address. The &#8220;arp&#8221; command facilitates troubleshooting network connectivity by managing these mappings.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Uses_of_the_%E2%80%9Carp%E2%80%9D_Command_in_Linux\"><\/span>Uses of the \u201carp\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Here are some practical and useful examples of the <strong>arp <\/strong>command in Linux:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_Print_IP_Addresses_and_Mac_Addresses_Using_the_%E2%80%9Carp%E2%80%9D_command_in_Linux\"><\/span>1. Print IP Addresses and Mac Addresses Using the \u201carp\u201d command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">In the first example, I will pick in the <strong>ARP cache <\/strong>to see all the <strong>IP entries <\/strong>and their corresponding <strong>MAC addresses<\/strong>. All I need to do for that purpose is type the <strong>arp<\/strong> command in the terminal. To <strong>print IP addresses<\/strong> and their corresponding <strong>MAC addresses<\/strong>, do the following:<\/p>\n<ol>\n<li>At the beginning, go to your <strong>Ubuntu <\/strong>and open a <strong>Terminal<\/strong>.<\/li>\n<li>Copy the following command in the command prompt:\n<pre><code class=\"language-bash\" data-line=\"\">arp<\/code><\/pre>\n<\/li>\n<li>Print <strong>ENTER <\/strong>from the keyboard.<\/li>\n<\/ol>\n<div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#aeb0b3;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#E1E3E6;color:#000000;border-top-left-radius:0px;border-top-right-radius:0px\">OUTPUT EXPLANATION<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\">\n<p>In the output, you will see the following <strong>five <\/strong>columns:<\/p>\n<ol>\n<li><strong>Address<\/strong>: IP address or hostname of the devices on the LAN.<\/li>\n<li><strong>HWtype<\/strong>: Network protocol type (for instance &#8211; ether). Here ether means ethernet protocol.<\/li>\n<li><strong>HWaddress<\/strong>: MAC addresses of the devices.<\/li>\n<li><strong>Flags Mask<\/strong>: ARP cache entry type. C &#8211; Dynamically learned entry, M- Manually entered entry, P &#8211; Published entry, tell the host to respond to ARP request and ARP respond packets.<\/li>\n<li><strong>Iface<\/strong>: Name of the network interface.<\/li>\n<\/ol>\n<\/div><\/div>\n<p>The image below shows all the columns from the output.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-5794 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-1.png\" alt=\"Showing IP addresses and MAC addresses using the arp command in Linux\" width=\"825\" height=\"511\" \/><\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080; --darkreader-inline-color: #37375c;\" data-darkreader-inline-color=\"\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/iptables-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ciptables\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/tcpdump-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctcpdump\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/nslookup-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cnslookup\u201d Command in Linux [12 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ufw-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cufw\u201d Command in Linux [12+ Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"2_Print_All_Hosts_on_the_ARP_Cache\"><\/span>2. Print All Hosts on the ARP Cache<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <code class=\"\" data-line=\"\">arp<\/code> command in Linux shows all the current hosts by default. However, use option <code class=\"\" data-line=\"\">-a<\/code>\u00a0to show all the hosts on the LAN.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp -a<\/code><\/pre>\n<p style=\"text-align: justify;\">Unlike \u201c<strong>arp<\/strong>\u201d, the output of the <code class=\"\" data-line=\"\">arp -a<\/code> command doesn\u2019t have any column heading. At first, you will see the <strong>hostname<\/strong>. If the hostname isn\u2019t available, you will see the <strong>question mark<\/strong> (\u201c<strong>?<\/strong>\u201d). Then you will see the <strong>IP address<\/strong>, <strong>Mac address<\/strong>, <strong>Protocol type<\/strong> (<strong>HWtype<\/strong>), and <strong>network interface<\/strong> respectively.<img decoding=\"async\" class=\"aligncenter wp-image-5795 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-2.png\" alt=\"Showing all ARP cache entries\" width=\"700\" height=\"543\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-2.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-2-300x233.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-2-767x595.png 767w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_Enable_Verbose_Mode_in_the_%E2%80%9Carp%E2%80%9D_Command_in_Linux\"><\/span>3. Enable Verbose Mode in the \u201carp\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>arp <\/strong>command in Linux provides an option <code class=\"\" data-line=\"\">-v<\/code>\u00a0to <strong>enable verbose mode<\/strong>. In verbose mode, the command command provides an extra line at the end showing the number of ARP cache entries etc. To enable verbose mode, use the command below:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp -v<\/code><\/pre>\n<p>In the output, you can see an extra line on the bottom showing \u201c<strong>Entries<\/strong>\u201d, \u201c<strong>Skipped<\/strong>\u201d and \u201c<strong>Found<\/strong>\u201d.<\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Entries<\/strong>: Number of <strong>ARP cache entries<\/strong>.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Skipped<\/strong>: Number of <strong>entries skipped <\/strong>by the <strong>arp <\/strong><\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Found<\/strong>: Number of <strong>entries processed <\/strong>by the <strong>arp<\/strong><\/li>\n<\/ul>\n<\/div><img decoding=\"async\" class=\"aligncenter wp-image-5796 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-3.png\" alt=\"Enabling verbose mode in the arp command in Linux\" width=\"825\" height=\"483\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-3-300x176.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-3-767x449.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Arp_Cache_Entries_in_Numerical_Format\"><\/span>4. Arp Cache Entries in Numerical Format<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <code class=\"\" data-line=\"\">-n<\/code>\u00a0option in the <code class=\"\" data-line=\"\">arp<\/code> command in Linux shows output in the <strong>numerical format<\/strong>. You will see an IP address in place of the hostname. Moreover, <code class=\"\" data-line=\"\">arp -n<\/code>\u00a0<strong>doesn\u2019t<\/strong> resolve IP addresses to MAC addresses. It only shows what is in the ARP cache. So, you might see an <strong>IP address<\/strong> in place <strong>MAC address<\/strong>.<\/p>\n<p>To print ARP cache entries in numerical format, use the below command:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp -n<\/code><\/pre>\n<p style=\"text-align: justify;\">In previous examples, you might notice a hostname \u201c<strong>_gateway<\/strong>\u201d. However, in this output, you can see only its corresponding <strong>IP address<\/strong>. You can check it by matching the <strong>MAC address<\/strong>. <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5797 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-4.png\" alt=\"Displaying output in numerical format\" width=\"825\" height=\"463\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-4-300x168.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-4-768x431.png 768w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Delete_A_Host_Using_the_%E2%80%9Carp%E2%80%9D_Command_in_Linux\"><\/span>5. Delete A Host Using the \u201carp\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">It is possible to delete a particular host from the ARP cache. The <code class=\"\" data-line=\"\">arp<\/code> command in Linux provides the <code class=\"\" data-line=\"\">-d<\/code> option for that. First, execute the following command to see all the hosts:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5798 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-5.png\" alt=\"Showing all the hosts\" width=\"825\" height=\"466\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-5-300x169.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-5-767x433.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>Let&#8217;s say, you want to delete the host with the <strong>IP address<\/strong> <strong>192.168.0.54<\/strong>. To do that, use:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo arp -d 192.168.0.54<\/code><\/pre>\n<p style=\"text-align: justify;\">Now, again use <code class=\"\" data-line=\"\">arp<\/code> to list all the hosts.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5799 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-6.png\" alt=\"Deleting a host using the arp command in Linux\" width=\"825\" height=\"480\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-6-300x175.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-6-767x446.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>As you can see, there is no host with the <strong>IP address<\/strong> <strong>192.168.0.54<\/strong>. So, it is deleted from the ARP cache.<\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080; --darkreader-inline-color: #37375c;\" data-darkreader-inline-color=\"\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/traceroute-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctraceroute\u201d Command in Linux [13 Practical Examples]<\/a><\/strong><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/rsync-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201crsync\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/screen-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cscreen\u201d Command in Linux [13 Practical Examples]<\/a><\/strong><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><strong><a href=\"https:\/\/linuxsimply.com\/ssh-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cssh\u201d Command in Linux [18 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"6_Applying_the_%E2%80%9Carp%E2%80%9D_Command_for_a_Particular_IP_Address\"><\/span>6. Applying the \u201carp\u201d Command for a Particular IP Address<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">If you are interested in a particular IP address and its MAC address, you can only print its information using option <code class=\"\" data-line=\"\">-a<\/code> of the arp command in Linux. For example, to know the <strong>MAC address<\/strong> and other information of an IP address <strong>192.168.0.217<\/strong>, use:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp -a 192.168.0.217<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5800 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-7.png\" alt=\"Printing information of a specific host\" width=\"700\" height=\"89\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-7.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-7-300x38.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-7-763x97.png 763w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Prints_Hosts_With_A_Specific_Type_of_Network_Protocol\"><\/span>7. Prints Hosts With A Specific Type of Network Protocol<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <code class=\"\" data-line=\"\">arp<\/code> command in Linux has a dedicated option <code class=\"\" data-line=\"\">-H<\/code> to see all the hosts with a specific network protocol. For example, to print all the hosts with <strong>ethernet protocol<\/strong>, use the command below::<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">arp -H ether<\/code><\/pre>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5801 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-8.png\" alt=\"Specifying network protocol type in the arp command in Linux\" width=\"825\" height=\"444\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-8.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-8-300x161.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-8-767x413.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The <strong>arp <\/strong>command in <strong>Linux <\/strong>can be pretty hard for a beginner as you need some prior <strong>networking concepts<\/strong>. In this article, I have tried to explain it as easily as possible with examples. Hopefully, you have found that helpful.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"People_Also_Ask\"><\/span>People Also Ask<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"What_is_%E2%80%9Carp%E2%80%9D_command\"><\/span>What is &#8220;arp&#8221; command?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The arp command in Linux is a <strong>utility used for displaying and manipulating the Address Resolution Protocol (ARP) cache<\/strong>. It allows users to view the ARP cache, add or remove entries manually, and flush the entire cache. ARP is crucial for mapping IP addresses to MAC addresses on a local network, facilitating proper communication between devices. The &#8220;arp&#8221; command helps manage this process, aiding in network troubleshooting and maintenance.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_send_an_ARP_request_in_Linux\"><\/span>How do I send an ARP request in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can send an ARP request in Linux using the <code class=\"\" data-line=\"\">arping<\/code> command. It is a utility specifically designed to send ARP requests and measure the time taken for the response. Here&#8217;s the basic syntax:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo arping -c 3 &lt;IP_address&gt;<\/code><\/pre>\n<p>Replace &lt;IP_address&gt; with the IP address to which you want to send the ARP request.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_clear_ARP_in_Linux\"><\/span>How to clear ARP in Linux?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To clear the ARP cache in Linux, you can use the <code class=\"\" data-line=\"\">ip<\/code> or <code class=\"\" data-line=\"\">arp<\/code> command, depending on your Linux distribution and version.<\/p>\n<ol>\n<li>Using ip command:\n<pre><code class=\"language-bash\" data-line=\"\">sudo ip -s -s neigh flush all<\/code><\/pre>\n<\/li>\n<li>Using arp command:\n<pre><code class=\"language-bash\" data-line=\"\">sudo arp -a -d<\/code><\/pre>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_use_ARP_and_ping\"><\/span>How do I use ARP and ping?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>ARP and ping are two essential tools for network troubleshooting. ARP is used to map an IP address to a MAC address, while ping is used to test the connectivity between two devices. Here\u2019s how you can use them together:<\/p>\n<ol>\n<li>First, use the <code class=\"\" data-line=\"\">arp<\/code> command to check the ARP table cache on your Linux system.<\/li>\n<li>Once you have the MAC address of the device you want to ping, use the ping command to test the connectivity between the two devices. For example, if you want to ping the device with IP address 192.168.1.1, you can use the following command:\n<pre><code class=\"language-bash\" data-line=\"\">ping 192.168.1.1<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>If the device is reachable, you should see a response from the device.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Where_can_I_find_a_Linux_ARP_table\"><\/span>Where can I find a Linux ARP table?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">On Linux systems, you can find the ARP (Address Resolution Protocol) table using the <code class=\"\" data-line=\"\">arp<\/code> command or by checking the contents of the <strong>\/proc\/net\/arp<\/strong> file.<\/p>\n<ol>\n<li>Open your terminal and simply type <code class=\"\" data-line=\"\">arp<\/code>\n<p style=\"text-align: justify;\">This command will display the ARP table, showing the IP addresses and their corresponding MAC addresses.<\/p>\n<\/li>\n<li>\n<p style=\"text-align: justify;\">Alternatively, you can check the contents of the <strong>\/proc\/net\/arp<\/strong> file by using a command like <code class=\"\" data-line=\"\">cat<\/code> or <code class=\"\" data-line=\"\">less<\/code>:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">cat \/proc\/net\/arp<\/code><\/pre>\n<\/li>\n<\/ol>\n<p><script type=\"application\/ld+json\">\n    {\n      \"@context\": \"https:\/\/schema.org\",\n      \"@type\": \"FAQPage\",\n      \"mainEntity\": [{\n                \"@type\": \"Question\",\n                \"name\": \"What is arp command?\",\n                \"acceptedAnswer\": {\n              \"@type\": \"Answer\",\n              \"text\": \"The arp command in Linux is a utility used for displaying and manipulating the Address Resolution Protocol (ARP) cache. It allows users to view the ARP cache, add or remove entries manually, and flush the entire cache. ARP is crucial for mapping IP addresses to MAC addresses on a local network, facilitating proper communication between devices. The arp command helps manage this process, aiding in network troubleshooting and maintenance.\"\n}\n},{\n                \"@type\": \"Question\",\n                \"name\": \"How do I send an ARP request in Linux?\",\n                \"acceptedAnswer\": {\n              \"@type\": \"Answer\",\n              \"text\": \"You can send an ARP request in Linux using the <code class=\"\" data-line=\"\">arping<\/code> command. It is a utility specifically designed to send ARP requests and measure the time taken for the response. Here's the basic syntax:<\/p>\n<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo arping -c 3 &lt;IP_address&gt;<\/code><\/pre>\n<\/p>\n<p>Replace &lt;IP_address&gt; with the IP address to which you want to send the ARP request.\"\n}\n},{\n                \"@type\": \"Question\",\n                \"name\": \"How do I use ARP and ping?\",\n                \"acceptedAnswer\": {\n              \"@type\": \"Answer\",\n              \"text\": \"ARP and ping are two essential tools for network troubleshooting. ARP is used to map an IP address to a MAC address, while ping is used to test the connectivity between two devices. Here\u2019s how you can use them together:<\/p>\n<\/p>\n<ol>\n<li>First, use the <code class=\"\" data-line=\"\">arp<\/code> command to check the ARP table cache on your Linux system.<\/li>\n<li>Once you have the MAC address of the device you want to ping, use the ping command to test the connectivity between the two devices. For example, if you want to ping the device with IP address 192.168.1.1, you can use the following command:\n<pre><code class=\"language-bash\" data-line=\"\">ping 192.168.1.1<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>If the device is reachable, you should see a response from the device.\"\n}\n}]\n}\n<\/script><\/p>\n<p><strong><span style=\"font-size: 18pt; color: #000080; --darkreader-inline-color: #37375c;\" data-darkreader-inline-color=\"\">Similar Readings<\/span><\/strong><\/p>\n<hr \/>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/wget-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cwget\u201d Command in Linux [14 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ping-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cping\u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/curl-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccurl\u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/dig-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201c dig\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/hostname-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201chostname\u201d Command in Linux [12 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ip-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cip\u201d Command in Linux [9+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ifconfig-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cifconfig\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;5788&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;4&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (4 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201carp\u201d Command in Linux [7 Practical Examples]&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (4 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The arp command is a utility used to display and manipulate the Address Resolution Protocol (ARP) cache. It allows users &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201carp\u201d Command in Linux [7 Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/#more-5788\" aria-label=\"Read more about The \u201carp\u201d Command in Linux [7 Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314893,"featured_media":5802,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[53],"class_list":["post-5788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-networking-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201carp\u201d Command in Linux [7 Practical Examples]<\/title>\n<meta name=\"description\" content=\"The arp command in Linux maps the IP addresses to MAC addresses in a Local Area Network (LAN). It is a tool to manage the ARP cache.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201carp\u201d Command in Linux [7 Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The arp command in Linux maps the IP addresses to MAC addresses in a Local Area Network (LAN). It is a tool to manage the ARP cache.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/arp-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/walid.alasad.5\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-14T06:39:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T07:19:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-9.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Walid Al Asad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Walid Al Asad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/\"},\"author\":{\"name\":\"Walid Al Asad\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b54259fce1dc6e35d375984aff173ff0\"},\"headline\":\"The \u201carp\u201d Command in Linux [7 Practical Examples]\",\"datePublished\":\"2023-02-14T06:39:27+00:00\",\"dateModified\":\"2024-04-28T07:19:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/\"},\"wordCount\":1484,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/arp-command-in-linux-9.png\",\"keywords\":[\"networking commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/\",\"name\":\"The \u201carp\u201d Command in Linux [7 Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/arp-command-in-linux-9.png\",\"datePublished\":\"2023-02-14T06:39:27+00:00\",\"dateModified\":\"2024-04-28T07:19:41+00:00\",\"description\":\"The arp command in Linux maps the IP addresses to MAC addresses in a Local Area Network (LAN). It is a tool to manage the ARP cache.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/arp-command-in-linux-9.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/arp-command-in-linux-9.png\",\"width\":500,\"height\":500,\"caption\":\"arp command in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/arp-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201carp\u201d Command in Linux [7 Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b54259fce1dc6e35d375984aff173ff0\",\"name\":\"Walid Al Asad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Walid-Al-Asad-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Walid-Al-Asad-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Walid-Al-Asad-II-96x96.png\",\"caption\":\"Walid Al Asad\"},\"description\":\"Hello Everyone! I am Walid Al Asad. Currently, I am working at a tech company named Softeko as a Linux Content Developer Executive. I live in Dhaka, Bangladesh. I have completed my BSc. in Mechanical Engineering from Bangladesh University of Engineering and Technology (BUET). You can find me on LinkedIn, and ResearchGate. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/walid.alasad.5\",\"https:\\\/\\\/www.instagram.com\\\/alasadwalid\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/walid-al-asad\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/walid\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201carp\u201d Command in Linux [7 Practical Examples]","description":"The arp command in Linux maps the IP addresses to MAC addresses in a Local Area Network (LAN). It is a tool to manage the ARP cache.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/arp-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201carp\u201d Command in Linux [7 Practical Examples]","og_description":"The arp command in Linux maps the IP addresses to MAC addresses in a Local Area Network (LAN). It is a tool to manage the ARP cache.","og_url":"https:\/\/linuxsimply.com\/arp-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/walid.alasad.5","article_published_time":"2023-02-14T06:39:27+00:00","article_modified_time":"2024-04-28T07:19:41+00:00","og_image":[{"width":500,"height":500,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-9.png","type":"image\/png"}],"author":"Walid Al Asad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Walid Al Asad","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/"},"author":{"name":"Walid Al Asad","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b54259fce1dc6e35d375984aff173ff0"},"headline":"The \u201carp\u201d Command in Linux [7 Practical Examples]","datePublished":"2023-02-14T06:39:27+00:00","dateModified":"2024-04-28T07:19:41+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/"},"wordCount":1484,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-9.png","keywords":["networking commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/arp-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/","url":"https:\/\/linuxsimply.com\/arp-command-in-linux\/","name":"The \u201carp\u201d Command in Linux [7 Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-9.png","datePublished":"2023-02-14T06:39:27+00:00","dateModified":"2024-04-28T07:19:41+00:00","description":"The arp command in Linux maps the IP addresses to MAC addresses in a Local Area Network (LAN). It is a tool to manage the ARP cache.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/arp-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-9.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/arp-command-in-linux-9.png","width":500,"height":500,"caption":"arp command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/arp-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201carp\u201d Command in Linux [7 Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b54259fce1dc6e35d375984aff173ff0","name":"Walid Al Asad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Walid-Al-Asad-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Walid-Al-Asad-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Walid-Al-Asad-II-96x96.png","caption":"Walid Al Asad"},"description":"Hello Everyone! I am Walid Al Asad. Currently, I am working at a tech company named Softeko as a Linux Content Developer Executive. I live in Dhaka, Bangladesh. I have completed my BSc. in Mechanical Engineering from Bangladesh University of Engineering and Technology (BUET). You can find me on LinkedIn, and ResearchGate. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/walid.alasad.5","https:\/\/www.instagram.com\/alasadwalid\/","https:\/\/www.linkedin.com\/in\/walid-al-asad\/"],"url":"https:\/\/linuxsimply.com\/author\/walid\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/5788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314893"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=5788"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/5788\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/5802"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=5788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=5788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=5788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}