I have a Mikrotik router, which have 2 different subnets in 2 different interfaces
All is working fine
I just “Make static” a lease in 192.168.1.0/24 and after this, when I connect the same device in the other subnet, it still got the same IP, when I should get an IP in 192.168.10.0/24
Setting here:
All the settings are more than 1200 lines, it will take too long time to modify enterprise name, site names, public IPs, Passwords and other confidential info, even using “replace all” feature in notepad
This MKT has VPNs with 6 different routers, and for both wans
Believe me, there are too much words to modify
If someone has a tip, this will be wellcome.
Thanks for your answer
If I plug another computer in the same port, it obtains a different IP
The isse seems like DHCP is giving reserved addressess for specified macs, even, when this mac is in another network
For example, suppose this:
We have 192.168.1.1/24 in ehter1
We have 192.168.10.1/24 in ether2
We have a DHCP Server in each interface and we connect a different switch in each port (I know I can use VLANs but there is not here so far)
We connect a device with mac 00:11:22:33:44:55 in the switch in ether 1, I get an IP in 192.168.1.0/24
We reserve the IP (Using “Make static” option), so this device will get allways the same IP address
We disconnect the device from the switch in ether1 and connect the same device in the switch in ether2
This device should get an IP in 192.168.10.0/24 but instead it get the same IP in 192.168.1.0/24
If we connect other device in the same port in the same switch, we get another IP in the correct segment.
Could I explain the issue clear enought?
Sorry, my english is not so good.
[unreliable-hypothesis]
Some devices ask the DHCP Server explicitly what IP they want, so that if, for example,
they disconnect and reconnect from the Wi-Fi they will resume the same IP, in order to reduce the hassle.
It may be that it is your own device that by still requesting the usual IP (reserved for it) is granted to it by the DHCP Server,
even if it is not part of the pool of THAT DHCP Server (but is a valid reserved IP for that MAC address).
[/unreliable-hypothesis]
It would be good idea to mention RouterOS version. The behaviour is clearly not correct, so it might be bug, but it’s also not very likely that something like this would survive for too long without anyone noticing it. I tried quick test with 7.6 and nope, it doesn’t happen. As for testing it yourself, you don’t want other devices to connect to router, you want spare router with bare minimum config and try to reproduce it there.
@rbuserdl In general, when making a claim that something isn’t working as it is supposed to, and you think it is a bug, it is your responsibility to make a case for why you believe it is working incorrectly, with evidence.
What puts me off is that when asked a simple question
You responded with this answer:
Obviously we expect the dhcp server to offer a different ip to a different mac. But you avoided answering the question about what subnet the ip came from. There was a reason I asked, because if you got an address from the 192.168.1.0/24 then it is doing what is expected. Do you have a switch plugged into ether6 by any chance?
Did you capture the DHCP exchange with /tool/sniffer on the router or run wireshark on the PC getting the ip address?
What does ipconfig /all on the PC say about the the dhcp server?