netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Siniša Bandin" <sinisa@4net.rs>
To: netdev@vger.kernel.org
Subject: arp -a equivalent
Date: Sat, 19 Jan 2019 21:43:38 +0100	[thread overview]
Message-ID: <cec19c10a6a9a9817d19a2f4d97c24ac@4net.rs> (raw)

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


                 reply	other threads:[~2019-01-19 20:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cec19c10a6a9a9817d19a2f4d97c24ac@4net.rs \
    --to=sinisa@4net.rs \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).