RE: DHCP and multiple subnets


Subject: RE: DHCP and multiple subnets
From: Mike Barsalou (mbarsalou@aidea.org)
Date: Mon Mar 11 2002 - 12:39:03 AKST


Could I just use one interface? How would the dhcp server know which
address to give out? Does it find the info it needs in the packet
somewhere?

Mike

-----Original Message-----
From: Arthur Corliss [mailto:arthur@corlissfamily.org]
Sent: Sunday, March 10, 2002 7:37 PM
To: Mike Barsalou; 'Craig Callender'
Cc: 'aklug@aklug.org'
Subject: RE: DHCP and multiple subnets

> 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:40:56 AKST