howto:general:dhcp:multiple_dhcp

Differences

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

Link to this comparison view

howto:general:dhcp:multiple_dhcp [2015/05/12 16:45]
admin [UCI Config System]
howto:general:dhcp:multiple_dhcp [2018/05/24 09:05]
Line 1: Line 1:
-====== Multiple DHCP-Server instances ====== 
- 
-Sometimes it is required to have multiple dhcp-server instances with different configuration settings. ​ 
- 
-Here is how: 
- 
-===== Overview ===== 
- 
-==== Level of difficulty === 
- 
-   ​Medium 
- 
-==== Related topics ==== 
- 
-  * [[documentation:​configuration:​UCI]] 
-  * [[documentation:​configuration:​config_files:​config_dhcp|/​etc/​config/​dhcp]] 
-  ​ 
-===== Instructions ===== 
- 
-==== GUI ==== 
- 
-Not available, yet 
- 
-==== UCI Config System ==== 
- 
-  * **Add DHCP instance** 
-<​code>​ 
-uci add dhcp dhcp 
-uci set dhcp.@dhcp[-1].inderface=guest 
-uci set dhcp.@dhcp[-1].start=62 
-uci set dhcp.@dhcp[-1].limit=192 
-uci set dhcp.@dhcp[-1].leasetime=600h 
-</​code> ​       ​ 
-__Note:__ The option interface defines on which interface the dhcp-server is listening for dhcp-requests. 
- 
-  * **Store changes** 
-<​code>​ 
-uci commit 
-</​code>​ 
- 
-  * **Apply changes** 
-<​code>​ 
-/​etc/​init.d/​dnsmasq restart 
-</​code>​ 
- 
-==== UCI config files ==== 
- 
-The '​dhcp'​ options are stored in [[documentation:​configuration:​config_files:​config_dhcp|/​etc/​config/​dhcp]] 
- 
-  * **DHCP instance** 
-<​code>​ 
-config '​dhcp'​ '​guest'​ 
-        option '​interface'​ '​guest'​ 
-        option '​start'​ '​62'​ 
-        option '​limit'​ '​192'​ 
-        option '​leasetime'​ '​600h'​ 
-</​code>​ 
-__Note:__ The option interface defines on which interface the dhcp-server is listening for dhcp-requests. 
- 
-  * **Apply changes** 
-<​code>​ 
-/​etc/​init.d/​dnsmasq restart 
-</​code>​ 
- 
-===== Troubleshooting ===== 
- 
-Not available, yet 
- 
- 
- 
  
howto/general/dhcp/multiple_dhcp.txt ยท Last modified: 2018/05/24 09:05 (external edit)