I have an issue with static DHCP lease. I tried adding one with the following steps:
- ssh my router
-
vi /tmp/dhcp.leases
, remove the line which refers to my raspberry pi at 192.168.1.180 - LuCi: Added an entry to Network > DHCP and DNS > Static leases >>> Server settings table
pi3 | B8:27:EB:A2:53:89 | 192.168.11.133 | infinite | *none* | *none*
- ssh:
vi /etc/config/dhcp
, made sure this is there:
config host
option name 'pi3'
option dns '1'
option mac 'b8:27:eb:a2:53:89'
option ip '192.168.11.133'
option leasetime 'infinite'
- Restarted my rpi, and while it is restarting, through ssh:
/etc/init.d/network reload
,uci commit dhcp
and/etc/init.d/dnsmasq restart
Still, after the raspberry getting an IP, the LuCi Network > DHCP and DNS > Static leases >>> Active DHCP Leases table has this:
Hostname | IPv4-Address | MAC-Address | Lease time remaining
pi3 | 192.168.1.180 | B8:27:EB:A2:53:89 | 11h 53m 19s
And also ip a s
on the raspi shows the .180 ip address.
What am I doing wrong?