From owner-freebsd-net@FreeBSD.ORG Thu May 28 20:28:20 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEA961065795 for ; Thu, 28 May 2009 20:28:20 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 774A38FC16 for ; Thu, 28 May 2009 20:28:20 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by bwz9 with SMTP id 9so5790326bwz.43 for ; Thu, 28 May 2009 13:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=azAzoW1gYucM8hzuLP9gfpa/t2HRYZjGcqIdEsiGA6E=; b=ofPjkK8wY5KI6DSoQvkfe9Jv3NC380pBZrBbNoelFRHboiyYYpJ1sXPLaBcQAS7SoZ HH5KK3TWxrpt5Sl1ILFWPsWMaoptr1vPXCgDZsYGiXJC1+h7SbBtjDTEtipk/iMOnCEH fhpkXOzPTkCP32N3g2MCx3LDqidgz6jiGznys= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Z/bugjeONe9Ky7/hm5Pl+Z3ZQsdo5ZbEOvZWQF+jDzAQiYVZZx+B1t7y6ArN5a0jao sby9DudmbX/BQWZVTTZ+ROjIa8zoeNIbRbYMHbSwi7d2eXTvGAoVvXwOflqT5TuGLhu4 FgQ3U1yX7iKfqSVdXzlnUSz0h8BtxviZrUCAo= MIME-Version: 1.0 Received: by 10.103.244.19 with SMTP id w19mr1062567mur.133.1243542498860; Thu, 28 May 2009 13:28:18 -0700 (PDT) In-Reply-To: <4A1EE0F5.1070909@iem.pw.edu.pl> References: <4A1EE0F5.1070909@iem.pw.edu.pl> Date: Fri, 29 May 2009 00:28:18 +0400 Message-ID: From: pluknet To: Jedrzej Kalinowski Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Bridging and stp question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 20:28:22 -0000 2009/5/28 Jedrzej Kalinowski : > Hello, > > I'm using a bridge to connect tap devices used by qemu emulator to an > outside world. > > I run into a bit of problem however, because if I feed qemu virtual > machine with two tap interfaces - I need to turn on stp on them when > adding to a bridge to prevent a loop . > > This is probably due to improper qemu behaviour as I suppose, because I > does not happen when I run two qemu machines with each of them getting > one tap device. > > As we know from 'man ifconfig' the default behaviour for the interface > added to a bridge is to add it with stp protocol disabled and I have to > specify stp explicitly. > > My question is: > > Is there any way to configure the bridge to add stp protocol to any > added (via ifconfig bridgeX addm ifX) member interface - so to change > the default behaviour? Or specifying it explicitly is unavoidable? > Let me clarify some. Did I understand you correctly that `ifconfig bridge0 addm ifX stp ifX` doesn't fit you needs? -- wbr, pluknet