From owner-freebsd-security@FreeBSD.ORG Mon Dec 22 12:13:44 2003 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADAB916A4CE for ; Mon, 22 Dec 2003 12:13:44 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86E9743D50 for ; Mon, 22 Dec 2003 12:13:41 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id hBMKDfl7098463; Mon, 22 Dec 2003 22:13:42 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id hBMKDfRE098458; Mon, 22 Dec 2003 22:13:41 +0200 (EET) (envelope-from ru) Date: Mon, 22 Dec 2003 22:13:41 +0200 From: Ruslan Ermilov To: Richard Bejtlich Message-ID: <20031222201341.GA98235@FreeBSD.org.ua> References: <20031222184812.87890.qmail@web60808.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <20031222184812.87890.qmail@web60808.mail.yahoo.com> User-Agent: Mutt/1.5.5.1i cc: freebsd-security@freebsd.org Subject: Re: interface bonding X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2003 20:13:44 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 22, 2003 at 10:48:12AM -0800, Richard Bejtlich wrote: > Thanks to Dmitry's tip on ng_eiface, I'm happy to > report using the following configuration to bond > interfaces with ng_one2many and a virtual interface > ngeth0. >=20 > sf2 and sf3 are real interfaces connected to my 10/100 > tap. > -- > kldload ng_ether > kldload ng_one2many > ifconfig sf2 promisc -arp up > ifconfig sf3 promisc -arp up > ngctl mkpeer . eiface hook ether > ngctl mkpeer ngeth0: one2many lower one > ngctl connect sf2: ngeth0:lower lower many0 > ngctl connect sf3: ngeth0:lower lower many1 > ifconfig ngeth0 -arp up > -- >=20 > It works: >=20 You can also try to dispense with ng_ether(4) completely by attaching the "ether" hook of the eiface node to the one2many's "one" hook directly. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/51B1Ukv4P6juNwoRApnHAJ9qcjg6Mvg1hvF7JCugJWanrrV6qwCfYadb Cs5Hkcj5zSEDKRumiZ5gofs= =GlsI -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--