Change adress space

Hello
I have a spare MikroTik hEX router. To make it distinct from from my production Mikrotik hEP router while testing stuff I want it to use another address space than 192.168.88.0/24 maybe 192.168.87.0/24. I have tried in a web browser to change the spare router’s address to 192.168.87.1 and its DHCP server accordingly, but I always lose contact with my laptop no matter which way I go about it.
Does anyone know how can I do this starting with a factory reset hEX router?

–Björn, Lund, Sweden
PS I am a senior C# programmer with just basic networking knowledge.

Logical. If you change ip settings, you lose connection when using ip.

Like cutting off the branch you’re sitting on.

Use mac access via Winbox.

I’d say it’s more like moving to the new cellular provider and the SIM loses registration in the old one but is not accepted/registered in the new one yet.

I was thinking of first turning off DHCP on my laptop and also change netmask to 255.255.0.0. Then 192.168.88.x and 192.188.87.x would both be in range when changing ip on the spare router to 192.168.87.1. So making a new connection in the laptop web browser to the new router address would still work.
Then I modify the DHCP settings on the router. And finally reactivate DHCP on the laptop.

Does this procedure sound reasonable?

—Björn

My Macbook Air laptop is running Ubuntu. Is Winbox ported to Linux?

Edit: sorry for the question. Of course it is!

Alternative approach (but cumbersome):

  • move 1 port away from bridge
  • provide DHCP server and limited address pool on that port
  • connect your laptop to that port so it gets a lease in the new range
  • then you can change the rest, not touching settings of that port
    But MAC access is so much easier :laughing:

And yet another approach … if you have another Mikrotik device connected to that router, use that one to connect your laptop to and then ROMON into the device you want to change.

Yet another approach.

Mikrotiks allow you to have more than one address on an interface. We will use this temporarily:

  1. Add (not change/modify) an address of 192.168.87.1/24 to your LAN interface (probably bridge)
  2. Reconfigure DHCP. Change the IP Pool to e.g. 192.168.87.100-192.168.87.253 and the DHCP network to 192.168.87.0/24.
  3. Disconnect/reconnect your PC/laptop. Verify that you have received an IP in the 192.168.87.x range.
  4. Connect to the router via its 192.168.87.1 address and remove/disable the 192.168.88.1 address.

Yes. This method worked!

–Björn