Reserve IP address for my desktop PC

Hello.

I need to reserve an IP address for my desktop PC, but I'm totally new in the OpenWrt world.

Anyone can tell me how can I reserve an IP address in OpenWrt?

Edit: I have OpenWrt firmware installed on my Linksys Ea9500.

Thank you all :slight_smile:

From LuCI (web interface): Network > DHCP & DNS > Static leases. Click add - you’ll need the MAC address of your PC and the desired ip address.

Once you have finished, renew the dhcp lease from your computer and it should pick up the reserved address.

4 Likes

FYI, you don't know to type the MAC address or something, most probably you will find the laptop already in the list, so you just select it and type the IP address you desire. Note that you need to hit enter for the IP to be saved.

I follow the same steps as you said. But when I try to disconnect the wifi then reconnect it, the reserve IP is not working.

Can you show us what you entered?

1 Like

It worked perfectly.

Thank you :smiley: :smiley:

Following the steps


Disconnect wifi and reconnect it then check IP address. It is not changed.

You have set the IP address to 192.168.10.10, but your computer has an address in the 192.168.1.0/24. The IP address you've set is not the same subnet as your current connection, so it is not valid.

Was that a typo (maybe you meant 192.168.1.10)?

2 Likes

Yes, you are right. It works perfectly.

Was that a typo (maybe you meant 192.168.1.10)?No, in reality I do not understand how networking works :joy:. I'm finding now on the internet how to change the subnet to work with 192.168.10.10

Any particular reason for that?
The whole subnet will have to change (by editing your router LAN interface and change its IP to be on that subnet - - for example 192.168.10.1), or you would have to the subnet mask to be 255.255.240.0 (that would mean you network ID would be 192.168.1.0/20, giving you IP range from 192.168.1.1 to 192.168.15.254).

Though, while all that is possible, do you have a reason to want to do any of it?

1 Like

:laughing: There is no technical reason behind. The reason is that it makes me easy to remember.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.