isc-dhcp-server - Raspberry Pi Forums


i looking limit ip-address dhcp-server can give out 1 address
in case 192.168.42.11
address of pi 192.168.42.1

code: select all

subnet 192.168.42.0 netmask 255.255.255.0 {         range 192.168.42.10 192.168.42.11;         option broadcast-address 192.168.42.255;         option routers 192.168.42.1;         default-lease-time 10;         max-lease-time 10;         option domain-name "local";         option domain-name-servers 192.168.42.1,8.8.8.8;         on commit{                 set clip = binary-to-ascii(10,8,".",leased-address);                 execute("python /home/pi/clear.py");         } } 
every time connect 192.168.42.10
have tried setting range 192.168.42.11 192.168.42.11 , failed ip address
i've tried 192.168.42.11 192.168.42.12 , 192.168.42.12

on commit function suppose clear leases after connection solution given on reddit.

what address have given pi ?


raspberrypi



Comments