From owner-freebsd-questions@FreeBSD.ORG Fri Apr 16 18:17:45 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 3E961106566B for ; Fri, 16 Apr 2010 18:17:45 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 9F4ED8FC26 for ; Fri, 16 Apr 2010 18:17:44 +0000 (UTC) Received: (qmail invoked by alias); 16 Apr 2010 18:17:42 -0000 Received: from adsl-78.91.140.5.tellas.gr (EHLO [192.168.73.194]) [91.140.5.78] by mail.gmx.com (mp-eu003) with SMTP; 16 Apr 2010 20:17:42 +0200 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX18/WupU3Zg/frPi86zIrS5RGSuZtF9iyVOAW1wFfr kYhXpLqp57K3+J Message-ID: <4BC8A972.2040101@gmx.com> Date: Fri, 16 Apr 2010 21:16:18 +0300 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Dan D Niles References: <1271196264.10895.33.camel@jane.spg.more.net> In-Reply-To: <1271196264.10895.33.camel@jane.spg.more.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.58999999999999997 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: Fri, 16 Apr 2010 18:17:45 -0000 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 > 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? 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