Community discussions

MikroTik App
 
hafizramli
just joined
Topic Author
Posts: 1
Joined: Tue Jun 29, 2021 2:22 pm

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

Tue Jun 29, 2021 2:41 pm

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.
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

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

Sat Jul 03, 2021 5:45 pm

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.

Who is online

Users browsing this forum: astelsrl, Bing [Bot], CGGXANNX, en1gm4, eworm, h3x00r, Kanzler and 72 guests