dhcpd.conf with manual-dhcp

Post Reply
Julien_g
Member
Posts: 1
Joined: 11 Dec 2018 01:38

dhcpd.conf with manual-dhcp

Post by Julien_g »

Hello,

I am attempting to run the DHCP server with MAC address reservations. I have read through the topic in the networking guide, and have got it working with a dhcpd.conf file as below:

Code: Select all

#Global parameters that specify addresses and lease time.
option subnet-mask 255.255.0.0;
option routers 10.10.0.1;
option ntp-servers 10.10.1.10;
option dhcp-lease-time 86400;
#IP subnet
subnet 10.10.0.0 netmask 255.255.0.0
{
	#Dynamic scope and parameters that apply to this scope overriding global params.
	dynamic-dhcp range 10.10.0.100 10.10.0.200
	{
		option dhcp-lease-time 30000;
	}
	#Static binding based on MAC address
	manual-dhcp 00-18-1c-01-e7-b1 10.10.10.99
	{
		option subnet-mask 255.255.0.0;
		option routers 10.10.0.1;
	}
	manual-dhcp 00-18-1c-03-1a-97 10.10.11.22
	{
		option subnet-mask 255.255.0.0;
		option routers 10.10.0.1;
	}
}
As you can see, the router and subnet mask lines are duplicated for every reservation. The manual-dhcp entries do not seem to draw these from the global parameters. Does anyone know if there is a way to accomplish this, so the dhcpd.conf file would look more like this:

Code: Select all

#Global parameters that specify addresses and lease time.
option subnet-mask 255.255.0.0;
option routers 10.10.0.1;
option ntp-servers 10.10.1.10;
option dhcp-lease-time 86400;
#IP subnet
subnet 10.10.0.0 netmask 255.255.0.0
{
	#Dynamic scope and parameters that apply to this scope overriding global params.
	dynamic-dhcp range 10.10.0.100 10.10.0.200
	{
		option dhcp-lease-time 30000;
	}
	#Static binding based on MAC address
	manual-dhcp 00-18-1c-01-e7-b1 10.10.10.99
	manual-dhcp 00-18-1c-03-1a-97 10.10.11.22
}
Many thanks
Julien
HStr
Member
Posts: 8
Joined: 21 Apr 2022 05:20

Re: dhcpd.conf with manual-dhcp

Post by HStr »

Hi Julien,

Did you already get an answer to your question? I have exactly the same problem and looking for a solution.

Regards
Holger
Post Reply

Return to “OmniSwitch 6860 / 6860E”