bin/119255: [patch] dhclient removes aliases on PREINIT
Jaakko Heinonen
jh at saunalahti.fi
Wed Jan 2 03:00:03 PST 2008
>Number: 119255
>Category: bin
>Synopsis: [patch] dhclient removes aliases on PREINIT
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 02 11:00:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Jaakko Heinonen
>Release: 7.0-RC1
>Organization:
>Environment:
FreeBSD x 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Dec 24 12:18:24 UTC 2007 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
dhclient-script removes aliases from the network interface when it does the PREINIT operation. For example if dhclient does EXPIRE -> PREINIT -> ARPSEND -> ARPCHECK -> BOUND cycle the aliases are lost. The bug is also described in this message: http://lists.freebsd.org/pipermail/freebsd-isp/2007-August/004769.html .
>How-To-Repeat:
1) Configure at least one alias for a DHCP enabled interface
/etc/rc.conf:
ifconfig_rl0="DHCP"
ifconfig_rl0_alias0="inet 10.0.0.103 netmask 255.255.255.0"
2) Wait dhclient to do EXPIRE -> PREINIT -> ARPSEND -> ARPCHECK -> BOUND cycle
3) Aliases are lost from the interface (10.0.0.103 in this example).
>Fix:
Patch attached with submission follows:
--- /sbin/dhclient-script.orig 2007-12-27 22:17:06.000000000 +0200
+++ /sbin/dhclient-script 2007-12-28 01:27:28.000000000 +0200
@@ -284,7 +284,7 @@
PREINIT)
delete_old_alias
- $IFCONFIG $interface inet 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
+ $IFCONFIG $interface inet alias 0.0.0.0 netmask 0.0.0.0 broadcast 255.255.255.255 up
;;
ARPCHECK|ARPSEND)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list