From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-109408-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NwWQn-00065d-RS
	for garchives@archives.gentoo.org; Tue, 30 Mar 2010 08:04:14 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 906F7E0CAB
	for <garchives@archives.gentoo.org>; Tue, 30 Mar 2010 08:04:12 +0000 (UTC)
Received: from na3sys009aog104.obsmtp.com (na3sys009aog104.obsmtp.com [74.125.149.73])
	by pigeon.gentoo.org (Postfix) with SMTP id 143D2E0C63
	for <gentoo-user@lists.gentoo.org>; Tue, 30 Mar 2010 07:24:17 +0000 (UTC)
Received: from source ([209.85.223.188]) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP
	ID DSNKS7GnILotuM/YbWwrTzpg2bQqCJ+RaLpe@postini.com; Tue, 30 Mar 2010 00:24:17 PDT
Received: by iwn26 with SMTP id 26so1594712iwn.24
        for <gentoo-user@lists.gentoo.org>; Tue, 30 Mar 2010 00:24:16 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.231.149.138 with HTTP; Tue, 30 Mar 2010 00:23:56 -0700 (PDT)
From: Matt Neimeyer <matt@neimeyer.org>
Date: Tue, 30 Mar 2010 03:23:56 -0400
Received: by 10.231.159.134 with SMTP id j6mr3126701ibx.29.1269933856274; Tue, 
	30 Mar 2010 00:24:16 -0700 (PDT)
Message-ID: <9077339e1003300023r7244723fr83fa4b39ff3f26aa@mail.gmail.com>
Subject: [gentoo-user] First try at advanced dhcpd.conf
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
X-Archives-Salt: 96ffdea5-8278-40ed-8c8e-e082045901d9
X-Archives-Hash: cd3c04d325e29f88c3d94b2ed1783914

This is my first try at "advanced" settings in dhcpd.conf. Basically
what I want to do is have three machines in my home office use one dsl
router (and have static addresses) and the rest of the machines in the
home use another. (We have two DSL connections) Most of the home
machines will use dynamic addresses but one will be static. I know I
could setup two subnets but with the exception of the different
gateway devices the rest of the network is "unified".

Did I get this right? My big question is: I did two groups with one
containing the subnet but should that be the other way around? IE
should I have a single subnet containing two groups? I'm also not sure
how to indicate fixed address resources (like the two DSL modems that
have hard coded IPs in the device itself) because I'm obviously not
looking for the right thing in google... the man pages... etc...

Thanks in advance!

Matt

P.S. The dhcp server is the one I got by doing emerge dhcp...

# ///////////////////////////////////////////////////////////////////////
# // Global
# ///////////////////////////////////////////////////////////////////////

authoritative;
log-facility local7;

default-lease-time 600;
max-lease-time 7200;

option subnet-mask 255.255.255.0;
option broadcast-address 10.1.1.255;

option domain-name "localnet";
option domain-name-servers 208.67.222.222 208.67.220.220;

# ///////////////////////////////////////////////////////////////////////
# // Residential
# ///////////////////////////////////////////////////////////////////////

group {

        router 10.1.1.254

        subnet 10.1.1.0 netmask 255.255.255.0 {
                range 10.1.1.65 10.1.1.75;
        }

        host alpha {
                hardware ethernet 00:00:sa:mp:le:01;
                fixed-address  10.1.1.5;
        }
}

# ///////////////////////////////////////////////////////////////////////
# // Business
# ///////////////////////////////////////////////////////////////////////

group {

        router 10.1.1.1

        host beta {
                hardware ethernet 00:00:sa:mp:le:02;
                fixed-address  10.1.1.6;
        }
        host gamma {
                hardware ethernet 00:00:sa:mp:le:03;
                fixed-address  10.1.1.7;
        }
        host delta {
                hardware ethernet 00:00:sa:mp:le:04;
                fixed-address  10.1.1.8;
        }
}