Hi all,
I've successfully setup simple DHCP server with udhcpd.
Everything is fine except /tmp/udhcpd.leases is empty.
I assume this is the folder where we can see which IP Address has been assigned by the server.
Let me know if you need more info.
Here is what I did
1. Prepare DHCP Server Config file
tc@Server:/$ cat /etc/udhcpd.conf
start 10.1.1.10
end 10.1.1.20
interface eth2
option subnet 255.255.255.0
option router 10.1.1.1
option lease 259200
option dns 10.1.1.1
lease_file /tmp/udhcpd.leases
option domain home
pidfile /tmp/udhcpd.pid
tc@Server:/$
2. Start the DHCP Server
tc@Server:/$ sudo udhcpd /etc/udhcpd.conf &
tc@Server:/$ ps -ef | grep udhcpd
2524 root udhcpd /etc/udhcpd.conf
2526 tc grep udhcpd
[1]+ Done sudo udhcpd /etc/udhcpd.conf
tc@Server:/$
3. Client to get new DHCP IP
tc@Client:~$ sudo udhcpc -i eth2
udhcpc (v1.24.2) started
Sending discover...
Sending discover...
Sending discover...
Sending discover...
Sending select for 10.1.1.10...
Lease of 10.1.1.10 obtained, lease time 259200
deleting routers
route: SIOCDELRT: No such process
route: SIOCADDRT: Network is unreachable
adding dns 10.1.1.1
tc@Client:~$