From owner-freebsd-questions@FreeBSD.ORG Tue Nov 15 03:27:22 2005 Return-Path: X-Original-To: FreeBSD-questions@freebsd.org 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 0870516A41F for ; Tue, 15 Nov 2005 03:27:22 +0000 (GMT) (envelope-from yance_kowara@yahoo.com) Received: from web30305.mail.mud.yahoo.com (web30305.mail.mud.yahoo.com [68.142.200.98]) by mx1.FreeBSD.org (Postfix) with SMTP id 9AB1F43D45 for ; Tue, 15 Nov 2005 03:27:21 +0000 (GMT) (envelope-from yance_kowara@yahoo.com) Received: (qmail 14645 invoked by uid 60001); 15 Nov 2005 03:27:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=gh6VEgVK8J0bdx435WhukX2wANeMJysiEj29xOLqppLOdF4bGQhwtScS7DNW8t+He8O75/rqzJIC/RwU5J1wJIiyHlv2KMb2Z91KneFNvqlcp5sYsS/BIzZNsOXEv039RRLHM1ylXZDV38KY0Emc0eUi/rQSFAa0LnqcW8qyKWA= ; Message-ID: <20051115032721.14643.qmail@web30305.mail.mud.yahoo.com> Received: from [61.88.127.146] by web30305.mail.mud.yahoo.com via HTTP; Mon, 14 Nov 2005 19:27:21 PST Date: Mon, 14 Nov 2005 19:27:21 -0800 (PST) From: Yance Kowara To: FreeBSD-questions@freebsd.org In-Reply-To: <8be663db0511141858y7cfb46fbo8bcee98bca50ccaf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: dhcp server on multiple interfaces. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 03:27:22 -0000 I hope this helps, assuming you have /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample Follow the steps #cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample /etc/dhcpd.conf #ee /etc/dhcpd.conf your dhcpd.conf ###########################BEGIN DHCPD.CONF authoritative ddns-update-style interim ignore client-updates #INTERFACE fxp0 10.0.1.0/24 #It should not be written as 10.0.1.1/24 #The address of this interface (fxp0) is 10.0.1.1 subnet 10.0.1.0 netmask 255.255.255.0 { range 10.0.1.1 10.0.1.254; #Your clients will get 10.0.1.2 through to 10.0.1.254 default-lease-time 86400; max-lease-time 86400; option routers 10.0.1.1; #Change this to the internal IP address of the gateway option ip-forwarding off; option broadcast-address 10.0.1.255; option subnet-mask 255.255.255.0; option domain-name-servers 10.0.1.1; #Assuming that the DHCPD box is also your nameserver } #INTERFACE xl0 10.0.0.0/24 #It should not be written as 10.0.0.1/24 #The address of this interface (xl0) is 10.0.0.1 subnet 10.0.0.0 netmask 255.255.255.0 { range 10.0.0.1 10.0.0.200; #Your clients will get 10.0.0.2 through to 10.0.0.200 default-lease-time 86400; max-lease-time 86400; option routers 10.0.0.1; #Change this to the internal IP address of the gateway option ip-forwarding off; option broadcast-address 10.0.0.255; option subnet-mask 255.255.255.0; option domain-name-servers 10.0.0.1; #Assuming that the DHCPD box is also your nameserver } ###############END DHCPD.CONF --- BSD Mail wrote: > Hello everyone, > > I'm configuring a gateway machine with 3 network > interfaces > int_ext (rl0) will obtained a real static IP from a > public dhcp server. > int_dmz (fxp0) 10.0.1.1/24 > > both internal networks will need a dhcp server to > assign them the right > subnet > int_lan (xl0) 10.0.0.1/24 > > I already figured out how to specify multiple > subnets and grouping, static > address etc... in the dhcp config file. > > what I want to make sure of is the /etc/rc.conf > would this entry be valid and assign the right IP > from the range of subnet : > > dhcpd_ifaces="fxp0 xl0" > > will that cause the dhcp server to assign > 10.0.1.x/24 addresses to the > machines on the switch connected to fxp0 ? > and 10.0.0.x/24 to the machines on the switch > connected to xl0 ? > > If not what's the maximum number of interfaces I can > specify in the option > dhcpd_ifaces="" assuming I have all the > subnets and related information configured correctly > in the dhcpd.conf ? > > > -- > thanks, > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com