On Sat, 16 Feb 2008 18:58:34 -0600, Tom Horsley wrote:
> I'd like to run a dhcp server that will only respond to dhcp requests
> from the virtual machines on my xen server box (all of which use
> 00:16:3e as a mac address prefix).
>
> This seemed like such a simple idea till I started reading the
> dhcpd.conf man page :-).
>
> I see a dhcp-eval man page, I see a "hardware" operator, and then I run
> out of pointers. What the heck does the string generated by "hardware"
> look like? I can't find an example anywhere, so I can't tell what to
> look for in it to match only my virtual machines.
>
> Anyone know what "hardware" generates? Anyone have an example of already
> doing something like this?
>
> Thanks for any info you can provide...
here is a section of my dhcpd.conf file where I assign IPs to my tivos
based on their hardware / mac address. The hardware address is just a
mac address.
host tivodev {
# FA120
hardware ethernet 00:0f:b5:84:d0:23;
fixed-address tivodev.private.net;
}
host tivoa {
# FA120
hardware ethernet 00:09:5b:e3:76:eb;
#tivonet
#hardware ethernet 00:0B:AD:77:68:43;
fixed-address tivoa.private.net;
}
host tivob {
# usb200m
#hardware ethernet 00:10:60:25:f5:d1;
hardware ethernet 00:12:0E:02:C7:6B;
fixed-address tivob.private.net;
}
I don't know how to specify a hardware range... just individual mac
addresses....
why not hardcode your xen mac address in the xen profile and then use
those same mac addresses in your dhcpd.conf file. That's what I do for
my vmware stuff. I set the mac address on the virtual interface to
something that I know what it is and put that in my dhcpd.conf file.
--
D.A.M. - Mothers Against Dyslexia
see
http://www.jacksnodgrass.com for my contact info.
jack - Grapevine/Richardson