LEDE
LEDE and DHPD
We’re now using LEDE on our main router (a WNDR3800). I end up accessing it remotely quite a bit so this page just collects together a few commonly used (but easily forgotten) commands.
Add A New DHCP Host
I quite like bridging the KVM hosts on fyodor onto the main network for development. To add a new DHCP entry on the router, something like the following should work
root@LEDE# uci add dhcp host
root@LEDE# uci set dhcp.@host[-1].dns='1'
root@LEDE# uci set dhcp.@host[-1].ip='10.128.128.92'
root@LEDE# uci set dhcp.@host[-1].name='worker2'
root@LEDE# uci set dhcp.@host[-1].mac='52:54:00:ec:a6:57'
root@LEDE# uci commit dhcp
root@LEDE# /etc/init.d/dnsmasq restart
The final step needs to be a restart, not a reload. The ‘dns’ option adds an entry to /tmp/host/dhcp.* which is used by dnsmasq in it’s role as a resolver.
Upgrades
The router is a WNDR3800 and the sysupgrade path seems to work quite well. I took LEDE 17.01 to OpenWRT 18.06 maintining most of the configuration. I used the wndr3800-squashfs-sysupgrade.bin image.