From: Matt Neimeyer <matt@neimeyer.org>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] First try at advanced dhcpd.conf
Date: Tue, 30 Mar 2010 03:23:56 -0400 [thread overview]
Message-ID: <9077339e1003300023r7244723fr83fa4b39ff3f26aa@mail.gmail.com> (raw)
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;
}
}
reply other threads:[~2010-03-30 8:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9077339e1003300023r7244723fr83fa4b39ff3f26aa@mail.gmail.com \
--to=matt@neimeyer.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox