From: Stephen Hemminger <stephen@networkplumber.org>
To: Scott Fields <slfields66@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: "ip addr show" returns interface names that won't work with "ip addr show dev <ifname>"
Date: Mon, 14 Jun 2021 14:20:29 -0700 [thread overview]
Message-ID: <20210614142029.56ad4421@hermes.local> (raw)
In-Reply-To: <B4F46201-5CB4-416A-928C-13F885727CFD@gmail.com>
On Mon, 14 Jun 2021 14:52:50 -0500
Scott Fields <slfields66@gmail.com> wrote:
> Has this been received? I’ve not seen any response.
>
> > On Jun 11, 2021, at 5:27 AM, Scott Fields <slfields66@gmail.com> wrote:
> >
> > “ip addr show” will return a list of devices that may not work with “ip addr show dev <ifname>”.
> >
> > If you have list vlan device, it will return it as “<vlan ifname>@<parent ifname>”.
> >
> > However, “ip addr show dev <ifname>” will not work with that name.
> >
> > “ip addr show dev <ifname>” should work with interface names that “ip addr show” returns.
>
The % syntax is how ip commands show the link field of the device.
It has been that way since the initial versions of iproute2 back in 2.4 Linux kernel.
So it is a historical behavior that won't change.
prev parent reply other threads:[~2021-06-14 21:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-11 10:27 "ip addr show" returns interface names that won't work with "ip addr show dev <ifname>" Scott Fields
2021-06-14 19:52 ` Scott Fields
2021-06-14 21:20 ` Stephen Hemminger [this message]
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=20210614142029.56ad4421@hermes.local \
--to=stephen@networkplumber.org \
--cc=netdev@vger.kernel.org \
--cc=slfields66@gmail.com \
/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).