-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3127fa
commit b370172
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ip-neighbor | ||
|
||
> Neighbor/ARP tables management ip subcommand. | ||
> More information: <https://manned.org/ip-neighbour.8>. | ||
- 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}}` |