Page 1 of 1

6450 dhcp server syntax help

Posted: 15 Jan 2026 11:56
by Cristek
This is something I haven't done before on an ALE switch, but I'm trying to enable dhcp server on a 6450 and I keep getting:

Code: Select all

Sw1-> dhcp-server enable 
ERROR: Parse error for /flash/switch/dhcpd.conf & /flash/switch/dhcpd.pcy. 
Please correct them & restart the DHCP server
And these are the contents of my dhcpd.conf and dhcpd.pcy files:

Code: Select all

server-identifier sample.example.com;

subnet 192.168.1.0 netmask 255.255.255.0
{
	dynamic-dhcp range 192.168.1.11 192.168.1.199
	{
		option subnet-mask 255.255.255.0;
		option routers 192.168.1.254;
		option domain-name-servers 8.8.8.8;
		option dhcp-lease-time 86400;
	}
}

subnet 192.168.2.0 netmask 255.255.255.0
{
	dynamic-dhcp range 192.168.2.11 192.168.2.199
	{
		option subnet-mask 255.255.255.0;
		option routers 192.168.2.254;
		option domain-name-servers 8.8.8.8;
		option dhcp-lease-time 86400;
	}
}

subnet 192.168.3.0 netmask 255.255.255.0
{
	dynamic-dhcp range 192.168.3.11 192.168.3.199
	{
		option subnet-mask 255.255.255.0;
		option routers 192.168.3.254;
		option domain-name-servers 8.8.8.8;
		option dhcp-lease-time 86400;
	}
}
and

Code: Select all

PingDelay = 200
PingAttempts = 3
PingSendDelay = 1000
DefaultLease = 86400
Now, I'm reading the DHCP server section of the AOS6 manual and this switch did not come with the default dhcp files (dhcpd.conf.template and dhcpd.pcy.template) so I dont know if I'm adding something that I shouldn't. Can anyone pinpoint where an issue might be?

Re: 6450 dhcp server syntax help

Posted: 24 Jan 2026 04:57
by silvio
I can't see any mistake in the files.
But do first the "dhcp-server restart" to load the files into the running. And always if you change anything in the files.
If you still see the errors try with easyier config (only one subnet). Use an empty pcy-file.
BR Silvio

Re: 6450 dhcp server syntax help

Posted: 26 Jan 2026 04:29
by Cristek
So easy!!! To anyone reading this, 'restart' solved the issue.
In my mind, because it was never enabled and it was never working in the first place, a restart would have been pointless.
Tks Silvio

Re: 6450 dhcp server syntax help

Posted: 26 Jan 2026 09:58
by silvio
:lol: