Re: Correct way to add multiple "secondary IPs"to one dev/interface in /etc/network/interfaces?
On 22/12/2007, Jonathan Wilson <email@example.com> wrote:
> Hi Adrian,
> "iface eth0:1 inet static" and so on is exactly the way I used to do it, but
> that creates IP aliases (like as you would when using "ifconfig' manually")
> instead of secondary ips (like when you do "ip addr add" manually".
> In my above example, "eth0:1" and such are only labels. "man ip" says:
> "Each address may be tagged with a label string. In order to preserve
> compatibility with Linux-2.0 net aliases, this
> string must coincide with the name of the device or must be
> prefixed with the device name followed by colon."
> Are you sure this messes with the routing? I do not know, I'm not an expert.
> But I thought from examples on this page:
> http://www.debian.org/doc/manuals/reference/ch-gateway.en.html (see section
> 10.2.2. and surrounding) that this is the right way to do it.
AFAIK ip, route et al are called my ifconfig to do the work. Creating
an alias in the interfaces file is the correct way to do it. Why do
you not want to use an alias?
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.