From owner-freebsd-bugs Mon Sep 20 16: 0: 6 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0CF5A151E2 for ; Mon, 20 Sep 1999 16:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA58216; Mon, 20 Sep 1999 16:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) 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 ; 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 ; 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 ; 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" Reply-To: andrew@areilly.bpc-users.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: conf/13863: dhclient-script doesn't update route if no address change Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13863 >Category: conf >Synopsis: dhclient-script doesn't update route if no address change >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 20 16:00:01 PDT 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message