From owner-freebsd-questions@FreeBSD.ORG Mon Apr 21 14:48:04 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC51E37B401 for ; Mon, 21 Apr 2003 14:48:04 -0700 (PDT) Received: from foem.leiden.webweaving.org (fia224-72.dsl.hccnet.nl [62.251.72.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F50243F93 for ; Mon, 21 Apr 2003 14:48:03 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from foem (foem [10.11.0.2])h3LLm1TA007934; Mon, 21 Apr 2003 23:48:02 +0200 (CEST) (envelope-from dirkx@webweaving.org) Date: Mon, 21 Apr 2003 23:48:01 +0200 (CEST) From: Dirk-Willem van Gulik X-X-Sender: dirkx@foem.leiden.webweaving.org To: Paul Hoffman In-Reply-To: Message-ID: <20030421234450.T29555-100000@foem.leiden.webweaving.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: Running isc-dhcpd on two interfaces? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2003 21:48:05 -0000 On Mon, 21 Apr 2003, Paul Hoffman wrote: > Hi again. I have a box that has two interfaces on two nets, and I > want it to be a DHCP server for both nets. I installed isc-dhcpd from > ports, but it looks like it is pretty much hard-wired to only run > once, using just one config file. How do I make it work for two > different interfaces ? Option 1: - Mention each interface in /usr/local/etc/rc.isc-dhcpd.conf the dhcpd_ifaces=sis0 sis1 sis2 sis3 fxp0 fxp2 line Option 2 Have NO interfaces at all; isc-dhcp will run on all interfaces. And make it non authoritative for the non dhcp running ifaces: subnet 172.17.144.64 netmask 255.255.255.248 {not authoritative; } # vx0 # wi0 Omni voor de buurt # subnet 172.17.144.0 netmask 255.255.255.192 { range 172.17.144.10 172.17.144.60; option broadcast-address 172.17.144.63; option subnet-mask 255.255.255.192; option routers 172.17.144.1; } # Interlink to church: # subnet 172.16.0.68 netmask 255.255.255.252 {not authoritative; } # wi1 Dw