Subject: Re: Unable to get network up
To: None <cruller@unicom.net, port-mac68k@NetBSD.ORG>
From: Armen Babikyan <armenb@moof.ai.mit.edu>
List: port-mac68k
Date: 06/17/1998 19:07:27
>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"
>

since your IIsi is the network router, you're getting that message when
your other mac is accessing your IIsi? your "other mac" is running another
unix? try "route add default ae0" or your other mac.

if you really meant you are pinging from your IIsi to 192.168.0.2, and that
returns that error, it means that your ipnat rules are not set up to
properly send 192.168.0.* packets over ae0. what's that file look like?


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

if ipnat is running, there should be another line,  like "ae0 1500
192.168.0 iisi and the rest of the stuff. is ipnat actually running?

>
>------------------------------
>/etc/ifconfig.ae0
>------------------------------
>
>inet 192.168.0.1 netmask 255.255.255.0
>

for some reason, i have trouble using the "netmask" command. replace
"netmask 255.255.255.0" with "broadcast 192.168.0.255". it seems to be able
to figure out the netmask from there. don't put both, i had no luck with
that too :(

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

heh, it shouldn't be saying that. try changing the broadcast and netmask thing.

have you had any luck accessing the iisi from the other mac? you should
figure that out before trying to ipnat.

good luck,

  - a