Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: ozioma on May 26, 2004, 01:32:39 PM

Title: DHCP SERVER
Post by: ozioma on May 26, 2004, 01:32:39 PM
PLEASE I JUST INSTALLED DHCP SERVER IN LINUX 8.0 AFTER CONFIGUREING THE DHCPD.CONF FILE IT IS SAYING FAILED THIS IS MY CONFIGURATION

ddns-update-style interim;
default-lease-time 800;
max-lease-time 7200;
option subnet-mask 255.255.255.0
option broadcast-address 192.168.11.255;
option routers 192.168.11.253;
option domain-name-servers 192.116.110.28 192.115.72.170;
subnet 192.11.0 mask 255.255.255.0 {192.118.11.10 192.168.11.30;}

please look at this and tell me the fault

thanks
ozioma
Title: DHCP SERVER
Post by: Ricky on May 26, 2004, 01:54:52 PM
The only thing I was to locat is ..
Quote
subnet 192.11.0 mask 255.255.255.0 {192.118.11.10 192.168.11.30;}

It should have subnet as 192.11.0.0
You can also see Linux DHCPD HOW TO (http://www.linuxsolved.com/forums/ftopic16.html)
Title: DHCP SERVER
Post by: ozioma on May 26, 2004, 03:23:30 PM
ddns-update-style  interim;
default-lease-time 800;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.11.255;
option routers 192.168.11.253;
optiin domain-name-servers 192.116.110.28 192.115.72.170;
subnet 192.168.0.0 netmask 255.255.255.0;
~
after this it is still saying /etc/dhcpd.conf line 8 expecting left brace wht is the cause and solution
Title: DHCP SERVER
Post by: Ricky on May 27, 2004, 06:05:21 AM
Quote
optiin domain-name-servers 192.116.110.28 192.115.72.170;
It should be like this..
Code: [Select]
option domain-name-servers 192.116.110.28, 192.115.72.170;and
Quote
subnet 192.168.0.0 netmask 255.255.255.0;
You have to do give IP range also.. after that.. like
Code: [Select]
subnet 192.168.0.0 netmask 255.255.255.0  
                        {
                         192.168.1.10 192.168.1.90;
                         192.168.1.100 192.168.1.200;
                         }
And please make it your habit to do thing in a manner so that it is easily readable. :)