New to OpenWRT

Hello all. New OpenWRT user coming from Fresh Tomato. I have clean install on a Nanopi R5S and it works great except static IP leases. I assign a static lease to a device on my network. Reboot the router and that device no longer receives an address. Since I assigned it static of course it is not listed in /tmp/DHCP.leases anymore. I have to manually assign a static IP on the device so that I can access OpenWRT to delete the static rule and get a new address from DHCP. What am I doing wrong? This should be simple. Add the device MAC and IP address, reboot the router and it should work. What am I missing here?

Presumably there is a mistake in the static lease assignment... let's take a look:

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
1 Like

If you want fulll DNS resolution for your static leases (you usually do), you need to add option dns '1' to them.

Ok I managed to get the static lease thing worked out. Had something to do with the way my WAN was configured which makes no sense but it's fixed now after a factory reset. Now I have a second issue. I have a 1gb ISP connection. When I hook up my old Fresh Tomato router I get around 943 mbps. When I use OpenWRT and speed test I get 93 mbps? I reset the router to stock factory defaults so all the inerfaces are at their stock values. Does the firewalls stock values throttle speeds? I really want to like this new router but the learning curve is killing me compared to other router software. IDK maybe I'm an idiot.

You may want to try offloading options and retest.
In Luci click "Network" > "Firewall"
Check "Software flow offloading" and optionally "Hardware flow offloading" too.
This second option appears only with the first one checked.

As far as I know your router has a Rockchip RK3568 four core A55 running at 2 GHz so should be capable of 1 Gb/s LAN<>WAN.

I assume that you are measuring wired from LAN.

So there must be something amiss with your setup.

Better follow the advice of psherman so that we can have a look

2 Likes

This sounds like a port is running at 100Mbps and causing a bottleneck. Check all your cables, ideally replace them with known good ones. Also check the ports and connectors for any sign of bent pins or debris.

1 Like

They can check the status page for link status.

Easiest way to set a static lease is to let OpenWRT assign an IP address and, on the Status Page, select 'set static'.

You can manipulate the dhcp address range if you want to trap a device to a static lease address of your choice.
Then set it static in the device's configuration.

You will never see the device in the Status Page again. It will be in Network/ DHCP and DNS/Static Leases.

I have no idea what your WAN had to do with it and I suspect it didn't and was coincidental.

Are you sure about that?

My LuCI Status page:


Shows connected IPv4 only, IPv6 only, and dual-stack devices.

And my Network/DHCP and DNS/Static Leases page:

Which also lists the same IPv4/IPv6 Static lease info from the Status page.

If you set it static the ‘easy’ way, as I described, you will not see them.

:spiral_notepad:I replied from my phone, but, as shown, once the first lease runs out, it becomes infinite and no longer shows up in Active DHCP Leases on The Status Page:


Your pages look nothing like mine and I don't use IPv6, so I cannot explain it, if you used OpenWRT to 'Set Static' and it still offers you the option.

Thank everyone for their replies. Software offloading being unchecked was definitely causing my slow speeds. Checked the box and restarted router and I now have my gigabit speed back. Again, thanks to all for your help.