howto:general:dhcp:multiple_dhcp

Multiple DHCP-Server instances

Having multiple DHCP-Servers running is very useful if you're dealing with VLAN's, Guest AP or any kind of separating networks from another. To give each Network a different configuration of IP-Addresses, Netmasks or any settings which are provided to the clients by the DHCP-Server.

Overview

Level of difficulty

 Medium

Instructions

GUI

Not available, yet

UCI Config System

  • Add DHCP instance
uci add dhcp dhcp
uci set dhcp.@dhcp[-1].interface=guest
uci set dhcp.@dhcp[-1].start=62
uci set dhcp.@dhcp[-1].limit=192
uci set dhcp.@dhcp[-1].leasetime=600h

Note: The option interface defines on which interface the dhcp-server is listening for dhcp-requests.

  • Store changes
uci commit
  • Apply changes
/etc/init.d/dnsmasq restart

UCI config files

The 'dhcp' options are stored in /etc/config/dhcp

  • DHCP instance
config 'dhcp' 'guest'
        option 'interface' 'guest'
        option 'start' '62'
        option 'limit' '192'
        option 'leasetime' '600h'

Note: The option interface defines on which interface the dhcp-server is listening for dhcp-requests.

  • Apply changes
/etc/init.d/dnsmasq restart

Troubleshooting

Not available, yet

howto/general/dhcp/multiple_dhcp.txt · Last modified: 2018/05/24 09:05 (external edit)