From nobody@FreeBSD.org  Sun Dec 23 18:51:20 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 2643F94F
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Dec 2012 18:51:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id E7F398FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Dec 2012 18:51:19 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBNIpJ5s020259
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 23 Dec 2012 18:51:19 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qBNIpJSW020241;
	Sun, 23 Dec 2012 18:51:19 GMT
	(envelope-from nobody)
Message-Id: <201212231851.qBNIpJSW020241@red.freebsd.org>
Date: Sun, 23 Dec 2012 18:51:19 GMT
From: Carsten Wiedmann <carsten_sttgt@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lost alias on wlan interface
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174661
>Category:       kern
>Synopsis:       [wlan] lost alias on wlan interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 23 19:00:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Sat Dec 29 12:30:01 UTC 2012
>Originator:     Carsten Wiedmann
>Release:        FreeBSD 9.0-RELEASE-p5
>Organization:
>Environment:
FreeBSD freebsd 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 01:47:53 UTC 2012     root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Hello,

I have the problem, that the 1st defined alias is lost sometimes.

My WiFi card is a:
iwi0: <Intel(R) PRO/Wireless 2200BG> mem 0xe0204000-0xe0204fff irq 11 at device 6.0 on pci2

My IP configuration in /etc/rc.conf is:
ipv6_privacy="YES"
wlans_iwi0="wlan0"
ifconfig_wlan0="DHCP WPA country DE"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
ifconfig_wlan0_alias0="inet 192.168.0.201 netmask 255.255.255.255"
ifconfig_wlan0_alias1="inet 192.168.0.202 netmask 255.255.255.255"


After a reboot all is working as expected. Then, every ~ hour I have a message like this in /var/log/messages, which is IMHO ok:
Dec 21 18:43:30 freebsd wpa_supplicant[484]: WPA: Group rekeying completed with 0c:0c:0b:14:cd:98 [GTK=CCMP]

Of course, sometimes I have:
Dec 21 19:43:30 freebsd wpa_supplicant[8904]: CTRL-EVENT-DISCONNECTED bssid=0c:0c:0b:14:cd:98 reason=0
Dec 21 19:43:30 freebsd kernel: wlan0: link state changed to DOWN
Dec 21 19:43:32 freebsd wpa_supplicant[8904]: Trying to associate with 0c:0c:0b:14:cd:98 (SSID='WLAN' freq=2472 MHz)
Dec 21 19:43:32 freebsd wpa_supplicant[8904]: Associated with 0c:0c:0b:14:cd:98
Dec 21 19:43:32 freebsd kernel: wlan0: link state changed to UP
Dec 21 19:43:32 freebsd wpa_supplicant[8904]: WPA: Key negotiation completed with 00:1a:4f:93:4a:97 [PTK=CCMP GTK=CCMP]
Dec 21 19:43:32 freebsd wpa_supplicant[8904]: CTRL-EVENT-CONNECTED - Connection to 0c:0c:0b:14:cd:98 completed (reauth) [id=0 id_str=]

And the first time this occurs, my first alias (ifconfig_wlan0_alias0 192.168.0.201) is lost and not listed in "ifconfig wlan0" anymore.

If this occurs another time, nothing happens and my second alias  ifconfig_wlan0_alias1 is still alive.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Dec 23 19:09:44 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174661 

From: "Carsten Wiedmann" <carsten_sttgt@gmx.de>
To: bug-followup@FreeBSD.org, carsten_sttgt@gmx.de
Cc:  
Subject: Re: kern/174661: [wlan] lost alias on wlan interface
Date: Sat, 29 Dec 2012 13:23:31 +0100

 Well,
 
 in "production" setup I'm using the 1st alias for a jail with my mailsserver. And every time I lost this alias, I can't connect to/from my mailserver :-/
 
 If anyone else has this problem too... As a workaround I'm defining my aliases like:
 | ifconfig_wlan0_alias0="inet 192.168.0.200 netmask 255.255.255.255"
 | ifconfig_wlan0_alias1="inet 192.168.0.201 netmask 255.255.255.255"
 | ifconfig_wlan0_alias2="inet 192.168.0.202 netmask 255.255.255.255"
 
 And I don't use "192.168.0.200" anywhere. Thus it doesn't matter if I lost this alias.
 
 
 -------- Original-Nachricht --------
 > Datum: Sun, 23 Dec 2012 19:00:00 GMT
 > Von: FreeBSD-gnats-submit@FreeBSD.org
 > An: Carsten Wiedmann <carsten_sttgt@gmx.de>
 > Betreff: Re: kern/174661: lost alias on wlan interface
 
 > Thank you very much for your problem report.
 > It has the internal identification `kern/174661'.
 > The individual assigned to look at your
 > report is: freebsd-bugs. 
 > 
 > You can access the state of your problem report at any time
 > via this link:
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=174661
 > 
 > >Category:       kern
 > >Responsible:    freebsd-bugs
 > >Synopsis:       lost alias on wlan interface
 > >Arrival-Date:   Sun Dec 23 19:00:00 UTC 2012
>Unformatted:
