From a.reilly@lake.com.au Mon Sep 20 15:51:57 1999
Return-Path: <a.reilly@lake.com.au>
Received: from m4.c2.telstra-mm.net.au (m4.c2.telstra-mm.net.au [24.192.3.19])
	by hub.freebsd.org (Postfix) with ESMTP id 6894015296
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 20 Sep 1999 15:51:52 -0700 (PDT)
	(envelope-from a.reilly@lake.com.au)
Received: from m5.c2.telstra-mm.net.au (m5.c2.telstra-mm.net.au [24.192.3.20])
	by m4.c2.telstra-mm.net.au (8.8.6 (PHNE_14041)/8.8.6) with ESMTP id IAA07530
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 1999 08:51:51 +1000 (EST)
Received: from areilly.bpc-users.org (CPE-24-192-49-170.nsw.bigpond.net.au [24.192.49.170])
	by m5.c2.telstra-mm.net.au (8.8.6 (PHNE_14041)/8.8.6) with SMTP id IAA14035
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Sep 1999 08:51:51 +1000 (EST)
Received: (qmail 4468 invoked by uid 1000); 20 Sep 1999 22:51:54 -0000
Message-Id: <19990920225154.4467.qmail@areilly.bpc-users.org>
Date: 20 Sep 1999 22:51:54 -0000
From: "Andrew Reilly" <a.reilly@lake.com.au>
Reply-To: andrew@areilly.bpc-users.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: dhclient-script doesn't update route if no address change
X-Send-Pr-Version: 3.2

>Number:         13863
>Category:       conf
>Synopsis:       dhclient-script doesn't update route if no address change
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 20 16:00:01 PDT 1999
>Closed-Date:    Fri Nov 10 10:29:32 PST 2000
>Last-Modified:  Fri Nov 10 10:30:31 PST 2000
>Originator:     Andrew Reilly
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
just me
>Environment:

	P-III, 128M, EIDE disks, CDROM, SCSI MO, two PCI NE2000
	clone 10baseT ethernet cards.  Cable internet service on
	one, local network (two machines) on other.  Cable IP
	supplied by DHCP by provider with six hour leases.

>Description:

	when the internet provider changes the netmask from /24
	to /22, and simultaneously changes the gateway router
	address, but does NOT change the client (my) IP address,
	then /etc/dhclient-script does not adjust the default
	route.  The environment for dhclient-script was:

	new_ip_address=24.192.49.170
	new_network_number=24.192.48.0
	new_dhcp_message_type=5
	old_dhcp_lease_time=21600
	new_server_name=m3.c2.telstra-mm.net.au
	old_ip_address=24.192.49.170
	old_network_number=24.192.49.0
	old_dhcp_message_type=5
	new_routers=24.192.48.1
	old_server_name=(null)
	new_subnet_mask=255.255.252.0
	new_expiry=937884283
	interface=ed1
	old_routers=24.192.49.1
	new_domain_name=c2.telstra-mm.net.au
	reason=BOUND
	old_subnet_mask=255.255.255.0
	old_expiry=937868680
	old_domain_name=c2.telstra-mm.net.au
	PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
	new_dhcp_server_identifier=24.192.3.18
	new_domain_name_servers=24.192.3.18
	new_broadcast_address=24.192.51.255
	old_dhcp_server_identifier=24.192.3.18
	new_dhcp_renewal_time=10800
	new_dhcp_rebinding_time=17280
	old_domain_name_servers=24.192.3.18
	old_broadcast_address=24.192.49.255
	old_dhcp_renewal_time=10800
	old_dhcp_rebinding_time=17280
	new_dhcp_lease_time=21600

>How-To-Repeat:

	I imagine you could load the environment above, then run
	dhclient-script manually.  Being in charge of a
	DHCP-based network would otherwise be required.

>Fix:
	
	the for "router in $new_routers; do" loop in the
	"if [ x$reason = xBOUND ] block should somehow be
	promoted out of that condition, so that it is run
	whenever the router address changes.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Sep 20 23:57:10 PDT 1999 
Responsible-Changed-Why:  
DHCP is one of David's many babies. :-) 

From: "Patrick Bihan-Faou" <patrick@mindstep.com>
To: <freebsd-gnats-submit@freebsd.org>,
	<andrew@areilly.bpc-users.org>
Cc:  
Subject: Re: conf/13863: dhclient-script doesn't update route if no address change
Date: Thu, 9 Dec 1999 01:45:27 -0500

 Hi,
 
 The replacement script for /sbin/dhclient-script submitted in PR bin/15342
 fixes that problem.
 
 Patrick.
 
 --
 www.mindstep.com
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Fri Nov 10 10:29:32 PST 2000 
State-Changed-Why:  
I have synced the FreeBSD dhclient 2.0 script with the ISC version 3 one. 
If you still have a problem, needed changes should be addressed to the 
ISC DHCP developers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=13863 
>Unformatted:
