From owner-freebsd-questions Fri May 25 2:22: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from apollo.gti.net (apollo.gti.net [199.171.27.7]) by hub.freebsd.org (Postfix) with ESMTP id 8AD2137B422 for ; Fri, 25 May 2001 02:22:05 -0700 (PDT) (envelope-from y3k@gti.net) Received: from apollo.gti.net (apollo.gti.net [199.171.27.7]) by apollo.gti.net (mail) with ESMTP id B78161459E9; Fri, 25 May 2001 05:22:04 -0400 (EDT) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary To: dochawk@psu.edu From: y3k@gti.net Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Reply-To: y3k@gti.net Date: Fri, 25 May 2001 9:22:04 GMT X-Mailer: EMUmail 2.70 Subject: Re: safely briding from internet to 'localnet' Message-Id: <20010525092204.B78161459E9@apollo.gti.net> 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 On Thu, 24 May 2001 16:18:27 -0400 dochawk@psu.edu wrote: > 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? > Unfortunately not. I found someone who knows stuff about linux. He said to try: route add default gw 192.168.0.1 or route add default gw eth0 -mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message