RE: DHCP and multiple subnets


Subject: RE: DHCP and multiple subnets
From: Arthur Corliss (arthur@corlissfamily.org)
Date: Sun Mar 10 2002 - 19:36:48 AKST


> So let's assume for a second that I am going to use the virtual eth
> interfaces. They might look like this:
>
> eth0 - 192.168.1.0
> eth1 - 192.168.2.0
> eth2 - 192.168.3.0
>
> Would I just configure the different subnets? Then the dhcp server handles
> the rest?
>
> Got any good info (or links) on how to do this?

Basic template (based ISC's daemon):

shared-network LAN {
    subnet 192.168.1.0 netmask 255.255.255.0 {
        authoritative;
        range 192.168.1.20 192.168.1.200;
        # any other options you may want
    }
    subnet 192.168.2.0 netmask 255.255.255.0 {
        authoritative;
        range 192.168.2.20 192.168.2.200;
        # any other options you may want
    }
    subnet 192.168.3.0 netmask 255.255.255.0 {
        authoritative;
        range 192.168.3.20 192.168.3.200;
        # any other options you may want
    }
}

Since you're using three separate interfaces, you'll need to update your
init.d/BSD script to tell the daemon to serve all of them:

    dhcpd -q eth0 eth1 eth2

--

--Arthur Corliss Bolverk's Lair -- http://arthur.corlissfamily.org/ Digital Mages -- http://www.digitalmages.com/ "Live Free or Die, the Only Way to Live" -- NH State Motto



This archive was generated by hypermail 2a23 : Mon Mar 11 2002 - 12:33:06 AKST