From owner-freebsd-questions Sun Oct 5 22:55:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA06040 for questions-outgoing; Sun, 5 Oct 1997 22:55:14 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from citytel1.citytel.net (root@citytel1.citytel.net [204.244.99.66]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA06028 for ; Sun, 5 Oct 1997 22:55:10 -0700 (PDT) (envelope-from kwoody@citytel.net) Received: from mybsd.net (citytelprct48.citytel.net [204.244.99.124]) by citytel1.citytel.net (8.8.4/8.7.3) with SMTP id XAA07152; Sun, 5 Oct 1997 23:01:49 -0700 (PDT) Date: Sun, 5 Oct 1997 22:28:09 -0700 (PDT) From: Kwoody X-Sender: kwoody@mybsd.net To: nick@imperial.org cc: questions@FreeBSD.ORG Subject: Re: help In-Reply-To: <199710052139.QAA02614@imperial.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 5 Oct 1997 nick@imperial.org wrote: > Here is my problem... I have my modem connected to my FreeBSD machine, and i have a sparc connected to my fBSD box over the ethernet. What would i have to do so that the sparc can go over the ethernet straight to the internet if it wanted, for use of ssh, etc.. instead of having to telnet to the freebsd box and then out onto the net? I have a small network consisting of a Sun 3/60, a 95 box and my 2.1.7 Fbsd machine. I installed a newer version of PPP so it supports aliasing. I sometimes use my Sun to access the internet. Only thing I have to do is telnet to my bsd machine from the sun, type ppp -alias -auto then exit the telnet session. Once the connection is up I can telnet and ftp from the sun quite nicely. apocalypse# netstat -rn Routing tables Destination Gateway Flags Refcnt Use Interface 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.0.0 192.168.0.3 U 1 447 le0 default 192.168.0.2 UG 0 340 le0 The above is the routing table from the sun...I mostly guessed on how to set it up but it seems to work ok. Routing table on my FreeBSD machine when the connection is up: bash# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 2 334 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 127.0.0.1 127.0.0.1 UH 0 494 lo0 192.168 link#1 UC 0 0 192.168.0.1 0:c0:f0:b:8f:e4 UHLW 0 3056 ed0 816 192.168.0.2 0:c0:f0:b:8f:9b UHLW 1 18 lo0 192.168.0.3 8:0:20:6:99:e9 UHLW 4 15183 ed0 871 204.244.99.76 204.244.99.124 UH 0 0 tun0 .0.3 is my sun3 machine, .0.2 is my Freebsd machine. .0.1 is my Win95 box. Everything seems to work ok. I dont know if this is the right way to do it or not but this is a way I managed to get all the boxes on my little lan working and the BSD machine to route packets for them. Hope this might help.... kwoody@citytel.net