Subject: Re: Where is the netatalk dir?
To: Frederick Bruckman <fredb@immanent.net>
From: Daniel R. Killoran,Ph.D. <drk@shore.net>
List: netbsd-help
Date: 07/17/2001 19:02:19
Frederick Bruckman wrote:
>On Tue, 17 Jul 2001, Daniel R. Killoran,Ph.D. wrote:
>
>>  >pkg_add netatalk-asun-2.1.3nb4.tgz
>>  >
>>  Ok, I did that (after a long hassle with bad blocks in the 2 Gig 
>>disk) and got:
>>
>>  MacIIvx# pkg_add netatalk-asun-2.1.3nb4.tgz
>
>[snip]
>
>>  Rebooted:
>
>Rebooting isn't going to start netatalk. You need to set up
>/etc/netalk

I didn't find this file mentioned in the docs, and it doesn't exist 
on my system.
Can you point me at some instructions about setting it up?

>and run /usr/pkg/etc/rc.d/netatalk.sh, or arrange to have
>it run as root. You can see which man pages were installed by the
>package with "pkg_info -L netatalk\*". But first, you have to get your
>network configured.
>
>>  (snip)
>>  Starting network.
>>  Hostname: MacIIvx
>>  NIS domainname: shore.net
>
>I think that's a problem, there. You've set up a NIS domainname, but
>there's no NIS server. Usually you just set "hostname" to an FQDN in
>/etc/rc.conf (or /etc/myname), not "domainname".

I did this at the instance of the "walk through" docs on the website 
- it didn't make sense to me either!
What's a "FQDN"?  rc.conf just calls /etc/defaults/rc.conf.


>  > Apparently it "hears" the TCP messages, but doesn't respond to them.
>
>So what do you have in /etc/ifconfig.ae0?

MacIIvx# cat /etc/ifconfig.ae0
inet 192.168.3.1 netmask 255.255.255.0


where 192.168.3.1 is arbitrary, following instructions in the "walk through".
I also put 192.168.3.1 in the TCP/IP control panel as the IP address.

>What does "ifconfig ae0"
>show

MacIIvx#ifconfig ae0
ae0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
         media: Ethernet manual
         inet 192.168.3.1 netmask 0xffffff00 broadcast 192.168.3.255
         inet6 fe80::200:94ff:fe22:1e72%ae0 prefixlen 64 scopeid 0x1

>, and also "netstat -rn".
>

MacIIvx# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
127                127.0.0.1          UGRS        0        0  33228  lo0
127.0.0.1          127.0.0.1          UH          1        0  33228  lo0
192.168.3          link#1             UC          0        0   1500  ae0

XNS:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

ISO:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

X.25:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

AppleTalk:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

Internet6:
Destination                   Gateway                   Flags     Refs     Use
    Mtu  Interface
::/104                        ::1                       UGRS        0        0
  33228  lo0 =>
::/96                         ::1                       UGRS        0        0
  33228  lo0
::1                           ::1                       UH         12        0
  33228  lo0
::127.0.0.0/104               ::1                       UGRS        0        0
  33228  lo0
::224.0.0.0/100               ::1                       UGRS        0        0
  33228  lo0
::255.0.0.0/104               ::1                       UGRS        0        0
  33228  lo0
::ffff:0.0.0.0/96             ::1                       UGRS        0        0
  33228  lo0
2002::/24                     ::1                       UGRS        0        0
  33228  lo0
2002:7f00::/24                ::1                       UGRS        0        0
  33228  lo0
2002:e000::/20                ::1                       UGRS        0        0
  33228  lo0
2002:ff00::/24                ::1                       UGRS        0        0
  33228  lo0
fe80::/10                     ::1                       UGRS        0        0
  33228  lo0
fe80::%ae0/64                 link#1                    UC          0        0
   1500  ae0
fe80::%lo0/64                 fe80::1%lo0               U           0        0
  33228  lo0
fec0::/10                     ::1                       UGRS        0        0
  33228  lo0
ff01::/32                     ::1                       U           0        0
  33228  lo0
ff02::%ae0/32                 link#1                    UC          0        0
   1500  ae0
ff02::%lo0/32                 fe80::1%lo0               UC          0        0
  33228  lo0


and Manuel Bouyer wrote:

>On Tue, Jul 17, 2001 at 08:07:48AM -0400, Daniel R. Killoran,Ph.D. wrote:
>  > [...]
>  >
>  > Apparently it "hears" the TCP messages, but doesn't respond to them.
>
>Did you start the netatalk daemons ?

Here is the relevant part of the startup:

IPv6 mode: host
Building databases...
Starting syslogd.
Checking for core dump...
savecore: no core dump
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Creating runtime link editor directory cache.
Updating motd.
starting local daemons:.
Starting inetd.
Starting cron.
Tue Jul 17 18:35:53 EDT 2001

NetBSD/mac68k (MacIIvx) (tty00)
...


It looks as if I DIDN'T start the netatalk daemons! How does one do so?



Multithanx to you all,

Dan Killoran