From owner-freebsd-net@FreeBSD.ORG Thu May 28 19:20:19 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 3508210656F3 for ; Thu, 28 May 2009 19:20:19 +0000 (UTC) (envelope-from kalinoj1@iem.pw.edu.pl) Received: from volt.iem.pw.edu.pl (volt.iem.pw.edu.pl [194.29.146.3]) by mx1.freebsd.org (Postfix) with ESMTP id E82BC8FC1A for ; Thu, 28 May 2009 19:20:18 +0000 (UTC) (envelope-from kalinoj1@iem.pw.edu.pl) Received: from [192.168.1.183] (chello089079156006.chello.pl [89.79.156.6]) (Authenticated sender: kalinoj1) by volt.iem.pw.edu.pl (Postfix) with ESMTPSA id C32D7A66736 for ; Thu, 28 May 2009 21:04:43 +0200 (CEST) Message-ID: <4A1EE0F5.1070909@iem.pw.edu.pl> Date: Thu, 28 May 2009 21:07:33 +0200 From: Jedrzej Kalinowski User-Agent: Thunderbird 2.0.0.21 (X11/20090524) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter devel-r5066-exp at volt.iem.pw.edu.pl X-Virus-Status: Clean Subject: 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 19:20:19 -0000 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? Best regards. -- Jedrzej Kalinowski