From owner-freebsd-net Wed Jun 13 14:16:17 2001 Delivered-To: freebsd-net@freebsd.org Received: from sj-msg-core-1.cisco.com (sj-msg-core-1.cisco.com [171.71.163.11]) by hub.freebsd.org (Postfix) with ESMTP id AD7DC37B407; Wed, 13 Jun 2001 14:16:07 -0700 (PDT) (envelope-from bmah@cisco.com) Received: from bmah-freebsd-0.cisco.com (bmah-freebsd-0.cisco.com [171.70.84.42]) by sj-msg-core-1.cisco.com (8.11.3/8.9.1) with ESMTP id f5DLGB919813; Wed, 13 Jun 2001 14:16:11 -0700 (PDT) Received: (from bmah@localhost) by bmah-freebsd-0.cisco.com (8.11.3/8.11.3) id f5DLG6k59912; Wed, 13 Jun 2001 14:16:06 -0700 (PDT) (envelope-from bmah) Message-Id: <200106132116.f5DLG6k59912@bmah-freebsd-0.cisco.com> X-Mailer: exmh version 2.4+ 06/08/2001 with nmh-1.0.4 To: freebsd-net@freebsd.org Cc: bmah@freebsd.org Subject: CFR: bridge.4 manpage update From: bmah@freebsd.org (Bruce A. Mah) Reply-To: bmah@freebsd.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_417521302P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 13 Jun 2001 14:16:06 -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --==_Exmh_417521302P Content-Type: text/plain; charset=us-ascii Hi -net folk... Awhile back, I was trying to figure out how bridge(4) worked, but discovered that the manpage didn't list all the sysctls necessary to configure the bridge. I filed a PR (22060) asking someone to look into this. I subsequently lost interest in bridge(4), but gained a commit bit, the result being that I own a PR for something I know close to zero about. I've made the following diff against the bridge.4 manpage in -CURRENT. Can someone tell me if this is anywhere close to the state of reality? Thanks for any assistance! Bruce. Index: bridge.4 =================================================================== RCS file: /home/ncvs/src/share/man/man4/bridge.4,v retrieving revision 1.12 diff -u -r1.12 bridge.4 --- bridge.4 2001/04/18 15:51:26 1.12 +++ bridge.4 2001/06/13 21:08:09 @@ -44,6 +44,40 @@ .Ar allow rule if we want ARP and other non-IP packets to flow through the bridge. +.Pp +The bridge configuration is controlled by the +.Bd -literal + net.link.ether.bridge_cfg +.Ed +.Pp +.Nm sysctl +variable. +It consists of a comma-separated list of +.Ar interface:cluster +pairs, where all interfaces with the same +.Ar cluster +number will +be bridged together. +.Pp +Another +.Nm sysctl +variable reinitializes the bridge; this is required if bridged +configurations include loadable interfaces. +After loading new +interface drivers, setting the: +.Bd -literal + net.link.ether.bridge_refresh +.Ed +.Pp +variable to 1 will cause the bridge to reinitialize itself. +.Sh EXAMPLES +.Pp +The following command will cause the ep0 and fxp0 interfaces to be +bridged together, and the fxp1 and de0 interfaces to be bridged +together: +.Bd -literal + sysctl -w net.link.ether.bridge_cfg ep0:0,fxp0:0,fxp1:1,de0:1 +.Ed .Sh BUGS .Pp Care must be taken not to construct loops in the bridge topology. --==_Exmh_417521302P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: Exmh version 2.3.1+ 05/14/2001 iD8DBQE7J9gW2MoxcVugUsMRAqr9AKDUMkYvcjEXHDg4VYzMhwl0W6YFlACfReVP F7XbIRh53HBiUHNxF1eemOM= =lX0m -----END PGP SIGNATURE----- --==_Exmh_417521302P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message