From owner-freebsd-questions@FreeBSD.ORG Fri Aug 21 00:47:49 2009 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC31A1065692 for ; Fri, 21 Aug 2009 00:47:49 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id 800678FC64 for ; Fri, 21 Aug 2009 00:47:49 +0000 (UTC) Received: by fxm6 with SMTP id 6so212367fxm.43 for ; Thu, 20 Aug 2009 17:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=FW/jv4XGIXI4LUjgXdaG5vrirhnvqvl85S97mwrMJZg=; b=QeTadbaxA+3DpXwEKy5rZipGAXD+9ns+3/G6q87/vWS6oJerD/iqCL72U19ev8Wthm /HGdrfiqacYiry6K/DS5B0Zf+9p9GODJl8SWsWGa7yvVHnBDk9a8Lim4zDT/YwyRnpvg ek5oc9Z5wVq5FoQefxYCKhZ+91o1tFeVwFdi4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=MgS4t7Q9e7jEVm4BFdCn1ez4BNKP9MCk8idhn87Rsctk+iNATZGeQG2Yj3+u9vQeew 7oPB/SCtFhx34f1zPg0vEsv8bBASzT6RWtyZ4Re15W/2Fzl5WfuK4U0KIfuH/QVDxixn Krdt1hl4SeHHCGwd5sZtgpmtDFxqr5pZeWXUI= MIME-Version: 1.0 Received: by 10.239.168.200 with SMTP id l8mr49045hbe.83.1250815668506; Thu, 20 Aug 2009 17:47:48 -0700 (PDT) Date: Fri, 21 Aug 2009 00:47:48 +0000 Message-ID: From: "b. f." To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ml@infosec.pl Subject: Re: switching from one network interface to another without reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Aug 2009 00:47:50 -0000 Michal wrote: >Mel Flynn wrote: >> If these are on the same network (like most wireless routers), it can pay off >> to use lagg(4) and then simply unplug the cable. Plug it back in and it will >> use the cable again. You would need: >In my case usually it's some testing environment so I needed more of a >quick kludge. But thats very interesting idea for my home network, I'll >definitely have to check it out, thanks! And of course, you can also automate this via devd.conf(5), by instructing the system to run the rc.d scripts or other commands/scripts if one of your NICs is attached/detached, or upon other conditions. There are related examples in the devd.conf(5) manpage and the default /etc/devd.conf b.