From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-51989-garchives=archives.gentoo.org@gentoo.org>)
	id 1GSxHC-0001BA-W0
	for garchives@archives.gentoo.org; Thu, 28 Sep 2006 14:54:15 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8SEqkqu008586;
	Thu, 28 Sep 2006 14:52:46 GMT
Received: from gimli.home.gaima.co.uk (brad.comodogroup.com [82.109.38.202])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8SElENf021225
	for <gentoo-user@lists.gentoo.org>; Thu, 28 Sep 2006 14:47:15 GMT
Received: (qmail 10698 invoked from network); 28 Sep 2006 15:47:13 +0100
Received: from localhost (127.0.0.1)
  by localhost with SMTP; 28 Sep 2006 15:47:13 +0100
From: Mike Williams <mike@gaima.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Router 3rd and 4th net interface problem
Date: Thu, 28 Sep 2006 15:47:12 +0100
User-Agent: KMail/1.9.4
References: <49bf44f10609272119u2cf7d235u34f682e7ff9318d0@mail.gmail.com>
In-Reply-To: <49bf44f10609272119u2cf7d235u34f682e7ff9318d0@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200609281547.13015.mike@gaima.co.uk>
X-Archives-Salt: 96bedec5-1352-4b7e-857f-fbb32aa7f071
X-Archives-Hash: 37b02079dce9b83d5ba0146319b81f98

On Thursday 28 September 2006 05:19, Grant wrote:
> I have a Gentoo router with eth0 connected to the WAN (DSL modem/router)
> and ath0 connected to the LAN.  It works perfectly.
>
> I've added two ethernet cards and I'm trying to connect from another
> machine to one of the new cards (eth1 and eth2).  ifconfig shows the cards
> are detected just fine, but dhcp always fails when trying to obtain an IP
> address. I have the following /etc/conf.d/net:

Firstly, you really should look at /etc/conf.d/net.example and upgrade your 
config to the new format.

> config_eth0="192.168.1.2 netmask 255.255.255.0"
> routes_eth0="default via 192.168.1.1"
>
> config_ath0="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
> mode_ath0="master"
> essid_ath0="mynetwork"
>
> config_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
>
> config_eth2="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"

Err, you can't assign the same IP to multiple interfaces.
You mention DHCP, did you mean that eth1 and eth2 are to get a DHCP leases 
from another server? If so, do this:
config_eth1=( "dhcp" )
config_eth2=( "dhcp" )

> I've started net.eth1 and net.eth2 (both are links to net.lo) and restarted
> dnsmasq.  I thought it might be a problem with my iptables settings which
> don't take the new interfaces into account, but stopping iptables doesn't
> seem to help.

What are you using dnsmasq for?

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list