User Tools

Site Tools


networking:router:mikrotik_dhcp

This is an old revision of the document!


Mikrotik RouterOS DHCP Notes

DHCP Server

:!: If you have any problems with the DHCP server (maybe it didn't hand out a gateway address?), try deleting all existing pools and all existing DHCP servers, then run the DHCP Setup Wizard. In fact, this is probably the fastest, easiest way to configure the DHCP server in most all cases.

VoIP Telephony Support

  • The time-offset hex value 0xffff9d90 is GMT-7 hours or -25200 seconds
  • Option 2 (time offset)
  • Option 66 (TFTP server)
  • Option 160 (Polycom server)
  • Option
/ip pool
add name=dhcp_pool1 ranges=192.168.62.65-192.168.62.199

/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge lease-time=1d name="LAN DHCP"
/ip dhcp-server option
add code=2 name=time-offset value=0xffff9d90
add code=66 name=tftp-server value="'http://192.168.61.30:84/'"
add code=160 name=polycom-server value="'http://192.168.61.30:84/'"
/ip dhcp-server network
add address=192.168.62.0/24 dhcp-option=polycom-server,tftp-server,time-offset dns-server=\
    8.8.8.8,8.8.4.4 domain=mydomain.local gateway=192.168.62.1 netmask=24 next-server=\
    192.168.61.30 ntp-server=192.168.61.1

Voice VLAN

  • Option 43 (Yealink, Ubiquiti, Ruckus and others)
  • Option 132 (Voice VLAN)
  • option 43 is used by Yealink, Ubiquiti and Ruckus
networking/router/mikrotik_dhcp.1506187953.txt.gz · Last modified: 2017/09/23 11:32 by gcooper