From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 16:41:07 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD57A1065673 for ; Mon, 27 Oct 2008 16:41:06 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.237]) by mx1.freebsd.org (Postfix) with ESMTP id 8D9898FC08 for ; Mon, 27 Oct 2008 16:41:06 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: by qb-out-0506.google.com with SMTP id f30so1545383qba.35 for ; Mon, 27 Oct 2008 09:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=7+usuXEyuXrQcW7yCZPzm1XST1Iz1MyI37XVn6W3Ego=; b=xUJ9TCDWrRrHsfm+Npl8JfBPRMelwelcoe7UuzPvoXm5cs9rdptnhX6YfidyfkJXyq aQkZNWuME3RibG5xytG+8/Ukftiq0nK7PQ4WHAC/8Nhx6R42eXssNq3Yrbxjj2OVH1HZ OVADMz3m8X1oVqrZMoeQ7HeWEX961GVOKn2dE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=ZLhY71V9oWZKGhZ1iizGMT+4kFoTd1ow635TUJjzHH1CjhV/2wjzqRd/94IxLqTUX+ oxXB2qMyDbc5hCsxz7s0Ibb1P0BP0qD24vZ81lMgyHi3F/tj1I0Nk8pNxlfqC38Owvn8 PhhVsp110pNCzzkWyCWntYVYtSFmQ5+LSNHkA= Received: by 10.142.125.4 with SMTP id x4mr2771348wfc.349.1225125665269; Mon, 27 Oct 2008 09:41:05 -0700 (PDT) Received: by 10.142.154.10 with HTTP; Mon, 27 Oct 2008 09:41:05 -0700 (PDT) Message-ID: <139b44430810270941p1f05b2a7t42273e6fddc70efe@mail.gmail.com> Date: Mon, 27 Oct 2008 17:41:05 +0100 From: "Valentin Bud" To: "Wojciech Puchar" In-Reply-To: <20081027173311.H13073@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 References: <991123400810270504k745fe683mbca2f58e268ce8fd@mail.gmail.com> <20081027173311.H13073@wojtek.tensor.gdynia.pl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Odhiambo Washington , User Questions Subject: Re: DHCP and MAC addresses 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: Mon, 27 Oct 2008 16:41:07 -0000 On Mon, Oct 27, 2008 at 5:34 PM, Wojciech Puchar < wojtek@wojtek.tensor.gdynia.pl> wrote: > > Hello List, >> >> Suppose I have 100 Desktops, and I want my DHCP server to _only_ >> assign IP addresses to these hosts, using MAC addresses, is there a >> way to tell the DHCP server to NOT assign any IP address to a machine >> whose MAC address it doesn't know? >> > > of course. > > and you can assign IP to each MAC > > first > > deny unknown-clients; > (dont specify range at all) But do define the subnet: subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.1; option domain-name-servers 1.2.3.4; } If you have 100 MAC address by this technique you avoid writing options routers 1.2.3.4; in each host declaration. No matter how many subnets you have, just define them and write the router and DNS server(s) there and in the host declaration just the IP and (optional) a host-name. all the best, v > > > then > > host something { > hardware ethernet 00:11:22:33:44:55; > fixed-address 1.2.3.4; > option host-name "something.somewhere"; > option routers router_IP; > > } > > _______________________________________________ > 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" >