I have setup a mikrotik as DHCP server for my access point, everything (should be) has been setup including ip pool, etc.
One thing that make me confused is that every device can get the IP from the mikrotik but unable to surf to internet, but if i manually set the ip that i get from mikrotik previously to the device, and it can surf to internet.
Just wonder, why same ip (one through DHCP server and another using manual setup) can have different behaviour.
ip pool
add name=dhcp ranges=192.168.1.100-192.168.1.200
add name="NET 100" ranges=192.168.100.100-192.168.100.200
This is just a home network which wont be exceed 256 of hosts. mask should be /24 right? i mean something like 255.255.255.0 = /24
and something weird is that the mikrotik assign the ip in reverse order, mean it will assign 192.168.100.200 and the 192.168.100.199. Shouldn’t it assign starting from the small IP?
Yes. Then why did you put /32 there? That is a 1-host network…
and something weird is that the mikrotik assign the ip in reverse order, mean it will assign 192.168.100.200 and the 192.168.100.199. Shouldn’t it assign starting from the small IP?
I know it is annoying, but there is nothing wrong with that.
It is the way the Linux DHCP server did it for some time (first it started numbering from low, then some arbitrary
change was made in the code that made it numbering reverse, all comments about it were downplayed and
“it wasn’t going to change because it wasn’t worth the effort to look at it”, but as if by magic at some later
version it was fixed. But apparently MikroTik have not yet incorporated that version into RouterOS.
Maybe in RouterOS v7