Gentoo Archives: gentoo-user

From: Matt Neimeyer <matt@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] First try at advanced dhcpd.conf
Date: Tue, 30 Mar 2010 08:04:14
Message-Id: 9077339e1003300023r7244723fr83fa4b39ff3f26aa@mail.gmail.com
1 This is my first try at "advanced" settings in dhcpd.conf. Basically
2 what I want to do is have three machines in my home office use one dsl
3 router (and have static addresses) and the rest of the machines in the
4 home use another. (We have two DSL connections) Most of the home
5 machines will use dynamic addresses but one will be static. I know I
6 could setup two subnets but with the exception of the different
7 gateway devices the rest of the network is "unified".
8
9 Did I get this right? My big question is: I did two groups with one
10 containing the subnet but should that be the other way around? IE
11 should I have a single subnet containing two groups? I'm also not sure
12 how to indicate fixed address resources (like the two DSL modems that
13 have hard coded IPs in the device itself) because I'm obviously not
14 looking for the right thing in google... the man pages... etc...
15
16 Thanks in advance!
17
18 Matt
19
20 P.S. The dhcp server is the one I got by doing emerge dhcp...
21
22 # ///////////////////////////////////////////////////////////////////////
23 # // Global
24 # ///////////////////////////////////////////////////////////////////////
25
26 authoritative;
27 log-facility local7;
28
29 default-lease-time 600;
30 max-lease-time 7200;
31
32 option subnet-mask 255.255.255.0;
33 option broadcast-address 10.1.1.255;
34
35 option domain-name "localnet";
36 option domain-name-servers 208.67.222.222 208.67.220.220;
37
38 # ///////////////////////////////////////////////////////////////////////
39 # // Residential
40 # ///////////////////////////////////////////////////////////////////////
41
42 group {
43
44 router 10.1.1.254
45
46 subnet 10.1.1.0 netmask 255.255.255.0 {
47 range 10.1.1.65 10.1.1.75;
48 }
49
50 host alpha {
51 hardware ethernet 00:00:sa:mp:le:01;
52 fixed-address 10.1.1.5;
53 }
54 }
55
56 # ///////////////////////////////////////////////////////////////////////
57 # // Business
58 # ///////////////////////////////////////////////////////////////////////
59
60 group {
61
62 router 10.1.1.1
63
64 host beta {
65 hardware ethernet 00:00:sa:mp:le:02;
66 fixed-address 10.1.1.6;
67 }
68 host gamma {
69 hardware ethernet 00:00:sa:mp:le:03;
70 fixed-address 10.1.1.7;
71 }
72 host delta {
73 hardware ethernet 00:00:sa:mp:le:04;
74 fixed-address 10.1.1.8;
75 }
76 }