Subject: Re: How to access Internet from a LAN?
To: LiaoBaiping <liaobp@unipulse.co.jp>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 01/15/2001 09:44:03
On Mon, Jan 15, 2001 at 09:49:14AM +0900, LiaoBaiping wrote:
> Hi,
> 
> >No, you already have a router on your LAN which does NAT for you (as win98
> >works).
> >If win98 gets its IP addr from DHCP, then do the same with NetBSD:
> >just set dhclient=YES in /etc/rc.conf and reboot. dhclient will
> automatically
> >get an IP address, the default gateway and the name server from the dhcp
> >server.
> 
>     After I do as above, When I ping to the internal IP Address for example
> 192.168.1.164, I receive the message like "ping: send to: No route to host
> ",when Iuse ifconfig I found the IP address is not the same as in Win98, so

What is it ?
It may be normal it's not the same as Win98, if dhcp distribute dynamic
addresses.
> I change to the same as in Win98 for example 192.168.1.50, and then I can
> ping to 192.168.1.164 , but still can not access internet, What is wrong

You're missing a default route (set in /etc/mygate).
Bu dhcp should give you one.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--