November 22, 2024, 07:56:29 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: DHCP SERVER  (Read 7360 times)

Offline ozioma

  • Tux Awared
  • **
  • Posts: 35
DHCP SERVER
« 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
DHCP SERVER
« Reply #1 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

Offline ozioma

  • Tux Awared
  • **
  • Posts: 35
DHCP SERVER
« Reply #2 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
DHCP SERVER
« Reply #3 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. :)