Subject: Re: sharing a cable connection
To: None <razbitum@yahoo.com>
From: Gerald C. Simmons <simmons@darykon.cet.com>
List: netbsd-help
Date: 07/26/2001 09:41:59
On Thu, 26 Jul 2001 Louis wrote:
> 
> I get a diffrent result on sparky (the sparc running
> NetBSD at 192.168.0.3).
> 
> sparky: {2} ping www.yahoo.com
> ping: Cannot resolve "www.yahoo.com" (Host name lookup
> failure)
> 
> for the config files :
> 
> sparky# cat /etc/hosts
> [SNIP]
> ::1                     localhost
> 127.0.0.1               localhost
> 192.168.0.1             equinoxe
> 192.168.0.2             alis
> 192.168.0.3             sparky
> [SNIP]
> 
> sparky# cat /etc/mygate
> equinoxe
> 
> the thing is I m not sure what I should have in 
> the /etc/resolv.conf file

I have:
domain darykon.cet.com
nameserver 206.96.91.1

What does your hosts file look like??   When the system can't resolv via DNS, it checks hosts.

> 
> If I try to ping my ISP's DNS from sparky, I get a
> 'ping: sendto: No route to host'

I assume 'sparky' is the machine connected to the DSL Modem???  Via Ethernet??  What interface??
Do you have an additional Ethernet card for connecting to your subnet??  What interface???

Have you first configured ipf via ipf.conf with:

pass in from any to any
pass out from any to any

(This leaves the system WIDE OPEN, but you can deal with IPF and Firewalling afterwords.)

> 
> sparky# route show
> Routing tables
> 
> Internet:
> Destination      Gateway            Flags 
> loopback         127.0.0.1          UG     
> localhost        127.0.0.1          UH     
> 192.168.0.0      link#1             U      
> equinoxe         xx:xx:xx:xx:xx:xx  UH