From owner-freebsd-questions@FreeBSD.ORG Wed Sep 15 21:27:19 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 1D5A11065673 for ; Wed, 15 Sep 2010 21:27:19 +0000 (UTC) (envelope-from nvidican@m2.vidican.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A07238FC0A for ; Wed, 15 Sep 2010 21:27:18 +0000 (UTC) Received: by wyb33 with SMTP id 33so934479wyb.13 for ; Wed, 15 Sep 2010 14:27:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.38.20 with SMTP id z20mr1811139wea.108.1284586037266; Wed, 15 Sep 2010 14:27:17 -0700 (PDT) Sender: nvidican@m2.vidican.com Received: by 10.216.181.70 with HTTP; Wed, 15 Sep 2010 14:27:17 -0700 (PDT) X-Originating-IP: [136.1.1.105] In-Reply-To: <4C911EC0.9000607@beatsnet.com> References: <201009152110.36850.wolfgang.riegler@gmx.de> <4C911EC0.9000607@beatsnet.com> Date: Wed, 15 Sep 2010 17:27:17 -0400 X-Google-Sender-Auth: UNTyPABWqj1855tgJyYvr8baKzI Message-ID: From: Nathan Vidican To: Beat Siegenthaler , wolfgang.riegler@gmx.de Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: gateway_enable 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, 15 Sep 2010 21:27:19 -0000 On Wed, Sep 15, 2010 at 3:30 PM, Beat Siegenthaler < beat.siegenthaler@beatsnet.com> wrote: > > > On 15.09.10 21:10, Wolfgang Riegler wrote: > > > > I thought gateway_enable="YES" in /etc/rc.conf should be sufficient. > But it doesn't work. Do I need something else? > > > > > > > Looks all ok. > But does 192.168.40.1 have a route to 192.168.50.0/24 via GW > 192.168.40.122? > > > > Internet: > > > Destination Gateway Flags Refs Use Netif > Expire > > > default 192.168.40.1 UGS 0 0 rl0 > > > 127.0.0.1 link#6 UH 0 0 lo0 > > > 192.168.40.0/24 link#2 U 1 274 rl0 > > > 192.168.40.122 link#2 UHS 0 0 lo0 > > > 192.168.50.0/24 link#1 U 0 15 re0 > > > 192.168.50.1 link#1 UHS 0 0 lo0 > > > > Gruss Beat > > _______________________________________________ > 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" > As Beat questioned, I suspect your company network (192.168.40.0/24) know that it must use your machine (192.168.50.122) as it's gateway to get to 192.168.50.0/24 ? In other words, it would appear you have one side of the equation correct but are missing the other side. Assuming the other gateway is the (single) default gateway for 192.168.40.0/24 - you should simply have to add a route on that router instructing it to use 192.168.40.122 (your ip) as the gateway to the other subnet you created as 192.168.50.0/24. NETWORK A -> use 192.168.50.1 as default gateway 192.168.50.1 == router == 192.168.40.122 NETWORK B -> use 192.168.40.1 as default gateway 192.168.40.1 == router -> add entry on this router to use 192.168.40.122 to get to 192.168.50.1 Unfortunately, without seeing the route table for both sides I can't be sure - but like I'd said and Beat had eluded to, I think your missing the instructions to the other side of the route. -- Nathan Vidican nathan@vidican.com