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

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



On Tue, 5 Jun 2007, Mike Bird wrote:

> On Tuesday 05 June 2007 11:40, Account for Debian group mail wrote:
> > Hello,
> >
> > I have the same problem on an new machine I'm putting together.
> > When the machine does something (like sending out email) it shows that the
> > mail mail came from the IP address associated with eth0:1 not eth0. How
> > can I get this machine to use the IP address that is with eth0?
> >
> > Thanks,
> >
> > Ken
> >
> > My interface file looks like:
> >
> > ------------------------------------------------------------------------
> > # This file describes the network interfaces available on your system
> > # and how to activate them. For more information, see interfaces(5).
> >
> > # The loopback network interface
> > auto lo
> > iface lo inet loopback
> >
> > # The primary network interface
> > allow-hotplug eth0
> > iface eth0 inet static
> >         address 206.129.50.15
> >         netmask 255.255.255.0
> >         network 206.129.50.0
> >         broadcast 206.129.50.255
> >         gateway 206.129.50.1
> >         # dns-* options are implemented by the resolvconf package, if
> > installed
> >         dns-nameservers 206.129.48.22 209.102.124.11 209.102.124.10
> >         dns-search pcez.com
> >
> > auto eth0:1
> > iface eth0:1 inet static
> >         address 206.129.50.201
> >         netmask 255.255.255.0
> >         network 206.129.50.0
> >
> > auto eth0:2
> > iface eth0:2 inet static
> >         address 206.129.50.202
> >         netmask 255.255.255.0
> >         network 206.129.50.0
> >
> > auto eth0:3
> > iface eth0:3 inet static
> >         address 206.129.50.203
> >         netmask 255.255.255.0
> >         network 206.129.50.0
>
> My Etch systems don't experiences this problem.  Just a wild guess, but
> have you tried "auto eth0" instead of allow-hotplug?
>
> --Mike Bird
>
>
> --

That was it! Changed that around it works like it should. I wonder if
anyone knows that allow-hotplug does that?

Thanks,

Ken



Reply to: