NetBSD Problem Report #10378

Received: (qmail 25677 invoked from network); 16 Jun 2000 12:13:07 -0000
Message-Id: <200006161206.e5GC6w513408@rumolt.teuto.de>
Date: Fri, 16 Jun 2000 14:06:58 +0200 (MEST)
From: Martin Husemann <martin@rumolt.teuto.de>
Reply-To: martin@rumolt.teuto.de
To: gnats-bugs@gnats.netbsd.org
Subject: dhcpd does not work for me anymore
X-Send-Pr-Version: 3.95

>Number:         10378
>Category:       bin
>Synopsis:       dhcpd does not work for me anymore
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 16 12:14:00 +0000 2000
>Closed-Date:    Sat Jun 24 16:28:58 +0000 2000
>Last-Modified:  Sat Jun 24 16:28:58 +0000 2000
>Originator:     Martin Husemann
>Release:        -current as of June 16
>Organization:

>Environment:
System: NetBSD rumolt.teuto.de 1.4ZD NetBSD 1.4ZD (RUMOLT) #0: Fri Jun 16 07:05:23 MEST 2000 martin@rumolt.teuto.de:/usr/src/sys-i4b/arch/i386/compile/RUMOLT i386


>Description:

After the import of the new dhcpd (and the fixing of crashes thereafter)
dhcpd stopped working for me. It receives packets and the simply ignores
them, no answer is ever send. Nothing is loged.

>How-To-Repeat:

Use this setup:

ifconfig vr0:
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	media: Ethernet autoselect (100baseTX full-duplex)
	status: active
	inet 212.8.203.81 netmask 0xfffffff8 broadcast 212.8.203.87

/etc/dhcpd.conf:
# ----------------------------------------------------------------------
# dhcpd.conf fuer das Subnetz bei Martin zu Hause
# ----------------------------------------------------------------------

server-identifier	rumolt.teuto.de;

# ----------------------------------------------------------------------
# Derzeit gibt es nur ein Subnetz
# ----------------------------------------------------------------------
subnet 212.8.203.80 netmask 255.255.255.248 {
	option subnet-mask 255.255.255.248;
	option broadcast-address 212.8.203.87;
	option routers 212.8.203.81;
	option domain-name-servers 212.8.197.2, 212.8.197.3, 194.77.20.44;
	option domain-name "teuto.de";
	option netbios-name-servers 212.8.203.81;

	# Dauer einer lease: 10 Minuten, ausser der client will
	# unbedingt mehr...
	default-lease-time 600;
	max-lease-time 7200;

	#
	# Zur Vereinfachung von Neuinstallation haben wir einen
	# kleinen Bereich von dynamischen Nummern
	#
	range 212.8.203.86;

	#
	# fixe IP Nummern:
	#
	host hwart {
		hardware ethernet 00:a0:c9:25:13:84;
        	fixed-address 212.8.203.83;
		server-name "asprian.teuto.de";
		option root-path "/usr/exp/hosts/hwart";
	}
	host asprian {
		hardware ethernet 00:50:ba:e0:1f:e5;
        	fixed-address 212.8.203.84;
		server-name "rumolt.teuto.de";
		option root-path "/usr/exp/hosts/asprian";
	}
	host alzey {
		hardware ethernet 00:00:b4:32:66:54;
        	fixed-address 212.8.203.85;
		server-name "rumolt.teuto.de";
		option root-path "/usr/exp/hosts/alzey";
	}
}

# ----------------------------------------------------------------------



>Fix:
Not realy, but worked for me ;-) :

cd /usr/src/usr.sbin/dhcp; cvs -z3 update -D "Jun 7, 2000"; make; make install

>Release-Note:
>Audit-Trail:

