From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 18:28:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 212BF16A420 for ; Wed, 11 Jan 2006 18:28:55 +0000 (GMT) (envelope-from peter@alastria.net) Received: from nebula.thdo.uk.alastria.net (nebula.thdo.uk.alastria.net [212.13.198.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63DEC43D46 for ; Wed, 11 Jan 2006 18:28:54 +0000 (GMT) (envelope-from peter@alastria.net) Received: from [192.168.0.126] (81-179-86-254.dsl.pipex.com [81.179.86.254]) (authenticated bits=0) by nebula.thdo.uk.alastria.net (8.13.3/8.13.3) with ESMTP id k0BISk3D046768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jan 2006 18:28:48 GMT (envelope-from peter@alastria.net) Message-ID: <43C54E5D.8060608@alastria.net> Date: Wed, 11 Jan 2006 18:28:45 +0000 From: Peter Wood Organization: Alastria Networks User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Raven References: <20060111144252.C75D943D69@mx1.FreeBSD.org> In-Reply-To: <20060111144252.C75D943D69@mx1.FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Flag: NO X-Virus-Status: No X-Spam-Score: 0.137 () RCVD_IN_SORBS_DUL X-Spam-Ultra-Flag: NO X-Spam-Low-Flag: NO X-Spam-Flag: NO X-Spam-High-Flag: NO X-Scanned-By: MIMEDefang 2.51 on 212.13.198.8 Cc: freebsd-questions@freebsd.org Subject: Re: Bridging a Cisco Trunk 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: Wed, 11 Jan 2006 18:28:55 -0000 Dave, > I have two cisco switches, configured to put ports 2-6 on each of > them into vlan 100. Then I have port 1 on both set to trunk between the two > switches. If I have a device on port 2 on switch1 it can ping a device on > port 2 on switch2. I do this quite often, and it works very well on 6.0 for me. You haven't mentioned what version your using, but I will assume you have if_bridge. If you don't and you're gonna use this machine alot for bridging, I'd recommend moving to 6.0. So presumably, you have two interfaces, plugged into the trunk port on each cisco. For arguements sake, we'll say you have an fxp0 and fxp1. So first step is you need to make sure these two interfaces are "up", very important, if they arn't, then it wont work. It's easy to forget if you arn't assigning IP's to them. Remove "polling" if you don't have it compiled into the kernel, but again if you're gonna be bridging packets alot, get it compiled in. It helps.... alot. ifconfig_fxp0="up polling" ifconfig_fxp1="up polling" Now create the vlans (and the bridge for later on). cloned_interfaces="vlan0 vlan1 bridge0" ifconfig_vlan0="vlan 100 vlandev fxp0 up" ifconfig_vlan1="vlan 100 vlandev fxp1 up" In the above please note the "up"s, if they arn't up then it wont bridge. Now setup the bridge, again noticing the "up". ifconfig_bridge0="addm vlan0 addm vlan1 up" It should now be working, watch the kernel console and the cisco's logs to see if there are any mismatches or bridging loops. It also seems that you have to put the "up" at the end of these commands, it took an hour of debugging last night after I had put the up at the start of the ifconfig_vlan lines. Give it a go, send a reply to both me and the list if you are still stuck, Pete. -- Peter Wood ::