From owner-freebsd-questions Thu May 24 13:18:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from fac13.ds.psu.edu (fac13.ds.psu.edu [146.186.61.98]) by hub.freebsd.org (Postfix) with ESMTP id E543037B422 for ; Thu, 24 May 2001 13:18:30 -0700 (PDT) (envelope-from hawk@fac13.ds.psu.edu) Received: from fac13.ds.psu.edu (localhost [127.0.0.1]) by fac13.ds.psu.edu (8.11.3/8.11.3) with ESMTP id f4OKIRL05144; Thu, 24 May 2001 16:18:27 -0400 (EDT) (envelope-from hawk@fac13.ds.psu.edu) Message-Id: <200105242018.f4OKIRL05144@fac13.ds.psu.edu> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: y3k@gti.net Cc: freebsd-questions@freebsd.org Subject: Re: safely briding from internet to 'localnet' In-Reply-To: Your message of "Thu, 24 May 2001 19:22:43 GMT." <20010524192243.9A442145993@apollo.gti.net> From: dochawk@psu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 24 May 2001 16:18:27 -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG michael maintained > On Thu, 24 May 2001 15:01:03 -0400 dochawk@psu.edu wrote: > > It takes about a minute, and comes back with > > > > default: Host name lookup failure > > strange. seems like some kinda dns thing. try 'route -n add default 192.168.0.1' fac13:~# route add -n default 192.168.0.1 SIOCADDRT: No such device fac13:~# route add Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported fac13:~# route -vF add -net 192.168.0.1 gw eth0 eth0: Unknown host > or something. or put 192.168.0.1 in /etc/hosts on linux. I put a bare 192.168.0.1 in /etc/hosts, and now I get Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 default 0.0.0.0 UG 0 0 0 eth0 does this get me anywwhere? > > Maybe my freebsd isn't playing gateway like it should be? how can I > > check that? > I dont really know how to check that. You definately need to get a default > route set up in linux for any of that stuff to work. ok, next? :) thanks hawk -- Prof. Richard E. Hawkins, Esq. /"\ ASCII ribbon campaign dochawk@psu.edu Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of X and postings Penn State until it pays my retainer. / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message