From owner-freebsd-net@FreeBSD.ORG Wed Mar 7 20:38:24 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0EED16A405 for ; Wed, 7 Mar 2007 20:38:24 +0000 (UTC) (envelope-from corsmith@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 964B513C4A8 for ; Wed, 7 Mar 2007 20:38:24 +0000 (UTC) (envelope-from corsmith@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so459435wri for ; Wed, 07 Mar 2007 12:38:23 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ww++klQT0hJ0g9DwtgOPa3rddhU5Mgpi71T7PBuIppoJlrvgXo3GZmmEGY+6PPfMkFQ9y4ZIh7QFlMUeAqxo/tBiyhMF5mF0yDwR5kjZ8B7SboiPatp55KVOGJb1H6EL3yZFLf0zsCN05Qo9nPRaYfPFTIZVUNW1KsvN1GM0Syc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=UHXWQbZ19A+Ks1WEkM2jG3ax5iOG8+kwpYIYhqMrtJZhS/cYubnPYq3BdKKdeLkRwt5Z4dRINRE90PBpwUeo59H+lWdqFV4R94BoRFnISocPKnvspHvUEXDoAJn9WIiBAwPCGO+XJvEhk5KeHNTTC0Ma6uSf4UheWGuAkmbuypE= Received: by 10.114.195.19 with SMTP id s19mr2331626waf.1173297975804; Wed, 07 Mar 2007 12:06:15 -0800 (PST) Received: by 10.114.73.19 with HTTP; Wed, 7 Mar 2007 12:06:10 -0800 (PST) Message-ID: <8061fbee0703071206w58c1985fl78d7110a040fa144@mail.gmail.com> Date: Wed, 7 Mar 2007 15:06:10 -0500 From: "Corey Smith" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 802.1q bridged trunk with STP 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: Wed, 07 Mar 2007 20:38:25 -0000 Please CC: me as I am off list. I want to be able to create an 802.1q bridged trunk. This is nice if you want layer 1 and 2 redundancy on an arbitrary number of logical networks with only two physical network interfaces. Here is try1: ifconfig bridge18 destroy ifconfig bridge19 destroy ifconfig vlan18 destroy ifconfig vlan19 destroy ifconfig vlan118 destroy ifconfig vlan119 destroy ifconfig vlan18 create ifconfig vlan19 create ifconfig vlan118 create ifconfig vlan119 create ifconfig vlan18 vlan 18 vlandev bge0 up ifconfig vlan19 vlan 19 vlandev bge0 up ifconfig vlan118 vlan 18 vlandev bge1 up ifconfig vlan119 vlan 19 vlandev bge1 up ifconfig bridge18 create ifconfig bridge19 create ifconfig bridge18 inet 192.168.1.50/24 addm vlan18 stp vlan18 addm vlan118 \ stp vlan118 up ifconfig: unable to set bridge flags: Invalid argument This works if you don't enable stp but gives the error above otherwise. Without using spanning tree you can't actually plug it into your switch. Instead of running STP over the vlan interfaces I decided to try running STP on the real interfaces and then use the bridge interfaces as the vlan vlandev. Try2: ifconfig vlan18 destroy ifconfig bridge1 destroy ifconfig vlan18 create ifconfig bridge1 create ifconfig bridge1 addm bge0 stp bge0 addm bge1 stp bge1 up ifconfig vlan18 inet 192.168.1.50/24 vlan 18 vlandev bridge1 up ifconfig: SIOCSETVLAN: Protocol not supported Still no dice. I think that this method is the one that is actually supported by Cisco switches and has a cleaner config Is there a way to accomplish this task using FreeBSD 6.2-RELEASE ? -Corey Smith