Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Correct way to add multiple "secondary IPs"to one dev/interface in /etc/network/interfaces?

From: Adrian Levi <adrian.levi(at)gmail.com>
Date: Fri Dec 21 2007 - 15:10:12 EST


On 22/12/2007, Jonathan Wilson <jw@mailsw.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?

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
 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.


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Fri Dec 21 15:10:48 2007

This archive was generated by hypermail 2.1.8 : Wed Feb 27 2008 - 21:32:01 EST


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library