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 via email to