First Time with Groups

Matt Neimeyer matt at neimeyer.org
Tue Mar 30 16:53:29 UTC 2010


I'm a total newb when it comes to dhcp so I apologize in advance... :)

I set up a dhcp 3.1.2 server on my Gentoo box the other day and I'm
trying to set it up so that my "unified" network in the house has
three computers using the office DSL router and the rest using the
home DSL router. The three office PCs are statically assigned and all
but one of the home PCs are dynamic. I know I could do seperate
subnets but I've got enough shared resources between the two that I'd
prefer not to go that route if I can avoid it. (NAS devices, printers,
etc)

If I've read the various man pages right I should indicate all devices
in the conf file but I'm not sure how I should represent devices that
are "self contained" with a set IP. For example, the DSL routers and
the one switch I have. (10.1.1.1, 10.1.1.254 and 10.1.1.2
respectively)

So... Did I get it right?

Thanks!

Matt

# ///////////////////////////////////////////////////////////////////////
# // 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;

subnet 10.1.1.0 netmask 255.255.255.0 {

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

        group {

                range 10.1.1.100 10.1.1.200

                router 10.1.1.254

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

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

        group {

                router 10.1.1.1

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



More information about the dhcp-users mailing list