From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
To: Martin Husemann <martin@rumolt.teuto.de>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10378: dhcpd does not work for me anymore
Date: Fri, 16 Jun 2000 15:07:46 +0200

 On Fri, Jun 16, 2000 at 02:06:58PM +0200, Martin Husemann wrote:
 > subnet 212.8.203.80 netmask 255.255.255.248 {
 [...]
 > 	host hwart {
 > 		hardware ethernet 00:a0:c9:25:13:84;
 >         	fixed-address 212.8.203.83;
 > 		server-name "asprian.teuto.de";
 > 		option root-path "/usr/exp/hosts/hwart";
 [...]
 > }

 Well, this is wrong for dhcpd 3.*
 You don't put host statements into subnet declarations anymore.
 See dhcpd.conf(5).

 (dhcpd3.0b2pl0 runs fine for me after I did a rewrite of my dhcpd.conf
 file.)
 -- 
 Dies ist Thilos Unix Signature! Viel Spass damit.

From: Martin Husemann <martin@rumolt.teuto.de>
To: Thilo.Manske@HEH.Uni-Oldenburg.DE (Thilo Manske)
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10378: dhcpd does not work for me anymore
Date: Sat, 17 Jun 2000 10:15:59 +0200 (MEST)

 > Well, this is wrong for dhcpd 3.*
 > You don't put host statements into subnet declarations anymore.
 > See dhcpd.conf(5).
 > 
 > (dhcpd3.0b2pl0 runs fine for me after I did a rewrite of my dhcpd.conf
 > file.)

 GRR! That's why there was a prominent HEADS-UP on current-users warning
 about this?

 Sorry, but I can't get it to work even *with* rewriting the dhcpd.conf 
 file, with the version below it still won't hand out any leases (it does
 not reply to any packets).


 Martin

 New config file:

 # ----------------------------------------------------------------------
 # dhcpd.conf fuer das Subnetz bei Martin zu Hause
 # ----------------------------------------------------------------------

 server-identifier	rumolt.teuto.de;
 authoritative;

 option routers 212.8.203.81;
 option domain-name-servers 212.8.197.2, 212.8.197.3, 194.77.20.44;
 option domain-name "teuto.de";
 option netbios-name-servers 212.8.203.81;

 # Dauer einer lease: 10 Minuten, ausser der client will
 # unbedingt mehr...
 default-lease-time 600;
 max-lease-time 7200;

 # ----------------------------------------------------------------------
 # Derzeit gibt es nur ein Subnetz
 # ----------------------------------------------------------------------
 subnet 212.8.203.80 netmask 255.255.255.248 {
 	option subnet-mask 255.255.255.248;
 	option broadcast-address 212.8.203.87;

 	#
 	# Zur Vereinfachung von Neuinstallation haben wir einen
 	# kleinen Bereich von dynamischen Nummern
 	#
 	range 212.8.203.86;
 }

 #
 # fixe IP Nummern:
 #
 host hwart {
 	hardware ethernet 00:a0:c9:25:13:84;
        	fixed-address 212.8.203.83;
 	server-name "asprian.teuto.de";
 	option root-path "/usr/exp/hosts/hwart";
 }
 host asprian {
 	hardware ethernet 00:50:ba:e0:1f:e5;
        	fixed-address 212.8.203.84;
 	server-name "rumolt.teuto.de";
 	option root-path "/usr/exp/hosts/asprian";
 }

 host alzey {
 	hardware ethernet 00:00:b4:32:66:54;
        	fixed-address 212.8.203.85;
 	server-name "rumolt.teuto.de";
 	option root-path "/usr/exp/hosts/alzey";
 }

 # ----------------------------------------------------------------------


From: Martin Husemann <martin@rumolt.teuto.de>
To: gnats-bugs@NetBSD.ORG
Cc:  
Subject: Re: bin/10378
Date: Sat, 24 Jun 2000 13:06:23 +0200 (MEST)

 It doesn't even work with the following minimal config file.
 dhpcpd is started as "dhcpd -q vr0", and it never answers any DHCPDISCOVER's,
 neither from Windows clients nor from a NetBSD 1.4.2A system.

 ---8<---
 option domain-name "teuto.de";
 option domain-name-servers 212.8.197.2;

 option subnet-mask 255.255.255.248;
 default-lease-time 600;
 max-lease-time 7200;

 subnet 212.8.203.80 netmask 255.255.255.248 {
   authoritative;
   range 212.8.203.83 212.8.203.86;
   option broadcast-address 212.8.203.87;
   option routers 212.8.203.81;
 }
 --->8---
State-Changed-From-To: open->closed 
State-Changed-By: mellon 
State-Changed-When: Sat Jun 24 09:25:48 PDT 2000 
State-Changed-Why:  
FYI, it's perfectly fine to declare host declarations within subnet  
declarations, although I don't think it's a particularly good idea. 
What changed between 2.0 and 3.0 is that if you do this, it behaves 
more in the way you would expect - in 2.0, the behaviour was wildly 
counterintuitive.   I don't think this was making any difference for 
you, Martin. 

Anyway, I've committed a fix for this and submitted it to releng for 
pullup on 1.5. 

_MelloN_ 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.