{"id":2715,"date":"2022-12-20T15:17:06","date_gmt":"2022-12-20T18:17:06","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/ipneighbour-man8\/"},"modified":"2022-12-20T15:17:06","modified_gmt":"2022-12-20T18:17:06","slug":"ipneighbour-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/ipneighbour-man8\/","title":{"rendered":"IP&minus;NEIGHBOUR (man8)"},"content":{"rendered":"<h1 align=\"center\">IP\u2212NEIGHBOUR<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ip-neighbour \u2212 neighbour\/arp tables management.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip<\/b> [ <i>OPTIONS<\/i> ] <b>neigh<\/b> { <i>COMMAND<\/i> | <b>help<\/b> }<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip neigh<\/b> { <b>add<\/b> | <b>del<\/b> | <b>change<\/b> | <b>replace<\/b> } { <i>ADDR<\/i> [ <b>lladdr<\/b> <i>LLADDR<\/i> ] [ <b>nud<\/b> <i>STATE<\/i> ] | <b>proxy<\/b> <i>ADDR<\/i> } [ <b>dev<\/b> <i>DEV<\/i> ] [ <b>router<\/b> ] [ <b>extern_learn<\/b> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip neigh<\/b> { <b>show<\/b> | <b>flush<\/b> } [ <b>proxy<\/b> ] [ <b>to<\/b> <i>PREFIX<\/i> ] [ <b>dev<\/b> <i>DEV<\/i> ] [ <b>nud<\/b> <i>STATE<\/i> ] [ <b>vrf<\/b> <i>NAME<\/i> ]<\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><b>ip neigh get<\/b> <i>ADDR<\/i> <b>dev<\/b> <i>DEV<\/i><\/p>\n<p style=\"margin-left:23%; margin-top: 1em\"><i>STATE<\/i> := { <b>permanent<\/b> | <b>noarp<\/b> | <b>stale<\/b> | <b>reachable<\/b> | <b>none<\/b> | <b>incomplete<\/b> | <b>delay<\/b> | <b>probe<\/b> | <b>failed<\/b> }<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>ip neigh<\/b> command manipulates <i>neighbour<\/i> objects that establish bindings between protocol addresses and link layer addresses for hosts sharing the same link. Neighbour entries are organized into tables. The IPv4 neighbour table is also known by another name &#8211; the ARP table.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The corresponding commands display neighbour bindings and their properties, add new neighbour entries and delete old ones. <br \/> ip neighbour add<\/p>\n<p style=\"margin-left:22%;\">add a new neighbour entry<\/p>\n<p style=\"margin-left:11%;\">ip neighbour change<\/p>\n<p style=\"margin-left:22%;\">change an existing entry<\/p>\n<p style=\"margin-left:11%;\">ip neighbour replace<\/p>\n<p style=\"margin-left:22%;\">add a new entry or change an existing one<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">These commands create new neighbour records or update existing ones. <b><br \/> to<\/b> <i>ADDRESS<\/i> <b>(default)<\/b><\/p>\n<p style=\"margin-left:32%;\">the protocol address of the neighbour. It is either an IPv4 or IPv6 address.<\/p>\n<p style=\"margin-left:22%;\"><b>dev<\/b> <i>NAME<\/i><\/p>\n<p style=\"margin-left:32%;\">the interface to which this neighbour is attached.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>proxy<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>indicates whether we are proxying for this neighbour entry<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>router<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>indicates whether neighbour is a router<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>extern_learn<\/b><\/p>\n<p style=\"margin-left:32%;\">this neigh entry was learned externally. This option can be used to indicate to the kernel that this is a controller learnt dynamic entry. Kernel will not gc such an entry.<\/p>\n<p style=\"margin-left:22%;\"><b>lladdr<\/b> <i>LLADDRESS<\/i><\/p>\n<p style=\"margin-left:32%;\">the link layer address of the neighbour. <i>LLADDRESS<\/i> can also be <b>null<\/b>.<\/p>\n<p style=\"margin-left:22%;\"><b>nud<\/b> <i>STATE<\/i><\/p>\n<p style=\"margin-left:32%;\">the state of the neighbour entry. <b>nud<\/b> is an abbreviation for \u2019Neighbour Unreachability Detection\u2019. The state can take one of the following values: <b><br \/> permanent<\/b><\/p>\n<p style=\"margin-left:43%;\">the neighbour entry is valid forever and can be only be removed administratively.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"8%\">\n<p><b>noarp<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"57%\">\n<p>the neighbour entry is valid. No attempts to validate this entry will be made but it can be removed when its lifetime expires.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:32%;\"><b>reachable<\/b><\/p>\n<p style=\"margin-left:43%;\">the neighbour entry is valid until the reachability timeout expires.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"8%\">\n<p><b>stale<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"57%\">\n<p>the neighbour entry is valid but suspicious. This option to <b>ip neigh<\/b> does not change the neighbour state if it was valid and the address is not changed by this command.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"8%\">\n<p><b>none<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"57%\">\n<p>this is a pseudo state used when initially creating a neighbour entry or after trying to remove it before it becomes free to do so.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:32%;\"><b>incomplete<\/b><\/p>\n<p style=\"margin-left:43%;\">the neighbour entry has not (yet) been validated\/resolved.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"10%\">\n<p><b>delay<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"57%\">\n<p>neighbor entry validation is currently delayed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"10%\">\n<p><b>probe<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"57%\">\n<p>neighbor is being probed.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"32%\"><\/td>\n<td width=\"10%\">\n<p><b>failed<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"57%\">\n<p>max number of probes exceeded without success, neighbor validation has ultimately failed.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\">ip neighbour delete<\/p>\n<p style=\"margin-left:22%;\">delete a neighbour entry<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The arguments are the same as with <b>ip neigh add<\/b>, except that <b>lladdr<\/b> and <b>nud<\/b> are ignored.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>Warning:<\/b> Attempts to delete or manually change a <b>noarp<\/b> entry created by the kernel may result in unpredictable behaviour. Particularly, the kernel may try to resolve this address even on a <b>NOARP<\/b> interface or if the address is multicast or broadcast.<\/p>\n<p style=\"margin-left:11%;\">ip neighbour show<\/p>\n<p style=\"margin-left:22%;\">list neighbour entries <b><br \/> to<\/b> <i>ADDRESS<\/i> <b>(default)<\/b><\/p>\n<p style=\"margin-left:32%;\">the prefix selecting the neighbours to list.<\/p>\n<p style=\"margin-left:22%;\"><b>dev<\/b> <i>NAME<\/i><\/p>\n<p style=\"margin-left:32%;\">only list the neighbours attached to this device.<\/p>\n<p style=\"margin-left:22%;\"><b>vrf<\/b> <i>NAME<\/i><\/p>\n<p style=\"margin-left:32%;\">only list the neighbours for given VRF.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>proxy<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>list neighbour proxies.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"9%\">\n<p><b>unused<\/b><\/p>\n<\/td>\n<td width=\"1%\"><\/td>\n<td width=\"68%\">\n<p>only list neighbours which are not currently in use.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>nud<\/b> <i>STATE<\/i><\/p>\n<p style=\"margin-left:32%;\">only list neighbour entries in this state. <i>NUD_STATE<\/i> takes values listed below or the special value <b>all<\/b> which means all states. This option may occur more than once. If this option is absent, <b>ip<\/b> lists all entries except for <b>none<\/b> and <b>noarp<\/b>.<\/p>\n<p style=\"margin-left:11%;\">ip neighbour flush<\/p>\n<p style=\"margin-left:22%;\">flush neighbour entries <br \/> This command has the same arguments as <b>show.<\/b> The differences are that it does not run when no arguments are given, and that the default neighbour states to be flushed do not include <b>permanent<\/b> and <b>noarp<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">With the <b>-statistics<\/b> option, the command becomes verbose. It prints out the number of deleted neighbours and the number of rounds made to flush the neighbour table. If the option is given twice, <b>ip neigh flush<\/b> also dumps all the deleted neighbours.<\/p>\n<p style=\"margin-left:11%;\">ip neigh get<\/p>\n<p style=\"margin-left:22%;\">lookup a neighbour entry to a destination given a device<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"7%\">\n<p><b>proxy<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>indicates whether we should lookup a proxy neighbour entry<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%;\"><b>to<\/b> <i>ADDRESS<\/i> <b>(default)<\/b><\/p>\n<p style=\"margin-left:32%;\">the prefix selecting the neighbour to query.<\/p>\n<p style=\"margin-left:22%;\"><b>dev<\/b> <i>NAME<\/i><\/p>\n<p style=\"margin-left:32%;\">get neighbour entry attached to this device.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">ip neighbour<\/p>\n<p style=\"margin-left:22%;\">Shows the current neighbour table in kernel.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">ip neigh flush dev eth0<\/p>\n<p style=\"margin-left:22%;\">Removes entries in the neighbour table on device eth0.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">ip neigh get 10.0.1.10 dev eth0<\/p>\n<p style=\"margin-left:22%;\">Performs a neighbour lookup in the kernel and returns a neighbour entry.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ip<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Original Manpage by Michail Litvak <mci@owl.openwall.com><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  ip-neighbour \u2212 neighbour\/arp tables management. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,69,4],"class_list":["post-2715","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-ip-neighbour","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=2715"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/2715\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=2715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=2715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=2715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}