Subject: Re: Problems configuring a LAN
To: Jaume Samperiz <bamokato@intercom.es>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 05/12/2000 17:27:46
On Thu, May 11, 2000 at 11:45:20AM +0200, Jaume Samperiz wrote:
> Hi all,
> 
> First of all excuse my english.
> 
> I' m trying to learn TCP/IP with Wright & Stevens "TCP/IP Illustrated 
> Volume 2" .So I installed NetBsd 1.4.2. But I can make my little LAN work 
> with the NetBsd.I have two computers:
> 
> 1)  W95/NetBsd 1.4.2 with ne2000 card. Address 10.0.0.1
> 2) W95/NT 4.0/Linux with ne2000 card. Address 10.0.0.2
> 
> When I installed NetBsd I didn't configure the LAN so I have to do manually.
> 
> My problems with machine 10.0.0.1are:
> 
> 1) When NetBsd boots it don't configure the ne2000 but
>      auto_ifconfig= YES in rc.conf.

Do you have a 'ifconfig.ne1' file in /etc ?

> 
> 2) Trying to configure the ne1 interface with things like:
> 
>      *** ifconfig ne1 inet 10.0.0.1 arp netmask 255.255.255.0

You don't need the arp keyword.

> 
>      *** route -nv add -host 10.0.0.2 10.0.0.1

You don't need this. The kernel will figure it out based on netmask.

> 
>      don't work. Netstat -rn shows things like:
> 
>     *** 10/24          link#1           UC      0   ne1
>     *** 10.0.0.1      00:40:33:35   UHL    0   lo0
>     *** 10.0.0.2      link#1            UHRL      ne1
> 
>        what is link#1?

You first network. If you had a second NIC it would be link#2, etc ...

> 
> 3) Should I change ?:
>       routed=NO
>        gated=NO      in    rc.conf

For a local network, no. Usually these (only one of them) are only needed on
routers which need to talk with other routers.

> 
> 4) Where can i found more information about the output of netstat ?

'man netstat'.

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