Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2014 09:39:16 -0800
From:      "Bruce A. Mah" <bmah@FreeBSD.org>
To:        Dave Ng <chump1@hushmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: dual network for single machine, possible bridge
Message-ID:  <52EBDFC4.5070004@FreeBSD.org>
In-Reply-To: <20140130201821.GR93141@funkthat.com>
References:  <20140121181241.27FF62035E@smtp.hushmail.com> <52DEC272.3070907@mu.org> <20140128055335.450F720152@smtp.hushmail.com> <alpine.BSF.2.00.1401280833260.49265@wonkity.com> <20140130190217.EE0E820152@smtp.hushmail.com> <20140130201821.GR93141@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52EBDFC4.5070004>