netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arp -a equivalent
@ 2019-01-19 20:43 Siniša Bandin
  0 siblings, 0 replies; only message in thread
From: Siniša Bandin @ 2019-01-19 20:43 UTC (permalink / raw)
  To: netdev

Hello!

There is one thing I am missing from old "arp" command: "arp -a" used to 
give both symbolic name and numeric address (if resolver is working, of 
course).

Now, with "ip neigh" I can get only one at the time, so I have to issue 
two commands if I want to check if for eg. a host is alive and I don't 
know it's IP address (issued by DHCP), but it's name is registered in 
(dynamic) DNS. First "ip -r neigh" to see what is the hostname (I don't 
like to remember 100's of hostnames, it's easier to ask Linux for a 
list), then ping/dig/whatever to resolve that name to IP...


Example output:
Good
# arp -a
name.domain.tld (192.168.188.34) at aa:bb:cc:dd:ee:f1 [ether] on wlan0

Not so good
# ip neigh
192.168.188.34 dev wlan0 lladdr aa:bb:cc:dd:ee:f1 REACHABLE

# ip -r neigh
name.domain.tld dev wlan0 lladdr aa:bb:cc:dd:ee:f1 REACHABLE


I would expect "ip -a neigh" to behave just like "arp -a", but would be 
happy with any way to have names and addresses listed together (new 
option, combination of options, ...)

Is there any way this could be implemented?

Thank you!

-- 
Srdačan pozdrav/Best regards,
Siniša Bandin


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-19 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-19 20:43 arp -a equivalent Siniša Bandin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).