subnet error

Mickael Choisnard Mickael.Choisnard at u-bourgogne.fr
Wed Feb 28 20:29:04 UTC 2007


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 !!!


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 { }
> >
> >My dhcpd.conf is :
> >
> >authoritative;
> >ddns-update-style interim;
> >
> >subnet 10.11.12.0 netmask 255.255.255.0 {
> >    default-lease-time 259200;
> >    max-lease-time 518400;
> >    option subnet-mask 255.255.255.0;
> >    option broadcast-address 10.11.12.255;
> >    option routers 10.11.12.1;
> >    option domain-name certem;
> >    option domain-name-servers 10.11.12.1;
> >    host impdell {
> >        hardware ethernet 00:74:00:B9:79:36;
> >        server-name "impdell";
> >        fixed-address 10.11.12.31;
> >        option host-name "impdell";
> >        }
> >}
> >
> >Thanks for yours ideas
> >
> >
> Not sure about the specifics of gentoo, so you may have to poke around
> in startup scripts and /etc/config files, but you should start dhcpd
> like this:
>
>   dhcpd eth1
>
> This cause it to only listen for requests on eth1, and to ignore any
> other interfaces. See the dhcpd man page.
>
> regards,
> -glenn
>






More information about the dhcp-users mailing list