From owner-freebsd-questions@FreeBSD.ORG Wed Apr 14 15:14:57 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C7FA106564A for ; Wed, 14 Apr 2010 15:14:57 +0000 (UTC) (envelope-from dan@more.net) Received: from vortex.more.net (vortex.more.net [198.209.253.169]) by mx1.freebsd.org (Postfix) with ESMTP id DABA08FC13 for ; Wed, 14 Apr 2010 15:14:56 +0000 (UTC) Received: from jane.spg.more.net (jane.spg.more.net [207.160.133.140]) by vortex.more.net (Postfix) with ESMTP id 5EA7F28424; Wed, 14 Apr 2010 10:14:56 -0500 (CDT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by jane.spg.more.net (Postfix) with ESMTP id 4D85E2C64C; Wed, 14 Apr 2010 10:14:56 -0500 (CDT) From: Dan D Niles To: ross.cameron@linuxpro.co.za In-Reply-To: References: <1271196264.10895.33.camel@jane.spg.more.net> Content-Type: text/plain Date: Wed, 14 Apr 2010 10:14:55 -0500 Message-Id: <1271258095.9196.7.camel@jane.spg.more.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Extended VLAN? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 15:14:57 -0000 On Wed, 2010-04-14 at 00:23 +0200, Ross Cameron wrote: > Look into OpenVPN's bridge mode. > www.openvpn.net > > I use it to bridge networks like what you have in mind quite regularly. Thanks, I'll look into that. > > > On Wed, Apr 14, 2010 at 12:04 AM, Dan D Niles wrote: > > I have two FreeBSD routers. I would like both locations to share the > > 10.10.0.0/16 network. If I were using Cisco routers I would use > > extended VLANs. How would I do that with FreeBSD routers? > > > > I already have a tunnel set up and routing different networks in the > > 192.168.0.0/16 range. > > > > Router A: > > > > ifconfig em2 inet 192.168.1.1 netmask 255.255.255.0 > > ifconfig gif0 create 192.168.1.1 192.168.2.1 netmask 255.255.255.0 tunnel > > route add 192.168.2.0/24 129.168.2.1 > > > > Router B: > > > > ifconfig em2 inet 192.168.2.1 netmask 255.255.255.0 > > ifconfig gif0 create 192.168.2.1 192.168.1.1 netmask 255.255.255.0 tunnel > > route add 192.168.1.0/24 129.168.1.1 > > > > This routes traffic between 192.168.1.0/24 and 192.168.2.0/24 as I would > > expect. > > > > The docs say I can use a tunnel with a bridge, which seems like it would > > do what I want. > > > > Router A: > > > > ifconfig em3 inet 10.10.1.1 netmask 255.255.0.0 > > ifconfig bridge0 create addm em3 addm gif0 > > > > Router B: > > > > ifconfig em3 inet 10.10.2.1 netmask 255.255.0.0 > > ifconfig bridge0 create addm em3 addm gif0 > > > > I cannot ping 10.10.2.1 from router A or 10.10.1.1 from router B. > > > > Should I be able to use a bridge this way? Am I missing some piece? > > > > Is there an easier/better way to extend a VLAN with FreeBSD routers? > > > > Thanks! > > > > Dan > > > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > >