Mikrotik : Setup DHCP lease for VOIP devices on the same segment of Data.

Hi

Currently, I just brought Mikrotik CCR1036 and all configuration have been done.

Current setup DHCP
dhcp pool 192.168.0.1/24 (192.168.0.1-254) for all pc, wifi & ip phone.

If possible to setup as follows:

All network are flat there are no vlan for data or voice configure in router and switches.
dhcp lease all from same segment and no vlan configure within 192.168.0.0/24 and gateway is 192.168.0.1.
dhcp lease for PC from 192.168.0.2 - 192.168.0.200
dhcp lease for VOIP (IP Phone) from 192.168.0.201 - 192.168.0.220 (VOIP devices Yealink & Grandstream)

Kindly advise.

Split your ip pools and use vendor class.

/ip pool
add name=lan next-pool=lan2 ranges=192.168.0.2-192.168.0.199
add name=lan2 ranges=192.168.0.221-192.168.0.254
add name=voip ranges=192.168.0.200-192.168.0.220

/ip dhcp-server vendor-class-id
add address-pool=voip name=yealink server=default vid=yealink
add address-pool=voip name=grandstream server=default vid=grandstream

This works for yealink (tested), not sure about grandstream. You may have to check the config of the devices.