6450 dhcp server syntax help

Post Reply
User avatar
Cristek
Member
Posts: 104
Joined: 08 Mar 2024 10:56

6450 dhcp server syntax help

Post 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?
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 2094
Joined: 01 Jul 2008 10:51
Location: Germany

Re: 6450 dhcp server syntax help

Post 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
User avatar
Cristek
Member
Posts: 104
Joined: 08 Mar 2024 10:56

Re: 6450 dhcp server syntax help

Post 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
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 2094
Joined: 01 Jul 2008 10:51
Location: Germany

Re: 6450 dhcp server syntax help

Post by silvio »

:lol:
Post Reply

Return to “OmniSwitch 6450”