Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2010 00:23:46 +0200
From:      Ross Cameron <abalour@gmail.com>
To:        Dan D Niles <dan@more.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Extended VLAN?
Message-ID:  <v2j35f70db11004131523y71f56a38vae5df72969c243bb@mail.gmail.com>
In-Reply-To: <1271196264.10895.33.camel@jane.spg.more.net>
References:  <1271196264.10895.33.camel@jane.spg.more.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dan@more.net> 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=
 <routerA> <routerB>
> 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=
 <routerB> <routerA>
> 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.



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