From owner-freebsd-net@FreeBSD.ORG Thu Feb 5 21:27:42 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CD86C264 for ; Thu, 5 Feb 2015 21:27:42 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0056.outbound.protection.outlook.com [65.55.169.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59067E30 for ; Thu, 5 Feb 2015 21:27:41 +0000 (UTC) Received: from DM2PR0801MB652.namprd08.prod.outlook.com (10.242.127.155) by DM2PR0801MB652.namprd08.prod.outlook.com (10.242.127.155) with Microsoft SMTP Server (TLS) id 15.1.81.19; Thu, 5 Feb 2015 21:27:33 +0000 Received: from DM2PR0801MB652.namprd08.prod.outlook.com ([10.242.127.155]) by DM2PR0801MB652.namprd08.prod.outlook.com ([10.242.127.155]) with mapi id 15.01.0081.018; Thu, 5 Feb 2015 21:27:33 +0000 From: "Sinha, Prokash" To: "freebsd-net@freebsd.org" Subject: Re: configuring bridge to route L2 packets from one interface to the other Thread-Topic: configuring bridge to route L2 packets from one interface to the other Thread-Index: AQHQQXqNKQUHidzDnkOJFlDWLwa16pziBvaAgAAFEYA= Date: Thu, 5 Feb 2015 21:27:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [71.92.229.68] authentication-results: freebsd.org; dkim=none (message not signed) header.d=none; x-microsoft-antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB652; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB652; x-forefront-prvs: 0478C23FE0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(377454003)(53754006)(164054003)(51874003)(2900100001)(36756003)(46102003)(2950100001)(86362001)(106116001)(99286002)(110136001)(92566002)(122556002)(66066001)(40100003)(450100001)(77156002)(77096005)(50986999)(87936001)(16236675004)(2656002)(62966003)(19580395003)(76176999)(54356999)(19580405001)(102836002)(2351001)(107886001)(94096001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0801MB652; H:DM2PR0801MB652.namprd08.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: panasas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Feb 2015 21:27:33.4480 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: acf01c9d-c699-42af-bdbb-44bf582e60b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0801MB652 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 05 Feb 2015 21:27:43 -0000 Finally able to coax it to get laggs bound to the bridge. Let me see thru k= gdb ... From: , Prokash Sinha = > Date: Thursday, February 5, 2015 1:09 PM To: "freebsd-net@freebsd.org" > Subject: Re: configuring bridge to route L2 packets from one interface to t= he other I got the bridge device created ( kernel config needed to be changed ). But don't know how the add works - Is it because of the lagg ??? 018780222f020d# ifconfig bridge0 addm bge0 addm bge1 ifconfig: BRDGADD bge0: Invalid argument Thanks, -p From: , Prokash Sinha = > Date: Thursday, February 5, 2015 11:32 AM To: "freebsd-net@freebsd.org" > Subject: configuring bridge to route L2 packets from one interface to the o= ther Hi All, I'm trying to come up with a L2 forwarding from one interface to the other.= Is creating a bridge a good idea ? The context: I will have ether_frame coming from client to one NIC port BCM ( the driver= is bge), it will come to an interface, and want to forward to the other in= terface. So what is and how should I get this, so it work like a small scale bridge/= switch ? If I get all traffic coming in ifp 0, and forward to ifp 1 then I= can put a custom filter for the packets of interest to be forwarded. So if I can configure using - 018780222f020b# ifconfig bridge create ifconfig: SIOCIFCREATE2: Invalid argument Not sure what the problem could be in my other configuration. It some have = static lagg - 018780222f020b# ifconfig -a bge0: flags=3D8843 metric 0 mtu 150= 0 options=3D49b ether 00:09:03:01:87:80 media: Ethernet autoselect (1000baseTX ) status: active lagg: laggdev lagg0 bge1: flags=3D8843 metric 0 mtu 150= 0 options=3D49b ether 00:09:03:01:87:81 media: Ethernet autoselect (1000baseTX ) status: active lo0: flags=3D8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 lagg0: flags=3D8843 metric 0 mtu 15= 00 options=3D49b ether 00:09:03:01:87:80 inet 10.17.26.11 netmask 0xffffff00 broadcast 10.17.26.255 media: Ethernet autoselect status: active laggproto failover laggport: bge0 flags=3D5 lagg1: flags=3D8843 metric 0 mtu 15= 00 ether 00:09:03:01:87:81 media: Ethernet autoselect status: no carrier laggproto failover Thanks in Advance, -prokash