Hi Harry,
Actually I worked around that and I made a configuration which is probably wrong,
for dhcp_tag in $dhcp_tags.keys():
#user-class for Cobbler DHCP tag: $dhcp_tag
#if $dhcp_tags=pxeclient
class "pxeclient" {
match if option user-class = "pxeclient";
}
#if $dhcp_tags=foo
class "mysql" {
match if option user-class = "foo";
}
#end if
#if $dhcp_tags=bar
class "others" {
match if option user-class = "bar";
}
#end if
subnet 192.168.57.0 netmask 255.255.255.0 {
pool{
allow members of "pxeclient";
option routers 192.168.57.111;
option domain-name-servers 8.8.8.8;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.57.200 192.168.57.254;
filename "/pxelinux.0";
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.57.111;
}
pool {
allow members of "foo";
range 192.168.57.30 192.168.57.40;
option routers 192.168.57.102;
}
pool {
allow members of "bar";
range 192.168.57.50 192.168.57.100;
}
}
Also I did the settings change manage_dhcp: 1 and no changes in /etc/dhcp/dhcpd.conf file.