Subject: Re: ethernet setup
To: Armen Babikyan <port-mac68k@NetBSD.ORG>
From: shascal <shascal@siue.edu>
List: port-mac68k
Date: 09/29/1997 11:47:49
Assuming your /etc/rc.conf, /etc/hosts, & /etc/resolv.conf are configured 
properly for your site, you just need to configure your ethernet 
interface. Your ethernet interface will depend on what kind of ethernet 
card you have. I have a Quadra 650, which uses the onboard sonic ethernet 
adapter. When NetBSD boots up, the system information that scrolls past 
includes the line...

sn0 at obio0 address 08:00:07:46:01:21

...which tells me how the system is seeing my ethernet card. The address 
part is my unique ethernet address. To find out more about the various 
ethernet interfaces NetBSD supports, type 'apropos ethernet' at the 
command prompt to get a list of man pages to read. To configure the card 
with an IP address, I type...

ifconfig sn0 130.38.103.88

..., which I have since tacked on to the end of my /etc/netstart file to 
make sure it happens automatically at boot. You may have to be root to do 
this successfully, but now you should be able to send and receive TCP 
packets. Try pinging a known machine. If that does not work, your system 
probably isn't configured correctly elsewhere. Here are my /etc/rc.conf, 
/etc/hosts, & /etc/resolv.conf files in case you need any additional 
assistance.

rc.conf--------------------------------------------------------------------
---------
#       $NetBSD: rc.conf,v 1.18 1997/09/07 19:13:50 cjs Exp $
#
# see rc.conf(5) for more information.

# uncomment this if you want to use local paths in rc
#export PATH=$PATH:/usr/local/sbin:/usr/local/bin

# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.

# If this is not set to YES, the system will drop into single-user mode.
rc_configured=YES

# Basic network configuration
hostname="p1102215"                                  # if blank, use 
/etc/myname
domainname="mdc.com"                                 # if blank, use 
/etc/domainname
defaultroute="130.38.10.1"                           # if blank, use 
/etc/mygate

# One-time actions and programs on boot-up.
......and so on.


hosts----------------------------------------------------------------------
---------
#       $NetBSD: hosts,v 1.4 1997/01/09 05:33:14 mikel Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# It is used only for "ifconfig" and other operations
# before the nameserver is started.
#
#
127.0.0.1               localhost
#
130.38.103.88           p1102215        p1102215.mdc.com
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0      10.255.255.255
# 172.16.0.0    172.31.255.255
# 192.168.0.0   192.168.255.255


resolv.conf----------------------------------------------------------------
---------
domain mdc.com
nameserver 130.38.10.129        #TINES.MDC.COM
nameserver 130.38.206.2         #SLNSB32.MDC.COM
nameserver 130.38.206.34        #SLNSB101.MDC.COM
nameserver 130.38.206.66        #SLNSB306.MDC.COM



....Hope this solves your problem!

-Steven Hascall
shascal@siue.edu
shascall@vnet.ibm.com