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-52024-garchives=archives.gentoo.org@gentoo.org>)
	id 1GT7yJ-0006QP-U8
	for garchives@archives.gentoo.org; Fri, 29 Sep 2006 02:19:28 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8T2HMbN012323;
	Fri, 29 Sep 2006 02:17:22 GMT
Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8T2CaJn004380
	for <gentoo-user@lists.gentoo.org>; Fri, 29 Sep 2006 02:12:36 GMT
Received: by wx-out-0506.google.com with SMTP id r21so1008548wxc
        for <gentoo-user@lists.gentoo.org>; Thu, 28 Sep 2006 19:12:36 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=RhKNUOWrnzmIuOW2omKQrC5JwqO9UIOix9SPzo6WdKLO9FCWu4xWzCYM1xegoVblREKwfFzPbBaZiD9tPlTmEhudNtwS2GyP2KXlfP58ormgB7LFfItX0VvmkzNiMwbb00S3qHrfoagUdaNi0tiUKqRFviMYGURoIHv0OTS8LwQ=
Received: by 10.90.25.3 with SMTP id 3mr1388agy;
        Thu, 28 Sep 2006 19:12:36 -0700 (PDT)
Received: by 10.90.27.12 with HTTP; Thu, 28 Sep 2006 19:12:36 -0700 (PDT)
Message-ID: <49bf44f10609281912w251dc1au1fd3a7a0a6c41f0b@mail.gmail.com>
Date: Thu, 28 Sep 2006 19:12:36 -0700
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Router 3rd and 4th net interface problem
In-Reply-To: <200609281547.13015.mike@gaima.co.uk>
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; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <49bf44f10609272119u2cf7d235u34f682e7ff9318d0@mail.gmail.com>
	 <200609281547.13015.mike@gaima.co.uk>
X-Archives-Salt: 2e32ae11-b483-4a19-8fea-4696daec891d
X-Archives-Hash: af3f25d16815301dc39fdd35470b39e1

> > 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.

Will do.

> > 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" )

eth0 is connected to the WAN (DSL modem/router), and ath0, eth1, and
eth2 are all meant to allow other systems to connect to the LAN via
DHCP.  Should I be configuring eth1 and eth2 as 192.168.0.1?

> > 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?

It's for DNS and DHCP.

- Grant
-- 
gentoo-user@gentoo.org mailing list