6450 dhcp server syntax help

Post Reply
User avatar
Cristek
Member
Posts: 103
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?
Post Reply

Return to “OmniSwitch 6450”