Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Dec 2003 16:41:39 +0900
From:      Jun Kuriyama <kuriyama@imgsrc.co.jp>
To:        Current <freebsd-current@FreeBSD.org>
Cc:        pdeuskar@FreeBSD.org
Subject:   dev/em: Link is not up until 2 seconds after "ifconfig up"
Message-ID:  <7m8ylp6pn0.wl@black.imgsrc.co.jp>

next in thread | raw e-mail | index | archive | help

My experimental 1U box which has em0 and em1 shows following result.
Doing "ifconfig em1 up" after "ifconfig em1 down", link is down 1 or
more seconds.  I'm trying to make this box as VRRP router, so 1
second down during master/backup transition (which uses down, mac
address setting, and up) causes ping-pong transition of master router.

I think I can work around some timeout tweaks in VRRP daemon side, but
I hope em(4) driver (or hardware problem?) can deal with it.  I did
same test with fxp(4) and rl(4), but these interfaces are active after
"ifconfig up" immediately.


# ifconfig em1 down; ifconfig em1 up; ifconfig em1; sleep 1; ifconfig em1; sleep 1; ifconfig em1
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<RXCSUM,TXCSUM>
        inet 192.168.128.3 netmask 0xffffff00 broadcast 192.168.128.255
        inet6 fe80::230:48ff:fe28:4d75%em1 prefixlen 64 scopeid 0x2 
        ether 00:30:48:28:4d:75
        media: Ethernet autoselect
        status: no carrier
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<RXCSUM,TXCSUM>
        inet 192.168.128.3 netmask 0xffffff00 broadcast 192.168.128.255
        inet6 fe80::230:48ff:fe28:4d75%em1 prefixlen 64 scopeid 0x2 
        ether 00:30:48:28:4d:75
        media: Ethernet autoselect
        status: no carrier
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<RXCSUM,TXCSUM>
        inet 192.168.128.3 netmask 0xffffff00 broadcast 192.168.128.255
        inet6 fe80::230:48ff:fe28:4d75%em1 prefixlen 64 scopeid 0x2 
        ether 00:30:48:28:4d:75
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

# pciconf -lv
...
em0@pci2:3:0:   class=0x020000 card=0x10118086 chip=0x10108086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82546EB Gigabit Ethernet Controller (copper)'
    class    = network
    subclass = ethernet
em1@pci2:3:1:   class=0x020000 card=0x10118086 chip=0x10108086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    device   = '82546EB Gigabit Ethernet Controller (copper)'
    class    = network
    subclass = ethernet
...


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7m8ylp6pn0.wl>