Date: 20 Sep 1999 22:51:54 -0000 From: "Andrew Reilly" <a.reilly@lake.com.au> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/13863: dhclient-script doesn't update route if no address change Message-ID: <19990920225154.4467.qmail@areilly.bpc-users.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990920225154.4467.qmail>