Re: How can I alocate a hostname based on MAC adress and DHCP?
- From: "Jack Snodgrass" <jacks_temp_id_indigo@xxxxxxxxxxx>
- Date: Thu, 26 Oct 2006 08:23:08 GMT
On Thu, 26 Oct 2006 00:56:00 -0700, Andi wrote:
Hi, i have a small network (50 comps) and I want to alocate each
computer a hostname based on the MAC adress. Eg:
comp1.lab1.....etc,etc.... Even if somebody change the hostname, on the
next reboot the computer must take the hostname from the server based
on the MAC adress. Any ideas?
Thanks
The dhcpd server will let you assign an ip address and suggest
a host name based on the machines mac address. The box that
uses dhcpd to get it's ip address and host name may or may not
use the hostname... depends on how that box is configured.
Put an entry like:
host video.some.net {
hardware ethernet 00:0C:6E:4B:1F:70;
fixed-address video.some.net;
}
in your dhcpd.conf file and have the ip address for video.some.net
resolve to the name video.some.net and when the machine with that
mac address requests an ip address, it will get the one you assign
and get the name that goes with the ip address.
jack
--
D.A.M. - Mothers Against Dyslexia
see http://www.jacksnodgrass.com for my contact info.
jack - Grapevine/Richardson
.
- References:
- Prev by Date: How can I alocate a hostname based on MAC adress and DHCP?
- Next by Date: Re: Messaging Protocol
- Previous by thread: How can I alocate a hostname based on MAC adress and DHCP?
- Next by thread: for each box on a very small lan: route, multi subnets, ip alias
- Index(es):
Relevant Pages
|