Subject: Unable to get network up
To: macbsd <port-mac68k@NetBSD.ORG>
From: None <cruller@unicom.net>
List: port-mac68k
Date: 06/17/1998 11:02:18
Please take a look & see if you notice any mistakes which would hose a
local e-net network.  My guess is the card isn't well behaved, however,
it works on the mac side fine.

I am trying to get a IIsi running as an IPNat gateway.  The silk screen
on the ethernet card says its a MacCON+ (which is supported) however
NetBSD reports something else(see dmesg).  

The IIsi has an address of 192.168.0.1 . and anohter mac on the network
has an address of 192.168.0.2 both with a class C subnet mask
(255.255.255.0).

When I ping 192.168.0.1 I get: 

"ping: sendto: No route to host" 

however pinging localhost works fine.

When I bring ppp up, I can ping & ftp the real world.  I just seems the
local net doesn't work.

Here are the relevant files, netstat -i, & dmesg.  The dmesg command
doesn't print out all the messages from the original boot mesg.  One
line not included in dmesg that does show up at boot says:

configuring network interfaces: ae0.
#: bad value

Here are the rest.
-------------------------
iisi# dmesg
-------------------------
NetBSD 1.3.2 (GENERIC) #0: Sun May 17 00:23:35 CDT 1998
    scottr@beech:/usr/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh IIsi  (68030)
cpu: delay factor 77
real mem = 9109504
avail mem = 5214208
using 136 buffers containing 557056 bytes of memory
mrg: 'Mac IIsi class ROMs' ROM glue, tracing off, debug off, silent
traps
mrg: I/O map kludge for ROMs that use hardware addresses directly.
adb: bus subsystem
\^H\^Hadb: extended keyboard at 2
adb: 100 dpi mouse at 3
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
asc0 at obio0: Apple Sound Chip
intvid0 at obio0: Internal Video
intvid0: 640 x 480, monochrome
grf0 at intvid0
ite0 at grf0 (minimal console)
ncrscsi0 at obio0
scsibus0 at ncrscsi0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, LIGHTNING 540S, 241E> SCSI2
0/direct fixed
sd0: 525MB, 3658 cyl, 3 head, 98 sec, 512 bytes/sect x 1075649 sectors
zsc0 at obio0 chip type 0 
zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
zstty0 at zsc0 channel 0
zsc0 channel 1: d_speed   9600 DCD clk 0 CTS clk 0
zstty1 at zsc0 channel 1
nubus0 at mainbus0
ae0 at nubus0 slot 9: MacNIC II/E, 16KB memory
ae0: Ethernet address 00:00:94:01:b2:84
fpu0 at mainbus0 (emulator)
boot device: sd0
root on sd0a dumps on sd0b
PRAM: 0x35878e01, macos_boottime: 0x35878ded.
root file system type: ffs
IP Filter: initialized.  Default = pass all, Logging = disabled

----------------------------
iisi# netstat -i
----------------------------

Name  Mtu   Network       Address              Ipkts Ierrs    Opkts
Oerrs  Coll
ae0*  1500  <Link>        00:00:94:01:b2:84        0     0        0    
0     0
ppp0* 1500  <Link>                                 0     0        0    
0     0
ppp1* 1500  <Link>                                 0     0        0    
0     0
lo0   32976 <Link>                                62     0       62    
0     0
lo0   32976 your-net      localhost               62     0       62    
0     0
sl0*  296   <Link>                                 0     0        0    
0     0

----------------------------
iisi# netstat -nr
----------------------------

Internet:
Destination			Gateway			Flags		Refs		Use		Mtu		Interface
127.0.0.1			127.0.0.1		UH			1			24		-		lo0

AppleTalk:
Destination			Gateway			Flags		Refs		Use		Mtu		Interface

----------------------------
/etc/rc.conf
----------------------------

#	$NetBSD: rc.conf,v 1.22.2.3 1997/11/28 19:53:22 mellon 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="iisi"				# if blank, use /etc/myname
domainname="unicom.net"				# if blank, use /etc/defaultdomain
defaultroute=""					# if blank, use /etc/mygate

# Filesystems (besides /usr and /var) to mount early in boot-up
critical_filesystems=""

# Set this to YES if you have purposefully setup no swap partitions and
# don't want to be warned about it
no_swap=""

# One-time actions and programs on boot-up.
lkm=YES						# run /etc/rc.lkm
savecore=YES		savecore_flags=""
update_motd=YES					# updates /etc/motd

# Networking startup
ipfilter=YES					# uses /etc/ipf.conf
ipmon=NO		ipmon_flags="-sn"	# syslog ipfilter messages
auto_ifconfig=YES				# config all avail. interfaces
net_interfaces=""				# used only if above is NO
flushroutes=YES					# flush routes in netstart
ntpdate=NO		ntpdate_hosts=""	# blank: hosts in /etc/ntp.conf
ppp_peers=""					# /etc/ppp/peers to call

# Daemons required by other daemons
inetd=YES		inetd_flags="-l"	# -l logs libwrap
portmap=YES

# Commonly used daemons
update=YES		update_flags="30"
syslogd=YES		syslogd_flags=""
named=NO		named_flags=""
timed=NO		timed_flags=""
xntpd=NO		xntpd_flags="-p /var/run/xntpd.pid"
sendmail=NO		sendmail_flags="-bd -q30m"
lpd=NO			lpd_flags=""

# Routing daemons
routed=NO		routed_flags="-q"
gated=NO		gated_flags=""
mrouted=NO		mrouted_flags=""

# Daemons used to boot other hosts over a network
rarpd=NO		rarpd_flags="-a"
bootparamd=NO		bootparamd_flags=""
dhcpd=NO		dhcpd_flags=""
rbootd=NO		rbootd_flags=""
mopd=NO			mopd_flags="-a"

# X11 daemons:
xfs=NO			xfs_flags=""		# X11 font server
xdm=NO			xdm_flags=""		# x11 display manager

# YP (NIS) daemons
ypbind=NO		ypbind_flags=""
ypserv=NO		ypserv_flags="-d"
yppasswdd=NO		yppasswdd_flags=""

# NFS daemons and parameters
nfs_client=NO					# enable client daemons
			nfsiod_flags="-n 4"
nfs_server=NO					# enable server daemons
			mountd_flags=""
			nfsd_flags="-tun 4"
lockd=NO		lockd_flags=""
statd=NO		statd_flags=""
amd=NO			amd_flags="-l syslog -x error,noinfo,nostats"
			amd_dir=/amd			# mount dir
			amd_master=/etc/amd/master	# master map

# Other daemons
apmd=NO			apmd_flags=""
rwhod=NO
kerberos=NO

------------------------------
/etc/resolv.conf
------------------------------

domain unicom.net
nameserver 204.252.102.2
nameserver 204.252.102.3
lookup file bind
------------------------------
resolv.conf.down (from ppp kit) Think its in /etc/ or /etc/ppp/
------------------------------

domain unicom.net
lookup file

------------------------------
/etc/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 localhost.unicom.net
192.168.0.1 iisi iisi.unicom.net
192.168.0.2 cartman cartman.unicom.net

#
# 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

------------------------------
/etc/ifconfig.ae0
------------------------------

inet 192.168.0.1 netmask 255.255.255.0

------------------------------
iisi# ifconfig ae0
------------------------------
ae0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> MTU 1500
	media: manual
	inet 0.0.0.0 netmask 0x0