From owner-freebsd-net@FreeBSD.ORG Thu Mar 24 11:18:30 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21B1016A4CE for ; Thu, 24 Mar 2005 11:18:30 +0000 (GMT) Received: from gw.Awfulhak.org (awfulhak.demon.co.uk [80.177.173.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1CA43D67 for ; Thu, 24 Mar 2005 11:18:29 +0000 (GMT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.Awfulhak.org (brian@dev.lan.Awfulhak.org [172.16.0.5]) by gw.Awfulhak.org (8.13.3/8.13.3) with ESMTP id j2OBIO0l015978; Thu, 24 Mar 2005 11:18:24 GMT (envelope-from brian@Awfulhak.org) Date: Thu, 24 Mar 2005 11:18:22 +0000 From: Brian Somers To: "Chris Tusa at Linisys, LLC" Message-ID: <20050324111822.30fb3e0d@dev.lan.Awfulhak.org> In-Reply-To: <308313860503231100635d6114@mail.gmail.com> References: <3083138605032116273eacd0f7@mail.gmail.com> <20050322122924.71b7c46a@dev.lan.Awfulhak.org> <30831386050322120630eaf58d@mail.gmail.com> <20050322220254.19994f8e@dev.lan.Awfulhak.org> <3083138605032214175b078a34@mail.gmail.com> <308313860503231100635d6114@mail.gmail.com> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on gw.lan.Awfulhak.org cc: freebsd-net@freebsd.org Subject: Re: PPP Lan Bridge X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 11:18:30 -0000 I would have thought that server: add 192.168.1.234/30 HISADDR in ppp.linkup should work... On Wed, 23 Mar 2005 13:00:03 -0600, "Chris Tusa at Linisys, LLC" wrote: > OK, > > I put the solution in place and had great results. The ONLY issue that > I had, is with some routing. In order for the rest of the network to > communicate with the hosts at the maintainence shed, I had to set a > 'static route'. I did so using DHCP, no problems there. > > However, I have a problem on the PPP server in its routing table: > > * I cannot add the static route to 'rc.conf': > > static_routes="theshed" > route_theshed="192.168.1.234 192.168.1.233" > > because it creates the table entry pointing to the wrong interface - > fxp0 instead of tun0 > > * I tried the same thing in the 'ppp.conf' file. I tried several > variations with no success: > > server: > add 192.168.1.234 192.168.1.233 > add 192.168.1.234/30 192.168.1.233 > > * I tried placing a shell script to be run in 'ppp.linkup' on the server > server: > bg /etc/ppp/setroute.sh > > and then setroute.sh: > > #!/bin/sh > route delete 192.168.1.234 > route add 192.168.1.234 192.168.1.233 > > STILL FAILS! > > But once the PPP link is established, if I add the route manually or > run the shell script, it works fine thereafter. So the problem is that > the routing table gets updated with the WRONG interface. The FreeBSD > man page for 'route' is unclear about how to specify the interface on > the command line. Any additional advice? > > > > On Tue, 22 Mar 2005 16:17:53 -0600, Chris Tusa at Linisys, LLC > wrote: > > Thanks Again, > > > > Just a quick note on your last reply, don't know whether this will > > make an impact: > > > > > I guess the missing bit is that the timeclock machine needs a special > > > routing table with 192.168.1.234/30 on it's crossed-over ethernet > > > interface and 192.168.1.233 as the default route, allowing data to > > > get back to the rest of the /24 subnet. > > > > The timeclock itself is a proprietary STANDALONE device, not an actual > > machine with an OS. It has its own configuration interface via its LCD > > screen and buttons. It only allows me to add the IP, Netmask & > > Gateway. So I probably can't perform routing table changes to that > > device. > > > > ( http://www.timeclockplus.com/products/hardware/markIII/mark3.aspx ) > > > > > > > When you get it all working it'll start to make sense (if it doesn't > > > already). > > > > I will try the configuration tommorrow and see what happens. Thanks so much. > > > > -- > > Chris Tusa > > linisys@gmail.com > > http://people.linisys.com/ctusa > > > > Buy books from my Half.com inventory: > > http://half.ebay.com/shops/shops.jsp?seller_id=1691584 > > > > > -- > Chris Tusa > linisys@gmail.com > http://people.linisys.com/ctusa > > Buy books from my Half.com inventory: > http://half.ebay.com/shops/shops.jsp?seller_id=1691584 > -- Brian Somers Don't _EVER_ lose your sense of humour !