hey, I've implemented a dhcp server, I want to cretae several subnets inside the same subnet using net mask, at teh same time i want to give the ip by mac. The problem is that when the server get the mac dont give the correct ip to the client, its like i didnt define it in conf file. The syslog shows how the petition arrives but later the server dont give it the correct ip. Thats my conf, can someone help me?:
server-identifier servidor; option domain-name "loquesea.es"; #option nis-domain "loquesea.es"; option routers 192.168.5.3; #option subnet-mask 255.255.255.0; #option nis-servers <IP servidor NIS, si tienes>; option domain-name-servers 192.168.5.3; #option ntp-servers <IP NTP server>; # pool.ntp.org default-lease-time 8640000; next-server 192.168.5.3; filename "pxelinux.0"; #filename "boot.bin" subnet 192.168.5.0 netmask 255.255.255.192 {range 192.168.5.1 192.168.5.63; option broadcast-address 192.168.5.255; option routers 192.168.5.3; option domain-name-servers 192.168.5.3; next-server 192.168.5.3; filename "pxelinux.0"; #filename "boot.bin"; default-lease-time 600; max-lease-time 71200;} subnet 192.168.5.64 netmask 255.255.255.192 {range 192.168.5.65 192.168.5.123; option broadcast-address 192.168.5.255; option routers 192.168.5.3; option domain-name-servers 192.168.5.3; next-server 192.168.5.3; filename "pxelinux.0"; #filename "boot.bin"; default-lease-time 600; max-lease-time 71200;} group { host prueba1 { #KUBUNTU hardware ethernet xx:xx:xx:xx:xx:50; fixed-address 192.168.5.7; option domain-name-servers 192.168.5.3; option host-name "prueba1"; } host prueba2 { hardware ethernet xx:xx:xx:xx:xx:51; fixed-address 192.168.5.2; option domain-name-servers 192.168.5.3; option host-name "prueba2"; } } group { host prueba3 { #KUBUNTU hardware ethernet xx:xx:xx:xx:xx:54; fixed-address 192.168.5.66; option domain-name-servers 192.168.5.3; option host-name "prueba3"; } host prueba4 { hardware ethernet xx:xx:xx:xx:xx:55; fixed-address 192.168.5.2; option domain-name-servers 192.168.5.3; option host-name "prueba4"; } } thanks