Date: Mon, 27 Oct 2008 17:41:05 +0100 From: "Valentin Bud" <valentin.bud@gmail.com> To: "Wojciech Puchar" <wojtek@wojtek.tensor.gdynia.pl> Cc: Odhiambo Washington <odhiambo@gmail.com>, User Questions <freebsd-questions@freebsd.org> Subject: Re: DHCP and MAC addresses Message-ID: <139b44430810270941p1f05b2a7t42273e6fddc70efe@mail.gmail.com> In-Reply-To: <20081027173311.H13073@wojtek.tensor.gdynia.pl> References: <991123400810270504k745fe683mbca2f58e268ce8fd@mail.gmail.com> <20081027173311.H13073@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?139b44430810270941p1f05b2a7t42273e6fddc70efe>