User Tools

Site Tools


networking:router:mikrotik_dhcp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:router:mikrotik_dhcp [2017/09/23 11:34]
gcooper
networking:router:mikrotik_dhcp [2017/10/05 13:03] (current)
gcooper
Line 1: Line 1:
 ====== Mikrotik RouterOS DHCP Notes ====== ====== Mikrotik RouterOS DHCP Notes ======
 +
 +FIXME This page is under construction and is not yet accurate.
  
 ===== DHCP Server ===== ===== DHCP Server =====
Line 5: Line 7:
 :!: 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. :!: 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 ====+==== Data VLAN Scope ====
  
-  * Option 2 (Time Offset hex value ''0xffff9d90'' is **GMT-7** hours or **-25200** seconds) +  * Voice traffic is on VLAN 200 in this example 
-  * Option 66 (TFTP Server) +  * Factory defaulted phones boot up on the data VLAN 1 
-  * Option 160 (Polycom server)+  * **Option 2** (Time Offset hex value ''0xffff9d90'' is **GMT-7** hours or **-25200** seconds) 
 +  * **Option 66** (TFTP Server) 
 +  * **Option 160** (Polycom server)
  
 <file> <file>
Line 19: Line 23:
 /ip dhcp-server option /ip dhcp-server option
 add code=2 name=time-offset value=0xffff9d90 add code=2 name=time-offset value=0xffff9d90
-add code=66 name=tftp-server value="'http://192.168.61.30:84/'" +add code=66 name=tftp-server value="'http://192.168.61.30:83/'" 
-add code=160 name=polycom-server value="'http://192.168.61.30:84/'"+add code=160 name=polycom-server value="'http://192.168.61.30:83/'"
 /ip dhcp-server network /ip dhcp-server network
 add address=192.168.62.0/24 dhcp-option=polycom-server,tftp-server,time-offset dns-server=\ add address=192.168.62.0/24 dhcp-option=polycom-server,tftp-server,time-offset dns-server=\
Line 27: Line 31:
 </file> </file>
  
-=== Voice VLAN ===+==== Voice VLAN Scope ====
  
   * Option 43 (Yealink, Ubiquiti, Ruckus and others)   * Option 43 (Yealink, Ubiquiti, Ruckus and others)
-  * Option 132 (Voice VLAN)+  * Option 132 (Voice VLAN; most phones want text string)
   * Option    * Option 
  
 +:!: LLDP and manual VLAN configurations override DHCP option 132.  **Factory-reset your phones** to be sure manual configurations are nullified.
 +
 +<file>
 +/ip dhcp-server
 +add add-arp=yes address-pool=DataPool always-broa
 +    interface=vlan1 name=DHCPdata
 +add add-arp=yes address-pool=VoicePool disabled=n
 +    DHCPvoice
 +
 +/ip dhcp-server option
 +add code=132 name=VoiceVLAN value="s'200'"
 +
 +/ip dhcp-server config
 +set store-leases-disk=10m
 +
 +/ip dhcp-server network
 +add address=192.168.1.0/24 dhcp-option=VoiceVLAN 
 +    gateway=192.168.1.1
 +add address=192.168.88.0/24 comment="default conf
 +    209.244.0.3,8.8.8.8 gateway=192.168.88.1 netm
 +add address=192.168.200.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=\
 +    192.168.200.1
 +</file>
 +
 +{{ :networking:router:mikrotik_dhcp_server_1.png?700 |}}
 +
 +{{ :networking:router:mikrotik_dhcp_server_2.png?700 |}}
  
 +{{ :networking:router:mikrotik_dhcp_server_3.png?700 |}}
networking/router/mikrotik_dhcp.1506188046.txt.gz · Last modified: 2017/09/23 11:34 by gcooper