I am looking at a running config on a MikroTik that is in production. Naturally I’m working in Safe Mode.
I’m looking at DHCP Server. My address Pool reference a list called default-dhcp (192.168.88.10-192.168.88.254).
Under DCHP Servers>Network I see a network 192.168.88.0/24 - What purpose does this serve? I think it means that if a see a request coming from the 192.168.88.0/24, it will give out IP addresses from the 192.168.88.10-192.168.88.254 range. Am I correct?
Well…no. This states that you have configured dhcp server for that subnet. It gives out ip’s for every arp request if you run hotspot service on your router, for instance. You can add addres ranges for your specific needs, for example, your range from 10-254 if you need first 8 addresses to be reserved for internetwork need.
You can do this right from winbox and by clicking on ip-dhcp server-network panel.
I hope this helps.
Each DHCP server gives an IP address based on the pool setting.
The network setting dictates what else is given, based on what the chosen IP is.
Let’s say you have a pool that contains 192.168.88.10, and 192.168.99.10 (yes, you can do that).
In the network tab, you’re saying that if an IP is in the subnet 192.168.88.0/24, it will be given whatever other settings are there (mask, gateway, dns, etc.). And then you can add another rule, saying that if the IP is in the subnet 192.168.99.0/24, it would be given a different set of such settings.
Hi Boen,
I think I understand what you are saying. But I believe all the information from a DHCP request comes together…I would be assigned an IP address, mask, gateway, and dns all in one request. I don’t think there is a way on my Windows PC to do isolate the DHCP query for IP from a query for Mask, gateway, and dns. Is there?
But RouterOS itself doesn’t just immediately give out the IP. It first selects the IP, and only then gathers the rest of the settings that are then given to the client all at once.