LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCPd based on Hardware Address Wildcard. (https://www.linuxquestions.org/questions/linux-networking-3/dhcpd-based-on-hardware-address-wildcard-326222/)

Big_tummy 05-23-2005 09:20 AM

DHCPd based on Hardware Address Wildcard.
 
Hi all,

This is my very first thread here in linuxquestions.org.

I'm trying to set up a DHCP server were I have to offer different bootp files, to the DHCP Clients, based on their MAC Address.

Assuming the first 6 characters, of the MAC address, are referring to the Vendor, I would like to create a scope with two client-class; were I offer file "X" to Clients were the MAC address request starts by "00:00:11:*" and offer file "Y" to Clients were the MAC address requests starts by "00:00:22:*"

Note: Those MACs are completely invented.

The idea is to give automatically to the requests offers from the same IP scope, but having a rule criteria based on the MAC address vendor.

Thanks in advance,
JE

Half_Elf 05-23-2005 11:44 AM

uuufff it would be nice but I doubt the ol' BOOTP protocol support that kind of wildcard without HEAVY tweaking.
Hmmm the only way I think of right now would be a script listening to the network packets for "new" mac address and that add these to dhcpd.conf (and restart dhcpd) if one is found. But that wouldn't be easy to code, neither it would be safe to use.


All times are GMT -5. The time now is 05:45 PM.