On Mon, Oct 27, 2008 at 5:34 PM, Wojciech Puchar <
[EMAIL PROTECTED]> 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;
>
> }
>
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"