Operating System - Linux
1830443 Members
2018 Online
110004 Solutions
New Discussion

DHCP: name acknowlege only

 
Chris H_3
Advisor

DHCP: name acknowlege only

Hi all,
I'm setting up a DHCP server for a large internal network, and some hosts will get special instructions based on name and MAC addr, but a few will also need to receive their information based on name only. Is it possible to have a host auth by name only? I have tried various configurations, and there doesn't seem to be many, but the DHCP server won't start if I just have something like this inside my subnet listing:

host testdhcp {
fixed-address xxx.xxx.xxx.xxx
default-lease-time xxx
max-lease-time xxx
}

But if I add

hardware ethernet

inside the braces, it starts fine.

Make sense? :)
So, again, is it possible to give out info with just a host name?

Thanks for your time
CH
3 REPLIES 3
Stuart Browne
Honored Contributor

Re: DHCP: name acknowlege only

Short answer: no.

As the name can be faked, moved, or even doubled-up, there's really no way to tie it to a given address or physical machine.
One long-haired git at your service...
Chris H_3
Advisor

Re: DHCP: name acknowlege only

:(

Oh well, thanks for the reply

CH
Ameet_HP
Frequent Advisor

Re: DHCP: name acknowlege only

I made folowing format : Works perfect.

host server_name {
hardware ethernet 04:14:13:02:8E:CD;
fixed-address 192.168.2.4;
option subnet-mask 255.255.255.0;
option routers 132.226.193.254;
option host-name "host.domain.com";
option domain-name "domain.com";
option domain-name-servers 192.168.2.50;
}

Thanks,
Ameet