From b370172b87f4b4f6a4c3c4ed4c4c40efa2c8461d Mon Sep 17 00:00:00 2001 From: patricedenis Date: Tue, 6 Apr 2021 14:59:19 +0200 Subject: [PATCH 1/3] ip-neighbour: add page --- pages/linux/ip-neighbor.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/linux/ip-neighbor.md diff --git a/pages/linux/ip-neighbor.md b/pages/linux/ip-neighbor.md new file mode 100644 index 00000000000000..a86d193d9587af --- /dev/null +++ b/pages/linux/ip-neighbor.md @@ -0,0 +1,24 @@ +# ip-neighbor + +> Neighbor/ARP tables management ip subcommand. +> More information: . + +- Display the neighbor/ARP table entries: + +`ip neighbor` + +- Remove entries in the neighbor table on device `eth0`: + +`sudo ip neighbor flush dev {{eth0}}` + +- Perform a neighbor lookup and return a neighbor entry: + +`ip neighbor get {{lookup_ip}} dev {{eth0}}` + +- Add or delete an ARP entry for the neighbour IP address to `eth0`: + +`sudo ip neighbor {{add|del}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable` + +- Change or replace an ARP entry for the neighbor IP address to `eth0`: + +`sudo ip neighbor {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}` From 3c9ced3a353e2c3701ebd0ff9f8b72e5ad4e907c Mon Sep 17 00:00:00 2001 From: Patrice Denis Date: Wed, 7 Apr 2021 17:19:16 +0200 Subject: [PATCH 2/3] ip-neighbor: fix lowercase ip to uppercase IP --- pages/linux/ip-neighbor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/ip-neighbor.md b/pages/linux/ip-neighbor.md index a86d193d9587af..520c323902295c 100644 --- a/pages/linux/ip-neighbor.md +++ b/pages/linux/ip-neighbor.md @@ -1,6 +1,6 @@ # ip-neighbor -> Neighbor/ARP tables management ip subcommand. +> Neighbor/ARP tables management IP subcommand. > More information: . - Display the neighbor/ARP table entries: From 0e6610fe8750454925793312c392757dc66cc56c Mon Sep 17 00:00:00 2001 From: patricedenis Date: Thu, 8 Apr 2021 10:08:04 +0200 Subject: [PATCH 3/3] ip-neighbour: back to english spelling to conform to name of man pages --- pages/linux/ip-neighbor.md | 24 ------------------------ pages/linux/ip-neighbour.md | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 pages/linux/ip-neighbor.md create mode 100644 pages/linux/ip-neighbour.md diff --git a/pages/linux/ip-neighbor.md b/pages/linux/ip-neighbor.md deleted file mode 100644 index 520c323902295c..00000000000000 --- a/pages/linux/ip-neighbor.md +++ /dev/null @@ -1,24 +0,0 @@ -# ip-neighbor - -> Neighbor/ARP tables management IP subcommand. -> More information: . - -- Display the neighbor/ARP table entries: - -`ip neighbor` - -- Remove entries in the neighbor table on device `eth0`: - -`sudo ip neighbor flush dev {{eth0}}` - -- Perform a neighbor lookup and return a neighbor entry: - -`ip neighbor get {{lookup_ip}} dev {{eth0}}` - -- Add or delete an ARP entry for the neighbour IP address to `eth0`: - -`sudo ip neighbor {{add|del}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable` - -- Change or replace an ARP entry for the neighbor IP address to `eth0`: - -`sudo ip neighbor {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}` diff --git a/pages/linux/ip-neighbour.md b/pages/linux/ip-neighbour.md new file mode 100644 index 00000000000000..13bf8108677c3b --- /dev/null +++ b/pages/linux/ip-neighbour.md @@ -0,0 +1,24 @@ +# ip-neighbour + +> Neighbour/ARP tables management IP subcommand. +> More information: . + +- Display the neighbour/ARP table entries: + +`ip neighbour` + +- Remove entries in the neighbour table on device `eth0`: + +`sudo ip neighbour flush dev {{eth0}}` + +- Perform a neighbour lookup and return a neighbour entry: + +`ip neighbour get {{lookup_ip}} dev {{eth0}}` + +- Add or delete an ARP entry for the neighbour IP address to `eth0`: + +`sudo ip neighbour {{add|del}} {{ip_address}} lladdr {{mac_address}} dev {{eth0}} nud reachable` + +- Change or replace an ARP entry for the neighbour IP address to `eth0`: + +`sudo ip neighbour {{change|replace}} {{ip_address}} lladdr {{new_mac_address}} dev {{eth0}}`