[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiple IP addresses on eth0 - which is "canonical"?



On Fri, Feb 02, 2007 at 05:18:46PM -0500, George Adams wrote:
> Hello.  I have the following setup in /etc/network/interfaces to bind two 
> IP addresses (let's say 11.22.33.44 and 11.22.33.45) onto my one NIC:
> ---------------------------------------------------
> auto lo
> iface lo inet loopback
> 
> auto eth0
> iface eth0 inet static
>        address 11.22.33.44
>        netmask 255.255.255.0
>        network 11.22.33.0
>        broadcast 11.22.33.255
>        gateway 11.22.33.1
> 
> auto eth0:0
> iface eth0 inet static
>        address 11.22.33.43
>        netmask 255.255.255.0
>        network 11.22.33.0
>        broadcast 11.22.33.255
>        gateway 11.22.33.1
> ---------------------------------------------------

I may not be remembering correctly, but, I thought eth0:0 and eth0
refer to the same thing. so you have set eth0 to 11.22.33.44 and then
using eth0:0 reset it to 11.22.33.43. I believe you need to use eth0
and eth0:1 to get seperate addresses on the same interface.


A

Attachment: signature.asc
Description: Digital signature


Reply to: