From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 31 17:39:18 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C1D49A1 for ; Fri, 31 Jan 2014 17:39:18 +0000 (UTC) Received: from ohta.kitchenlab.org (ohta.kitchenlab.org [IPv6:2001:470:1f05:55c::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 637801773 for ; Fri, 31 Jan 2014 17:39:18 +0000 (UTC) Received: from kobe.int.kitchenlab.org (kobe.ipv6.kitchenlab.org [IPv6:2001:470:1f05:888::3]) (authenticated bits=0) by ohta.kitchenlab.org (8.14.7/8.14.7) with ESMTP id s0VHdGLM054628 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 31 Jan 2014 09:39:17 -0800 (PST) (envelope-from bmah@FreeBSD.org) X-Authentication-Warning: ohta.kitchenlab.org: Host kobe.ipv6.kitchenlab.org [IPv6:2001:470:1f05:888::3] claimed to be kobe.int.kitchenlab.org Message-ID: <52EBDFC4.5070004@FreeBSD.org> Date: Fri, 31 Jan 2014 09:39:16 -0800 From: "Bruce A. Mah" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Dave Ng , freebsd-hackers@freebsd.org Subject: Re: dual network for single machine, possible bridge References: <20140121181241.27FF62035E@smtp.hushmail.com> <52DEC272.3070907@mu.org> <20140128055335.450F720152@smtp.hushmail.com> <20140130190217.EE0E820152@smtp.hushmail.com> <20140130201821.GR93141@funkthat.com> In-Reply-To: <20140130201821.GR93141@funkthat.com> X-Enigmail-Version: 1.6 OpenPGP: id=4984910A8CAAEE8A Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CodgjsiSueVMKabnFFUGAptR20hBH19vs" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2014 17:39:18 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CodgjsiSueVMKabnFFUGAptR20hBH19vs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If memory serves me right, John-Mark Gurney wrote: > Dave Ng wrote this message on Thu, Jan 30, 2014 at 11:02 -0800: >> I have two networks at home, there are some wifi shenanigans going on >> but for the point of this conversation I only mention the wired >> ethernet. Two hub/switch setups, 192.168.1.x and 192.168.2.x, they are= >> separate and they work great and life is good. >> I am adding a single freebsd host with two NICs in it, one on each >> network. No complications, right? Set the IP addresses manually and I >> can participate in each network, using a single gateway off one of >> them to reach the outside world. I think? >> Next question, can I use this host to bridge the two networks? >> Next next, assuming I can bridge, is there any way to do so >> transparently for other hosts on either network? They are a mix of >> OSX, windows, blah blah every OS. >=20 > Basicly that means you need to setup up your box to forward packets: > https://www.freebsd.org/doc/handbook/network-routing.html#network-dedic= ated-router >=20 > Getting the routing working is a little bit more difficult but the > handbook has useful instructions: > https://www.freebsd.org/doc/handbook/network-routing.html >=20 > You can use a routing daemon to advertise routes, but not all devices > default to listening to routing advertisements and may need to be enabl= ed... >=20 > FreeBSD includes routed(8) that provides basic functionality... Just an observation...the OP asked about "bridge" functionality and you answered the question of how to make a router. I think you answered the question he *meant* to ask, but I'm not sure. If he really wanted a bridge, that's a completely different set of instructions (as we both know FreeBSD is perfectly capable of doing *that* too). http://www.freebsd.org/doc/handbook/network-bridging.html Bruce. --CodgjsiSueVMKabnFFUGAptR20hBH19vs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCgAGBQJS69/EAAoJEEmEkQqMqu6K80QIAIpH0TWaaAQ6arnrY5L0Fs6T 4ajTS37UZdZ1ixbXfSNavwq1qIkTmuUtjpEfDUKWZpYxXlv33RfIVbvTMUuBWc3v Bht/sSrHgUG9jWLUBSwJ3vlrEVRxVf3AI4o5Be544Q+OMwBEGNeosGwjm4Lw1mwZ KIpsjWTJjddvm29WvMH6n83wvcH4V/GP3+bdOR0Q0XmcqUArRhNuECF/OPNp08Hd 4I4rZDYriR6f1zouQxf5IXs9K5N4QMgGX+Bgxl6u/962zOQGS787ytlj/FnhL/ws +JVu5q8GKRtEhVZYZVfwmP0nbWVGQe6SmMmft6yj0MgGPFQdLxlt7QxfA2M1JBQ= =Hjsz -----END PGP SIGNATURE----- --CodgjsiSueVMKabnFFUGAptR20hBH19vs--