more than one IP Pool on DHCP

Hi!

I Have a problem with running more than one IP-Pool from same interface.

This is my setup:

[admin@MikroTik] /ip dhcp-server> print
Flags: X - disabled, I - invalid

NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP

0 I server1 ether2 dhcp_pool1 6h

[admin@MikroTik] /ip dhcp-server> network print

ADDRESS GATEWAY DNS-SERVER WINS-SERVER DOMAIN

0 85.252.27.0/24 85.252.27.1 195.204.188.170
194.19.2.11
195.204.188.171
1 195.204.90.0/25 195.204.90.1 195.204.188.170
194.19.2.11
195.204.188.171

[admin@MikroTik] /ip> pool print

NAME RANGES

0 dhcp_pool1 85.252.27.4-85.252.27.245
1 dhcp_pool2 195.204.90.10-195.204.90.120
[admin@MikroTik] /ip>

I want the router to release from pool1 first until emtpty than from pool2, and ive set next-pool on pool1 till pool2. But nothing happens when pool1 is empty.

Anyone who know how i can do this?

Sincerely
Stig

If you don’t need two separate pools you can put both address ranges into a single pool.

/ip pool add name=“combined_pool” ranges=85.252.27.4-85.252.27.245,195.204.90.10-195.204.90.120

What Mikrotik version are you using? I’m not aware of any issues with the next pool option.. I’m using it on 3.0rc13..

-Gerard

Hi and thanks for the quick answear!

Im running 3.0RC13 too on a RB333. The thing that went wrong here was that we only used 2 ports 1 for outside(WAN) and 2 for inside(LAN), and I connected today a log-server to eth3 and enabled briding on 2 and 3. That was right, but than the pool2 stopped being used witch i thing is very strange. In not 100% shure it worked before I enabled briding but when i now changed pool2 fron ether2 til bridge1 it worked normally.

So this might be a little bug, but ill try remove the bridge and the log-server tomorrow to see if the same happens.

regards,
Stig

oh, that make sense then..

You have to make sure your dhcp server is on your bridge interface..

If you put a dhcp server on an ethernet interface that is a member of a bridge it will not work..

You’ll notice that the dhcp server turns red when it isn’t on the bridge interface..

-Gerard