From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 13:59:13 2004 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 86C8F16A4CE for ; Tue, 23 Mar 2004 13:59:13 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-88.apple.com [17.250.248.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7984E43D1D for ; Tue, 23 Mar 2004 13:59:13 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin01-en2 [10.13.10.146]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i2NLxDUC014188; Tue, 23 Mar 2004 13:59:13 -0800 (PST) Received: from [10.1.1.193] ([199.103.21.225]) (authenticated bits=0) by mac.com (Xserve/smtpin01/MantshX 3.0) with ESMTP id i2NLxAga027658; Tue, 23 Mar 2004 13:59:12 -0800 (PST) In-Reply-To: <20040323212216.79885.qmail@web40104.mail.yahoo.com> References: <20040323212216.79885.qmail@web40104.mail.yahoo.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4CB7D419-7D15-11D8-A573-003065ABFD92@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Tue, 23 Mar 2004 16:59:04 -0500 To: JP X-Mailer: Apple Mail (2.613) cc: freebsd-questions@FreeBSD.ORG Subject: Re: DHCP Server Question 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: Tue, 23 Mar 2004 21:59:13 -0000 On Mar 23, 2004, at 4:22 PM, JP wrote: > So I would remove the "range" entry? Hmm, no, that's not what I meant. Staticly assigned IP addresses should be outside the range of dynamic IPs, but you can use both together. I'll copy a complete, working dhcp.conf file below. [ It is intended for someone who might have a small home network and wants to staticly assign IPs using DHCP on a FreeBSD host in a way that closely resembles the network configuration one would get simply by using the out-of-box network config using one of those Linksys broadband routers as the DHCP server. ] -- -Chuck ========= # dhcpd.conf # option definitions common to all supported networks... option domain-name "pkix.net"; option domain-name-servers 192.168.1.2; default-lease-time 10000; max-lease-time 30000; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; # ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates. ddns-update-style none; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.254; option routers 192.168.1.1; } subnet 10.1.3.0 netmask 255.255.255.0 { range 10.1.3.10 10.1.3.254; option routers 10.1.3.2; } host linksys { hardware ethernet 00:20:78:d2:03:05; fixed-address 192.168.1.1; } host sec { hardware ethernet 00:a0:cc:75:97:29; fixed-address 192.168.1.2; } [ ... ]