From: Ingo Oeser <netdev@axxeo.de>
To: Anand Kumria <wildfire@progsoc.uts.edu.au>
Cc: netdev@vger.kernel.org
Subject: Re: link-local address via ifconfig
Date: Mon, 12 Jun 2006 16:02:07 +0200 [thread overview]
Message-ID: <200606121602.08048.netdev@axxeo.de> (raw)
In-Reply-To: <20060603025743.GL549@progsoc.uts.edu.au>
Hi Anand,
Anand Kumria wrote:
> There are plenty of people who still use ifconfig to list the addresses
> assigned to their network interfaces (I know, ifconfig is broken) and
> who then parse the output.
>
> However the kernel puts link-local scoped address first if the address
> list of an interface, so an interface like:
> Is there any reason to put the link-local address first in the list?
>
> I've had a number of bugreports (or outright panic attacks) where the
> problem turned out to be that ifconfig was reporting the link-local
> address first, rather than the global/site one.
This can be worked around by defining an "alias interface" this way
"ip address add 169.254.182.108/16 brd 169.254.255.255 scope link dev eth0 label eth0:0"
(see: "label eth0:0" is appended)
So in reality this is no problem for users.
Regards
Ingo Oeser
prev parent reply other threads:[~2006-06-12 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-03 2:57 link-local address via ifconfig Anand Kumria
2006-06-03 4:55 ` Herbert Xu
2006-06-12 14:02 ` Ingo Oeser [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=200606121602.08048.netdev@axxeo.de \
--to=netdev@axxeo.de \
--cc=netdev@vger.kernel.org \
--cc=wildfire@progsoc.uts.edu.au \
/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).