From owner-freebsd-questions@FreeBSD.ORG Tue Apr 13 22:24:07 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 C672F106564A for ; Tue, 13 Apr 2010 22:24:07 +0000 (UTC) (envelope-from abalour@gmail.com) Received: from mail-iw0-f171.google.com (mail-iw0-f171.google.com [209.85.223.171]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3178FC08 for ; Tue, 13 Apr 2010 22:24:07 +0000 (UTC) Received: by iwn1 with SMTP id 1so2914287iwn.27 for ; Tue, 13 Apr 2010 15:24:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:received:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=KnxBzvKapiXOF7vptNaHcGWowyD/00xOHQjZeotsJk4=; b=FjRt7JEokg+BXVrXpYuSPE8uS76Vbo90GSDNyKQUeD6pPdBE43kgXhlaA1I2C+28L1 CP5sS9nnZRogdpX4hJzgI1hEell8oq4lB/As0xQlrxqMCcI3m9PTdQDpv4A73+YtmZJe XHNZf7SCfBVrCm36m5+v0SH2teiRfi9tA1VTs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=Ukx4Gb78yAc0JamV6Ro2qV5lSvlsLU94POLp9alu5FYMAAWYyAIyfBvOps2TzVFYLn fsSgpFgLWvGCf3g9506W7mcewHdjd1MM4eKbSN5ODbR6mYLvJnouVk2jSFklY8ZjHoTc /fkU63PlPM60KTpM5+sbOSQt1oHWKQWD3rL2U= MIME-Version: 1.0 Received: by 10.231.60.197 with HTTP; Tue, 13 Apr 2010 15:23:46 -0700 (PDT) In-Reply-To: <1271196264.10895.33.camel@jane.spg.more.net> References: <1271196264.10895.33.camel@jane.spg.more.net> From: Ross Cameron Date: Wed, 14 Apr 2010 00:23:46 +0200 Received: by 10.231.183.197 with SMTP id ch5mr1656860ibb.22.1271197446347; Tue, 13 Apr 2010 15:24:06 -0700 (PDT) Message-ID: To: Dan D Niles Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: Extended VLAN? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ross.cameron@linuxpro.co.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 22:24:07 -0000 Look into OpenVPN's bridge mode. www.openvpn.net I use it to bridge networks like what you have in mind quite regularly. On Wed, Apr 14, 2010 at 12:04 AM, Dan D Niles wrote: > I have two FreeBSD routers. =C2=A0I would like both locations to share th= e > 10.10.0.0/16 network. =C2=A0If I were using Cisco routers I would use > extended VLANs. =C2=A0How 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? =C2=A0Am 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.o= rg" > --=20 "Opportunity is most often missed by people because it is dressed in overalls and looks like work." Thomas Alva Edison Inventor of 1093 patents, including: The light bulb, phonogram and motion pictures.