newbie - dhcpd

Simon Hobson dhcp1 at thehobsons.co.uk
Thu Jan 24 08:10:36 UTC 2008


BuySell wrote:

>But we want is to set the dhcp users only on 172.16.253.1 - 172.16.253-254
>what should I configured for my eth0 (172.16.1.74) and eth1 172.16.1.168?
>
>below what I had:
>
>ddns-update-style none;
>default-lease-time 21600;
>max-lease-time 43200;
>
>option subnet-mask 255.255.255.0;
>option domain-name-servers 172.16.1.3;
>option domain-name "lippogeneral.com";
>
># LGI DHCP
>subnet 172.16.253.0 netmask 255.255.255.0 {
>         option routers 172.16.1.5;
>         option broadcast-address 172.16.253.255;
>         range 172.16.253.1 172.16.253.254;
>         }

Normally there are two ways around this :


1) Provide empty subnet declarations like this

subnet 172.16.1.0 netmask 255.255.255.0 {
   ignore booting ;
}
or
subnet 172.16.1.0 netmask 255.255.255.0 { }

You can leave out the ignore booting, it just means that requests 
from that subnet will create "no free leases" messages in the logs.


2) Configure the dhcp server to only serve one interface. The 'raw' 
mathod is to start dhcpd with a list of interfaces (eg 'dhcpd eth2'), 
but usually the distribution provides a method to put this in a 
config file (on Debian it's added to /etc/default/dhcp3-server).

In your case you only need to serve eth0.1 - can you confirm that 
this is a VLAN and you've not just mistyped eth0:1 ?


More information about the dhcp-users mailing list