multiple "match-values" in a subclass

Vijayakumar T. T. vijayt at cdac.in
Thu Aug 9 04:52:30 UTC 2012


Dear All,

Thanks for your quick response...

As you mentioned, i tries doing the same and up in partialy sucess.
Am attaching dhcp configuration below kindly suggest the changes.

ignore client-updates;
update-static-leases on;
log-facility local6;
authoritative;
ddns-updates on;
ddns-update-style interim;
subnet 192.168.3.0 netmask 255.255.255.0 { #;
option routers 192.168.3.100;
default-lease-time 1800;
max-lease-time 2700;
}
key "rndc-key"{#;
algorithm hmac-md5;
secret "ZMuBAUkZcqucayG2u6IoRg==";}
class "extern" { match hardware; }
subclass "extern" 1:00:1e:ec:63:44:11;
option wpad code 252=text;
option subnet-mask 255.255.255.0;
option domain-name "pune.cdac.in";
option domain-name-servers 192.168.16.140;
option time-offset -18000;
option ntp-servers 192.168.16.134;
subnet 192.168.16.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.16.102 192.168.16.110;
pool {  range 192.168.16.240 192.168.16.250; allow members of "extern";  }
default-lease-time 300;
max-lease-time 360;
ddns-updates on;
zone 16.168.192.in-addr.arpa {#;
primary 192.168.16.140;
key "rndc-key";}
zone npsf.pune.cdac.in {primary 192.168.16.140;         key "rndc-key"; 
}
option routers 192.168.16.140;
option subnet-mask 255.255.255.0;
option domain-name "npsf.pune.cdac.in";
option domain-name-servers 192.168.16.140;
option time-offset -18000;}

Observations are

1. When ever I connect using system having MAC address 
"00:1e:ec:63:44:11", i get an IP from "dynamic-bootp 192.168.16.102 
192.168.16.110". Since this MAC falls in class "extern" the system should 
actualy get an IP from "range 192.168.16.240 192.168.16.250", which is not 
happening. Kindly suggest the changes required to acheive it.

2. If i delete "dynamic-bootp 192.168.16.102 192.168.16.110" statement in 
dhcp configuration , the system is taking IP address from "range 
192.168.16.240 192.168.16.250" pool. Is that something to do with order of 
configuration line ???

3. The DDNS updation for the said MAC address also enabled in dhcp 
configuration.. Is it because of that the MAC address is not getting IP 
from range "192.168.16.240 192.168.16.250"

Kindly help..


Regards
VIJAY

On Wed, 8 Aug 2012, Simon Hobson wrote:

> Vijayakumar T. T. wrote:
>
>> Please let me know how I can add multiple "match-values" in a subclass 
>> decleration. My aim is to specify as much as MAC address in subclass 
>> defenition, how it can be acheived ?? My current class and sub-class 
>> defenition are as below but here i was only able to define ONE MAC address 
>> per subclass. And in this case if i need to specify 1000 MACs then I should 
>> have 1000 subclass statement...How it can be avoided..??
>> 
>> class "cdac.in" { match hardware; };
>> subclass "cdac.in" 1:00:1e:ec:63:44:11;
>
> You just add additional subclass statements :
> class "cdac.in" { match hardware; };
> subclass "cdac.in" 1:00:1e:ec:63:44:11;
> subclass "cdac.in" 1:...;
> subclass "cdac.in" 1:...;
> subclass "cdac.in" 1:...;
>
> putting a different mac address in each one.
> That's the whole point of the subclass construct.
>
> -- 
> Simon Hobson
>
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>

-------------------------------------------------------------------------------------------------------------------------------

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------



More information about the dhcp-users mailing list