subnet error

Sten Carlsen sten at s-carlsen.dk
Wed Feb 28 20:43:03 UTC 2007


Mickael Choisnard wrote:
> Hi,
> Eth1 is defined in hard on my gentoo. I don't know why dhcpd make a warning with
> eth0. I use a dhcp-client to get ip.
> When i add subnet 62.35.125.14 netmask 255.255.255.0 { not authorative; }
> I have this error :
> Feb 28 21:26:26 titi dhcpd: /etc/dhcp/dhcpd.conf line 4: subnet 62.147.195.246
> netmask 255.255.255.0: bad subnet number/mask combination.
> Feb 28 21:26:26 titi dhcpd: subnet 62.35.125.14 netmask 255.255.255.0
> Feb 28 21:26:26 titi dhcpd:                                           ^
> Feb 28 21:26:26 titi dhcpd: Configuration file errors encountered -- exiting
> Feb 28 21:26:26 titi dhcpd: exiting.
>
> I used also 255.0.0.0. I have the same error !!!
>
>   
Do you use the same netmask as for the definition of the interface in
the network section.  In my case I get my external IP from a dhcp server
at my ISP, it uses a netmask of 255.255.255.240 and I use the same in
dhcpd.conf. Then I don't see any errors.
> Selon Glenn Satchell <Glenn.Satchell at uniq.com.au>:
>
>   
>>> Date: Tue, 27 Feb 2007 23:59:39 +0100
>>> From: Mickael Choisnard <Mickael.Choisnard at u-bourgogne.fr>
>>> To: dhcp-users at isc.org
>>> Subject: subnet error
>>>
>>> Hi,
>>> I have a dhcpd server on my gentoo router.
>>> The eth0 is a public address (62.35.125.14 for example) given by Free.fr
>>> The eth1 is a private address (10.11.12. for example)
>>> When i launch dhcpd, i have a warning :
>>>
>>> No subnet declaration for eth0 (62.35.125.14).
>>> ** Ignoring requests on eth0.  If this is not what
>>> you want, please write a subnet declaration
>>> in your dhcpd.conf file for the network segment
>>> to which interface eth0 is attached. **
>>>
>>> I had to my dhcpd.conf a declaration like that but i have errors :
>>>
>>> subnet 62.35.125.14 netmaks 255.255.255.0 { }
>>>       
Is this a copy from the .conf? netmask is misspelled.

You could also use this.

>>   dhcpd eth1
>>
>> This cause it to only listen for requests on eth1, and to ignore any
>> other interfaces. See the dhcpd man page.
>>
>>
>>     
>
>   

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 



More information about the dhcp-users mailing list