Date: Sun, 7 Dec 2003 15:04:51 +0600 (NOVT) From: "Maxim M. Kazachek" <stranger@sberbank.sibnet.ru> To: Jun Kuriyama <kuriyama@imgsrc.co.jp> Cc: pdeuskar@freebsd.org Subject: Re: dev/em: Link is not up until 2 seconds after "ifconfig up" Message-ID: <20031207150250.L35454@sbk-gw.sibnet.ru> In-Reply-To: <7m8ylp6pn0.wl@black.imgsrc.co.jp> References: <7m8ylp6pn0.wl@black.imgsrc.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 7 Dec 2003, Jun Kuriyama wrote: > >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 >... > > Did you tried to specify link speed rather than use autosence. Perhaps this delay is due to media sense? Sincerely, Maxim M. Kazachek mailto:stranger@sberbank.sibnet.ru mailto:stranger@fpm.ami.nstu.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031207150250.L35454>