This shows you the differences between two versions of the page.
howto:general:dhcp:multiple_dhcp [2015/05/10 13:23] admin [Apply configuration changes] |
howto:general:dhcp:multiple_dhcp [2018/05/24 09:05] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Multiple DHCP-Server instances ====== | ||
- | |||
- | It ist possible to run multiple instances of the dhcp server listening on different interfaces. | ||
- | |||
- | |||
- | ===== Overview ===== | ||
- | |||
- | ==== Level of difficulty === | ||
- | |||
- | Easy | ||
- | |||
- | ==== 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 for guest-interface**__ | ||
- | <code> | ||
- | uci delete dhcp.guest | ||
- | uci set dhcp.guest=dhcp | ||
- | uci set dhcp.guest.interface=guest | ||
- | uci set dhcp.guest.start=62 | ||
- | uci set dhcp.guest.limit=192 | ||
- | uci set dhcp.guest.leasetime=600h | ||
- | </code> | ||
- | |||
- | * __**Store changes**__ | ||
- | <code> | ||
- | uci commit | ||
- | </code> | ||
- | |||
- | ==== UCI config files ==== | ||
- | |||
- | The 'dhcp' options are stored in [[documentation:configuration:config_files:config_dhcp|/etc/config/dhcp]]. Look there for a full list of available section-options. | ||
- | |||
- | An additional instance could look like this: | ||
- | <code> | ||
- | config 'dhcp' 'lan' | ||
- | option 'interface' 'guest' | ||
- | option 'start' '62' | ||
- | option 'limit' '192' | ||
- | option 'leasetime' '600h' | ||
- | </code> | ||
- | |||
- | ==== Apply configuration changes ==== | ||
- | |||
- | To activate your config changes, the service needs to be restarted. Rebooting is not necessary: | ||
- | <code> | ||
- | /etc/init.d/dnsmasq restart | ||
- | </code> | ||
- | |||
- | ===== Troubleshooting ===== | ||
- | |||
- | Not available, yet | ||
- | |||
- | |||
- | |||