From owner-freebsd-current@FreeBSD.ORG Sun Dec 7 18:17:01 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B857716A4CE; Sun, 7 Dec 2003 18:17:01 -0800 (PST) Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id AECBD43FA3; Sun, 7 Dec 2003 18:16:59 -0800 (PST) (envelope-from kuriyama@imgsrc.co.jp) Received: from localhost (localhost [127.0.0.1]) by white.imgsrc.co.jp (Postfix) with ESMTP id 7E06D284028; Mon, 8 Dec 2003 11:16:58 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by white.imgsrc.co.jp (Postfix) with ESMTP id 78C47284023; Mon, 8 Dec 2003 11:16:57 +0900 (JST) Received: from black.imgsrc.co.jp (black.imgsrc.co.jp [2001:218:422:2::130]) by black.imgsrc.co.jp (Postfix) with ESMTP id 37B9D1E4A64; Mon, 8 Dec 2003 11:16:57 +0900 (JST) Date: Mon, 08 Dec 2003 11:16:57 +0900 Message-ID: <7mwu985a06.wl@black.imgsrc.co.jp> From: Jun Kuriyama To: Dan Nelson In-Reply-To: <20031208020941.GA96374@dan.emsphone.com> References: <7m8ylp6pn0.wl@black.imgsrc.co.jp> <20031207150250.L35454@sbk-gw.sibnet.ru> <7my8to5bqk.wl@black.imgsrc.co.jp> <20031208020941.GA96374@dan.emsphone.com> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020531 cc: Current cc: pdeuskar@freebsd.org Subject: Re: dev/em: Link is not up until 2 seconds after "ifconfig up" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2003 02:17:01 -0000 At Sun, 7 Dec 2003 20:09:41 -0600, Dan Nelson wrote: > You may need to disable other stuff too; modern switches autosense much > more than just speed and duplex. Cisco switches have enough features > enabled on their ports by default that it can take up to 30 seconds for > traffic to start passing after plugging in a cable. > http://www.cisco.com/warp/public/473/12.html My switch (Allied Telesis 8216XL2) has MDI (straight or cross) autoselection, but of course I disabled it. I cannot find other configurable flags in 8216XL2's menu. > Do you really need to down then up your interface for vrrp to work? > Why can't you just change the MAC address on the fly? If I change the > MAC address on my active card with "ifconfig fxp0 ether > 01:02:03:04:05:06", it sends out a gratuitous arp to let everyone know > of the change, and traffic never stops. Hmm, that's why freevrrpd is doing so. I'll try to modify skipping interface down/up. ----- vrrp_state.c vrrp_thread_mutex_lock(); vrrp_interface_vripaddr_delete(vr); ethaddr = vrrp_list_get_last(vr); if (vrrp_interface_down(vr->vr_if->if_name) == -1) { vrrp_thread_mutex_unlock(); return -1; } if (vrrp_interface_ethaddr_set(vr->vr_if->if_name, ðaddr) == -1) { vrrp_thread_mutex_unlock(); return -1; } bcopy(ðaddr, &vr->vr_if->actualethaddr, sizeof(struct ether_addr)); if (vrrp_interface_up(vr->vr_if->if_name) == -1) { vrrp_thread_mutex_unlock(); return -1; } if (vrrp_network_send_gratuitous_arp_ips(vr, ðaddr) == -1) return -1; vrrp_thread_mutex_unlock(); ----- -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project