← All commands
Topic hub Networking
Windows Linux Networking

Windows arp -a equivalent in Linux

Displays recently discovered IP-to-MAC address mappings for devices on local networks.

Windows arp -a
Linux equivalents
Debian/Ubuntu same command
ip neigh show
Fedora same command
ip neigh show
Arch same command
ip neigh show

Overview

What this command does

Displays recently discovered IP-to-MAC address mappings for devices on local networks.

Migration tip: ip neigh is the modern Linux replacement for arp. Entries may be reachable, stale, delayed or failed depending on their current state.

Practical tasks

Common use cases

Show the neighbor table

Displays recently discovered IP-to-MAC address mappings for devices on local networks.

ip neigh show

Show all neighbor entries

ip neigh show dev enp5s0

Show neighbors on one interface

sudo ip neigh flush all

Clear the neighbor cache

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

ip neigh show
ip neigh show dev enp5s0
sudo ip neigh flush all

Walkthrough

Examples with explanations

ip neigh show # display the neighbor table
ip neigh show dev enp5s0 # filter by interface
sudo ip neigh flush all # clear cached neighbor entries

Reference

Common options and variations

Command or optionUse
ip neigh showShow all neighbor entries
ip neigh show dev enp5s0Show neighbors on one interface
sudo ip neigh flush allClear the neighbor cache

Distro differences

Debian/Ubuntu vs Fedora vs Arch

This command is the same on Debian/Ubuntu, Fedora and Arch Linux when the relevant tool is installed.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command ip neigh show Same command on this distribution.
Fedora same command ip neigh show Same command on this distribution.
Arch same command ip neigh show Same command on this distribution.

Important

What to watch out for

Flushing the neighbor table can briefly interrupt local connectivity while entries are relearned.

Keep learning

Related Networking commands