Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2001 16:18:27 -0400
From:      dochawk@psu.edu
To:        y3k@gti.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: safely briding from internet to 'localnet' 
Message-ID:  <200105242018.f4OKIRL05144@fac13.ds.psu.edu>
In-Reply-To: Your message of "Thu, 24 May 2001 19:22:43 GMT." <20010524192243.9A442145993@apollo.gti.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105242018.f4OKIRL05144>