# DHCP Server via CNMaestro for CNMatrix

**URL:** https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705
**Category:** cnMatrix
**Created:** [November 25, 2022, 12:40pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705 "2022-11-25T12:40:21Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![MarkusSavics](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MarkusSavics](https://community.cambiumnetworks.com/u/MarkusSavics)
#### Post date: [November 25, 2022, 12:40pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/1 "2022-11-25T12:40:21Z")

</div>

Hi,

How can I configure 2 DHCP servers on a CNMatrix Swicth via CNMaestro. At the moment it has been programmed directly via the WEB interface. So the Swicth appears in CN Maestro as not in sync. If you then mentally press sync, the DHCP server is gone. I read here that you can do this using user-defined overrides in CNMaestro. How does it work ?

---

<div class="post-metadata">

### Author: ![hatt\_mc](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/h/ebca7d/32.png) [@hatt\_mc](https://community.cambiumnetworks.com/u/hatt_mc)
#### Post date: [November 25, 2022, 1:34pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/2 "2022-11-25T13:34:19Z")

</div>

Have you set the ip helper address on the router interface? Needs to point towards the DHCP server if you have set the router as the default gateway.

I’m still studying for the ICND2 so someone correct me if I’m wrong

---

<div class="post-metadata">

### Author: ![MarkusSavics](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MarkusSavics](https://community.cambiumnetworks.com/u/MarkusSavics)
#### Post date: [November 25, 2022, 1:44pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/3 "2022-11-25T13:44:06Z")

</div>

The two DHCP servers work if I configure them directly via the web interface of the switch. But I would like to configure this remotely with CNMaestro. Unfortunately, there is no way to configure the DHCP server in CNMaestro

---

<div class="post-metadata">

### Author: ![TamN](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@TamN](https://community.cambiumnetworks.com/u/TamN)
#### Post date: [November 26, 2022, 2:29pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/4 "2022-11-26T14:29:26Z")

</div>

Hello, current cnMaestro does not have GUI configuration for DHCP server, but that can be done with CLI commands in the user-defined overrides in the switch group. Keep in mind that the CLI commands in the user-defined overrides in the switch group apply to all the switches in the switch group, which may not be what you want for dhcp server. You can apply the configuration to individual switch in the switch group as well. Here’s is the example of configuring dhcp server in the switch group:

 ![image](https://d1okf4ta8xniw3.cloudfront.net/original/3X/a/9/a910c453e98c862a7001657c22057b851b10a97c.png)

Here’s an example of configuring dhcp server for a particular switch in the switch group:

In the Switch Group’s User-Defined Overrides, enter

 ![image](https://d1okf4ta8xniw3.cloudfront.net/original/3X/4/e/4e60baaf9916538e4a82656377a91a136a082496.png)  
Note: You can replace the “DHCP-SERVER” to any name. It is used to identify the configuration variables in the switch configuration below.

Navigate to the Configuration of the switch in the Switch Group that you want to enable DHCP server service, and enter the following commands in the Configuration Variables box under DHCP-SERVER.

config terminal  
ip dhcp pool 1  
network 10.10.10.2 255.255.255.0 10.10.10.250  
default-router 10.10.10.1  
dns-server 10.10.10.1  
end

 ![image](https://d1okf4ta8xniw3.cloudfront.net/original/3X/2/f/2f0fde733e12a424cd0fcfbeb1e8aa153b06ea77.png)

---

<div class="post-metadata">

### Author: ![MarkusSavics](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MarkusSavics](https://community.cambiumnetworks.com/u/MarkusSavics)
#### Post date: [November 26, 2022, 4:52pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/5 "2022-11-26T16:52:40Z")

</div>

Hi,

thanks for your help.

If I have 2 dhcp Server, is the commands ok:

config terminal  
ip dhcp pool 10 “Gast”  
network 10.10.10.10 255.255.255.0 10.10.10.200  
default-router 10.10.10.1  
dns-server 8.8.8.8 4.2.2.2

ip dhcp pool 30 “Mitarbeiter”  
network 192.168.30.30 255.255.255.0 192.168.30.200  
default-router 192.168.30.1  
dns-server 8.8.8.8 4.2.2.2  
end

---

<div class="post-metadata">

### Author: ![TamN](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/t/f17d59/32.png) [@TamN](https://community.cambiumnetworks.com/u/TamN)
#### Post date: [November 26, 2022, 6:03pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/6 "2022-11-26T18:03:01Z")

</div>

Hi, you need to add ‘exit’ command in between each dhcp pool to exit the dhcp-config mode as shown:  
config terminal  
ip dhcp pool 10 “Gast”  
network 10.10.10.10 255.255.255.0 10.10.10.200  
default-router 10.10.10.1  
dns-server 8.8.8.8 4.2.2.2  
exit  
ip dhcp pool 30 “Mitarbeiter”  
network 192.168.30.30 255.255.255.0 192.168.30.200  
default-router 192.168.30.1  
dns-server 8.8.8.8 4.2.2.2  
end

---

<div class="post-metadata">

### Author: ![MarkusSavics](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MarkusSavics](https://community.cambiumnetworks.com/u/MarkusSavics)
#### Post date: [November 28, 2022, 5:59am UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/7 "2022-11-28T05:59:49Z")

</div>

Thanks. I will test this.

---

<div class="post-metadata">

### Author: ![MarkusSavics](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MarkusSavics](https://community.cambiumnetworks.com/u/MarkusSavics)
#### Post date: [December 8, 2022, 8:30am UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/8 "2022-12-08T08:30:37Z")

</div>

Thank you,

Now It Works.

---

<div class="post-metadata">

### Author: ![MarkusSavics](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MarkusSavics](https://community.cambiumnetworks.com/u/MarkusSavics)
#### Post date: [September 30, 2026, 3:14pm UTC](https://community.cambiumnetworks.com/t/dhcp-server-via-cnmaestro-for-cnmatrix/89705/10 "2026-09-30T15:14:08Z")

</div>

Hi,

now i have swicth form CNMaestro Cloud to the OnPremise CNMaestro.

Now i have the Problem, that the DHCP Server on the switch is not aktive over the ONPremise.

I have wrote in the Switch Profile in User.Definieded Overrides:

${Serverraum=end}

and in the Swicth in **Configuration Variables (Advanced)**

under the Text Serverraum

config terminal  
ip dhcp pool 10  
network 10.10.10.10 255.255.255.0 10.10.10.200  
default-router 10.10.10.1  
dns-server 8.8.8.8 4.2.2.2  
exit  
ip dhcp pool 30  
network 192.168.30.30 255.255.255.0 192.168.30.200  
default-router 192.168.30.1  
dns-server 8.8.8.8 4.2.2.2  
end

but the DHCP Server is not enabled
