From: Jose Luis Domingo Lopez <lartc@24x7linux.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] First Post: Question on Ip Aliasing
Date: Thu, 08 Apr 2004 15:12:21 +0000 [thread overview]
Message-ID: <20040408151221.GA2450@localhost> (raw)
In-Reply-To: <CD5A093C9390BC498DDFE6175C73FCC9BBBA@lagmail.lagraphico.in>
On Thursday, 08 April 2004, at 06:53:27 -0700,
Discussion Lists wrote:
> I did a google search on this and didn't find exactly what I was looking
> for. Suppose I have a machine that has an IP alias eth0:0. I have set
> up HTB.init so that it properly throttles bandwidth on eth0, however
> when I use eth0:0, it doesn't work. I read elsewhere that it should
> work at the PHYSICAL device layer, and should therefore work for both at
> once. This is not happening though. Just wanted to find out if
>
I think that the "hack" of "alias interfaces" in Linux has been one
major source of conceptual problems with respect to Linux routing and
the like in past years :-). I have always believed that it is much
better to think of IP addresses in Linux as assigned to physical
interfaces rather than associated to some kind of a virtual one.
The "ip address show" command shows very clearly this fact. Each
interface has zero or more IP addresses assigned to it, and with "ip"
you will never see "alias interfaces" again, because this tool is modern
enough to understand the fact. I encourage everyone to make the move to
"ip" from old "ifconfig" and related tools as soon as possible.
In the "ip" world you just have physical (or not so physical, like bond?
or VLAN interfaces) interfaces and IP assigned to them. And when you
want to refer to IP addresses, you just use them. And when you want to
refer to interfaces, use the one you need.
Also, have a look at the Stef Coene's excellent KPTD at:
http://www.docum.org/stef.coene/qos/kptd/
Couple the above diagram with the previous explanation about IP and
interfaces and maybe all will now be simpler to you.
Greetings.
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Sid (Linux 2.6.5)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2004-04-08 15:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-08 13:53 [LARTC] First Post: Question on Ip Aliasing Discussion Lists
2004-04-08 15:12 ` Jose Luis Domingo Lopez [this message]
2004-04-08 20:59 ` Discussion Lists
2004-04-08 22:48 ` Daniel Chemko
2004-04-08 23:55 ` Roy
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=20040408151221.GA2450@localhost \
--to=lartc@24x7linux.com \
--cc=lartc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.