LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   pool on dhcp server (https://www.linuxquestions.org/questions/linux-server-73/pool-on-dhcp-server-4175514938/)

dr98mav 08-15-2014 05:43 AM

pool on dhcp server
 
hi
i have one dhcp server and one cliet ( there are debian)
and type the pool on dhcp server but pool not work
when restart dhcp service
find a problem :
example a pool:
pool {
option range 192.168.1.1 192.168.1.200;
allow unknown-clients;
}
example error:
option rane ...

thanks for read and help me

tombelcher7 08-15-2014 07:38 AM

Can you confirm what the exact error message was? --It may be due to an incorrectly configured subnet (if you are using ISC-DHCP-Server?

Confirm error
Confirm what OS and version you are using
Confirm which DHCP software you are using

It might be useful to include the configuration file here.

dr98mav 08-15-2014 09:16 AM

hi
i use debian 7.4 and isc-dhcp-server is new version

dhcpd.conf

error

sorry i cann't find eng upload center

colucix 08-15-2014 10:36 AM

Sorry, but I had to temporarily disable the links, since I cannot succeed in viewing/downloading the files you've uploaded on the external site. Please, consider to copying and pasting their content from a terminal into a new post. If you cannot do this for some reasons, we'll find another way. Thank you in advance and sorry again for the inconvenience.

dr98mav 08-15-2014 11:34 AM

1 Attachment(s)
dhcpd.conf:
Code:

default-lease-time 600;
subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.201 192.168.2.230;
  option domain-name-servers 192.168.2.200;
  option routers 192.168.2.200;
  max-lease-time 6500;

pool {
        option range 192.168.2.201 192.168.2.220;
        allow unknown-clients;
}

pool {
        option range 192.168.2.221 192.168.2.230;
        deny unknown-clients;
}
}
host my_web_server {
        hardware Ethernet 00:0C:29:AC:FE:C3;
        fixed-address 192.168.2.100;
}

host client1 { hardware Ethernet 00:0C:29:99:C3:04; }

error is image

Tim Abracadabra 08-16-2014 01:31 PM

Quote:

Originally Posted by dr98mav (Post 5221667)
dhcpd.conf:
Code:

default-lease-time 600;
subnet 192.168.2.0 netmask 255.255.255.0 {
  range 192.168.2.201 192.168.2.230;
  option domain-name-servers 192.168.2.200;
  option routers 192.168.2.200;
  max-lease-time 6500;

pool {
        option range 192.168.2.201 192.168.2.220;
        allow unknown-clients;
}

pool {
        option range 192.168.2.221 192.168.2.230;
        deny unknown-clients;
}
}
host my_web_server {
        hardware Ethernet 00:0C:29:AC:FE:C3;
        fixed-address 192.168.2.100;
}

host client1 { hardware Ethernet 00:0C:29:99:C3:04; }

error is image

Hi dr98mav,

It looks to me that the pools are not syntactically correct. range needs to be its own statement, not after options.

Similar to this:

Code:

pool  {
  range 192.168.2.201 192.168.2.220;
  allow unknown-clients;
}

pool  {
  range 192.168.2.221 192.168.2.230;
  deny unknown-clients;
}

Check your man pages or online at this link at linuxmanpages.com under Address Pools.

Hope that helps,
Tim

dr98mav 08-16-2014 03:11 PM

Quote:

Originally Posted by Tim Abracadabra (Post 5222110)
Hi dr98mav,

It looks to me that the pools are not syntactically correct. range needs to be its own statement, not after options.

Similar to this:

Code:

pool  {
  range 192.168.2.201 192.168.2.220;
  allow unknown-clients;
}

pool  {
  range 192.168.2.221 192.168.2.230;
  deny unknown-clients;
}

Check your man pages or online at this link at linuxmanpages.com under Address Pools.

Hope that helps,
Tim

thank you so much tim

dr98mav 08-18-2014 08:31 AM

1 Attachment(s)
i have error again


All times are GMT -5. The time now is 03:27 AM.