Adding DHCP Ranges to DHCP server

Last modified on 19 Dec, 2024. Revision 5
This is a guide to add larger or additional IP ranges to a DHCP server.
Up to date for
Core 14.00.16
Status OK
Author
Tobias V

Creating a DHCP server


DHCPserver
NameA symbolic name for the server. Used as an interface reference but also used as a reference in log messages.
InterfaceThe source interface on which cOS Core will listen for DHCP requests. This can be a single interface or a group of interfaces.
IPAddressPoolAn IP range, group or network that the DHCP server will use as an IP address pool for handing out DHCP leases. e.g 192.168.1.0/24  |  IP4Address Group  |  192.168.1.0/24, 192.168.2.0/24  |  192.168.1.0/23
DefaultGatewayThis specifies what IP should be sent to the client for use as the default gateway (the router to which the client connects).
NetmaskThe netmask which will be sent to DHCP clients.
Primary/Secondary DNSThe IP of the primary and secondary DNS servers.

Via WebUI

Under Network → Network Services → DHCP Servers

Via CLI

add DHCPServer <Servername> Interface=<If1> IPAddressPool=<192.168.1.0/24,192.168.2.0/24> DefaultGateway=<192.168.1.1> Netmask=<255.255.255.0> DNS1=<1.1.1.1> DNS2=<1.0.0.1>




Related articles

No related articles found.