Extended VLAN?

Nikos Vassiliadis nvass9573 at gmx.com
Fri Apr 16 18:17:45 UTC 2010


On 4/14/2010 1: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<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?  Am I missing some piece?

If I recall correctly the recommended setup is to assign
the IP address to the bridge interface and leave the bridge
members unnumbered. These problems you are seeing must be
some corner case in FreeBSD's routing and/or ARP subsystems.
See if assigning the IP to bridge0 helps

Nikos


More information about the freebsd-questions mailing list