[CentOS] CentOS-6 dhcpd

Fri Jul 15 19:26:32 UTC 2011
Les Mikesell <lesmikesell at gmail.com>

On 7/15/2011 1:54 PM, Timothy Murphy wrote:
> Ljubomir Ljubojevic wrote:
>
>> as a rule, you should declare ALL subnets in simple form:
>>
>> subnet 192.168.2.0 netmask 255.255.255.0 { }
>>
>> so ISC DHCP knows about them. Why, I do not know, but it is supposed to
>> be in newer versions (more strict rules for config file.)
>
> Thanks for your response.
> As far as I can see, my dhcpd.conf satisfies these conditions.
>
> But what puzzles me is, what defines the correspondence
> between interface and network,
> eg in my case eth1 ->  192.168.2.0/24
>
> Surely this should be there independently of dhcpd ?

Dhcpd shouldn't care about the name of the interface, but if the request 
hasn't been forwarded by a router/relay agent it needs to figure out the 
subnet of the interface where the request is received so it uses the 
corresponding range and options for the response.

-- 
   Les Mikesell
    lesmikesell at gmail.com