Date: Fri, 25 May 2001 9:22:04 GMT From: y3k@gti.net To: dochawk@psu.edu Cc: freebsd-questions@freebsd.org Subject: Re: safely briding from internet to 'localnet' Message-ID: <20010525092204.B78161459E9@apollo.gti.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010525092204.B78161459E9>
