This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:router:mikrotik_dhcp [2017/09/23 11:32] 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**. | :!: 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**. | ||
- | ==== VoIP Telephony Support | + | ==== Data VLAN Scope ==== |
- | * The '' | + | * Voice traffic is on VLAN 200 in this example |
- | * Option 2 (time offset) | + | * Factory defaulted phones boot up on the data VLAN 1 |
- | * Option 66 (TFTP server) | + | * **Option 2** (Time Offset |
- | * Option 160 (Polycom server) | + | |
- | * Option | + | |
< | < | ||
Line 21: | 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="' | + | add code=66 name=tftp-server value="' |
- | add code=160 name=polycom-server value="' | + | add code=160 name=polycom-server value="' |
/ip dhcp-server network | /ip dhcp-server network | ||
add address=192.168.62.0/ | add address=192.168.62.0/ | ||
Line 29: | Line 31: | ||
</ | </ | ||
- | === 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 | ||
+ | |||
+ | < | ||
+ | /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=" | ||
+ | |||
+ | /ip dhcp-server config | ||
+ | set store-leases-disk=10m | ||
+ | |||
+ | /ip dhcp-server network | ||
+ | add address=192.168.1.0/ | ||
+ | gateway=192.168.1.1 | ||
+ | add address=192.168.88.0/ | ||
+ | 209.244.0.3,8.8.8.8 gateway=192.168.88.1 netm | ||
+ | add address=192.168.200.0/ | ||
+ | 192.168.200.1 | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | {{ : | ||
+ | {{ : |