kern/81147: em0 reinitialization while adding aliases to interface

Dmitry Sergienko dmitry at trifle.net
Tue May 17 10:00:27 GMT 2005


>Number:         81147
>Category:       kern
>Synopsis:       em0 reinitialization while adding aliases to interface
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 17 10:00:25 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Sergienko
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
Trifle Co., Ltd.
>Environment:
>Description:

Network card looses link while adding an alias to interface em0.
This affects only em0 - neither vlans with vlandev em0, nor fxp0.
Problem was detected on two different machines with the same netcards

>How-To-Repeat:

Initial state:

root at www:/home/trooper# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=4b<RXCSUM,TXCSUM,VLAN_MTU,POLLING>
        inet 195.24.128.164 netmask 0xfffffff0 broadcast 195.24.128.175
        inet 195.24.128.72 netmask 0xffffffe0 broadcast 195.24.128.95
        ether 00:0e:0c:33:c7:a8
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active

root at www:/home/trooper# dmesg
root at www:/home/trooper#

Now let's add an alias to interface em0:

root at www:/home/trooper# ifconfig em0 alias 85.198.128.1/24 ; while true; do
date +%H:%M:%S; ifconfig em0 | egrep '(media|status)' ; sleep 1s; done
15:44:14
        media: Ethernet autoselect
        status: no carrier
15:44:15
        media: Ethernet autoselect
        status: no carrier
15:44:16
        media: Ethernet autoselect
        status: no carrier
15:44:17
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active

root at www:/home/trooper# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=4b<RXCSUM,TXCSUM,VLAN_MTU,POLLING>
        inet 195.24.128.164 netmask 0xfffffff0 broadcast 195.24.128.175
        inet 195.24.128.72 netmask 0xffffffe0 broadcast 195.24.128.95
        inet 85.198.128.1 netmask 0xffffff00 broadcast 85.198.128.255
        ether 00:0e:0c:33:c7:a8
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active

root at www:/home/trooper# dmesg
em0: Link is up 1000 Mbps Full Duplex
root at www:/home/trooper# 

Alias has been added, but interface was reinitialized.

>Fix:
No fix currently found.

>Release-Note:
>Audit-Trail:
>Unformatted:
 >System: FreeBSD www.trifle.net 5.4-RELEASE FreeBSD 5.4-RELEASE #3: Mon May 16 18:59:05 EEST 2005 trooper at www.trifle.net:/usr/obj/usr/src/sys/TRIFLE i386
 
 Machine
 ~~~~~~~
 CPU: Athlon 1700 XP+
 M/B: ASUS A7N8X
 Netcard: em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port 0x9800-0x983f mem 0xd9120000-0xd913ffff,0xd9100000-0xd911ffff irq 5 at device 9.0 on pci1; device = '82547EI Gigabit Ethernet Controller'
 
 OS
 ~~
 This bug affects both 4.10-RELEASE and 5.4-RELEASE.
 


More information about the freebsd-bugs mailing list