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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Antwort: Re: Xen 3.0.3 and VLAN
    ... auto eth0.94 ... iface eth0.94 inet static ... netmask 255.255.255.0 ... If your data center is using a Cisco network (and chances are, ...
    (Debian-User)
  • Re: Failing to use Linux PC as router
    ... iface lo inet loopback ... auto eth0 ... iface eth0 inet dhcp ... dhcp access for BOTH computers ??? ...
    (Debian-User)
  • Re: unable to bring up eth0
    ... and eth0 is your connection to the ... auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet dhcp ...
    (Debian-User)
  • Networking - multiple nics not setting up
    ... There seems to be some sort of auto ... want the eth3:avah interface or the 169.x.x.x network. ... iface eth0 inet static ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...
    (Ubuntu)
  • Networking - multiple nics not setting up
    ... There seems to be some sort of auto ... want the eth3:avah interface or the 169.x.x.x network. ... iface eth0 inet static ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...
    (Ubuntu)