From owner-freebsd-net@FreeBSD.ORG Thu Feb 5 19:33:10 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 9E6EB548 for ; Thu, 5 Feb 2015 19:33:10 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0066.outbound.protection.outlook.com [157.56.111.66]) (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 2F373DE6 for ; Thu, 5 Feb 2015 19:33:09 +0000 (UTC) Received: from DM2PR0801MB652.namprd08.prod.outlook.com (10.242.127.155) by DM2PR0801MB651.namprd08.prod.outlook.com (10.242.127.154) with Microsoft SMTP Server (TLS) id 15.1.81.19; Thu, 5 Feb 2015 19:33:01 +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 19:33:01 +0000 From: "Sinha, Prokash" To: "freebsd-net@freebsd.org" Subject: 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: AQHQQXqNKQUHidzDnkOJFlDWLwa16g== Date: Thu, 5 Feb 2015 19:33:00 +0000 Message-ID: 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:DM2PR0801MB651; x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB651; x-forefront-prvs: 0478C23FE0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(51874003)(53754006)(110136001)(77096005)(229853001)(87936001)(122556002)(92566002)(66066001)(40100003)(2351001)(102836002)(450100001)(62966003)(16236675004)(2656002)(54356999)(77156002)(107886001)(50986999)(86362001)(106116001)(36756003)(2900100001)(99286002)(46102003)(94096001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0801MB651; 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 19:33:00.6653 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: acf01c9d-c699-42af-bdbb-44bf582e60b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0801MB651 Content-Type: text/plain; charset="us-ascii" 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 19:33:10 -0000 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