[dhcp-agent-devel] help: multiple dynamic pools classed by MAC address
Status: Alpha
Brought to you by:
actmodern
From: Steve W. <pa...@qu...> - 2003-05-13 23:19:23
|
Hi All, I am not subscribed, so please cc to me, or reply-all, thanks. How do I class-out by MAC address list into multiple dynamic pools ? IPs issued must be dynamic. # /etc/dhcpd.conf # /this/ list of MAC addresess go in class foo ; class "foo" { match if substring (option something_unknown) = "{list-foo}"; } # this /other/ list of MAC addresses go in class bar ; class "bar" { match if substring (option something_unknown) = "{list-bar}"; } # add another class later.. #class "other" { # match if substring (option something_unknown) = "{list-bar}"; # } # and then ; shared-network CLIENTS { subnet 192.168.0.0 netmask 255.255.255.0 { pool { allow members of "foo"; range dynamic-bootp 192.168.0.101 192.168.0.253; } pool { allow members of "bar"; range dynamic-bootp 192.168.0.60 192.168.0.100; } } # and then the other fixed stuff host dumbass { hardware ethernet 00:40:95:33:13:19; fixed-address 192.168.0.1; } Connecting/booting clients get put in appropriate subnet. ... or some other method of allocating IPs on the local LAN interface. Clients are generic and unknown, MAC address is known (registered by hand / web-site). If I have to run dhcpd as a slave off some back-end (MySQL / RADIUS) I would consider that too. TIA, /steve |