From: Hoc N. <ho...@qu...> - 2002-06-27 00:33:14
|
> AFAIK it's not a good idea to connect two interfaces to the > same segment > when a mechanisms between those two interfaces (atalkd) wants > to route, as > all the ZIP and RTMP stuff will break in such situations. You > can try to > avoid routing but I think this can lead to other problems > (now you can have > two devices with identical AppleTalk addresses connected to > each interface > --> to which one you should route the packets?) > ... > Thomas Thomas, Perhaps you can help me with the following question. I have a machine called QNTM610041 with 2 network cards. My goal is to configure atalkd and afpd to provide AFP services over both DDP and IP for Mac users who connect to the server. I will not configure it as an AppleTalk router. Case A: both network cards are connected to the same subnet. (This may sound silly but actually this configuration is intended for failover or loadbalancing mode). My atalkd.conf configures one logical interface only. This logical interface is called bond0. The device driver automatically maps it to eth0 or eth1. (In failover mode, if eth0 fails, the driver maps bond0 to eth1.) bond0 -dontroute This works. Case B: each network card is connected to a different subnet. My initial atalkd.conf: eth0 -dontroute eth1 -dontroute ifconfig showed: eth0: IP = 10.33.1.39, AppleTalk: 65280.160 eth1: IP = 192.168.48.190 AppleTalk: 233.188 My afpd.conf: - -ddp -tcp -guestname guest -uamlist .... After running atalkd and afpd: Final atalkd.conf: eth0 -dontroute -phase 2 -net 0-65534 -addr 65280.42 eth1 -dontroute -phase 2 -net 233 -addr 233.71 -zone "Zone 1 QA" -zone "Q" syslog messages: <6> Jun 27 16:25:49 syslogd: restart <5> Jun 27 16:25:49 syslogd: klogd startup succeeded <6> Jun 27 16:25:50 kernel: Kernel logging (proc) started. <6> Jun 27 16:26:08 atalkd[16994]: restart (1.5.3.1) <6> Jun 27 16:26:09 atalkd[16994]: zip_getnetinfo for eth0 <6> Jun 27 16:26:28 last message repeated 2 times <6> Jun 27 16:26:38 atalkd[16994]: config for no router <6> Jun 27 16:26:40 atalkd[16994]: zip_getnetinfo for eth1 <6> Jun 27 16:26:40 atalkd[16994]: zip_getnetinfo for eth1 <7> Jun 27 16:26:40 atalkd[16994]: zip gnireply from 233.236 (eth1 212) <6> Jun 27 16:26:41 atalkd[16994]: zip_packet configured eth1 from 233.236 <6> Jun 27 16:26:42 atalkd[16994]: rtmp_packet gateway 233.236 up <6> Jun 27 16:26:50 atalkd[16994]: rtmp_packet gateway 233.194 up <6> Jun 27 16:26:50 atalkd[16994]: rtmp_packet gateway 233.139 up <6> Jun 27 16:27:08 atalkd[16994]: ready 0/0/0 <6> Jun 27 16:27:32 afpd: afp_startup_hook: running /etc/netatalk/afpd.hook <6> Jun 27 16:27:38 afpd[17272]: QNTM610041:AFPServer@* started on 233.71:128 (1.5.3.1) <6> Jun 27 16:27:38 afpd[17272]: ASIP started on 10.33.1.39:548(2) (1.5.3.1) <6> Jun 27 16:27:38 afpd[17272]: uam: loading (/etc/atalk/uams/uams_guest.so) <6> Jun 27 16:27:38 afpd[17272]: uam: uams_guest.so loaded <6> Jun 27 16:27:38 afpd[17272]: uam: loading (/etc/atalk/uams/uams_clrtxt.so) <6> Jun 27 16:27:38 afpd[17272]: uam: uams_clrtxt.so loaded <6> Jun 27 16:27:38 afpd[17272]: uam: "Cleartxt Passwrd" available <6> Jun 27 16:27:38 afpd[17272]: uam: "No User Authent" available <6> Jun 27 16:28:18 atalkd[16994]: as_timer gateway 233.139 down <6> Jun 27 16:28:18 atalkd[16994]: rtmp_free: 233-233 <6> Jun 27 16:28:20 atalkd[16994]: rtmp_packet gateway 233.139 up <6> Jun 27 16:29:40 atalkd[16994]: rtmp_packet bad phase 1 version <6> Jun 27 16:29:48 atalkd[16994]: as_timer gateway 233.139 down <6> Jun 27 16:29:48 atalkd[16994]: rtmp_free: 233-233 <6> Jun 27 16:30:00 atalkd[16994]: rtmp_packet gateway 233.139 up <6> Jun 27 16:32:40 atalkd[16994]: rtmp_packet bad phase 1 version <6> Jun 27 16:32:48 atalkd[16994]: as_timer gateway 233.194 down <6> Jun 27 16:32:48 atalkd[16994]: rtmp_free: 233-233 <6> Jun 27 16:32:50 atalkd[16994]: rtmp_packet gateway 233.194 up <6> Jun 27 16:33:11 atalkd[16994]: rtmp_packet bad phase 1 version <6> Jun 27 16:34:20 atalkd[16994]: rtmp_packet bad phase 1 version <6> Jun 27 16:34:28 atalkd[16994]: as_timer gateway 233.194 down <6> Jun 27 16:34:28 atalkd[16994]: rtmp_free: 233-233 <6> Jun 27 16:34:30 atalkd[16994]: rtmp_packet gateway 233.194 up <6> Jun 27 16:34:41 atalkd[16994]: rtmp_packet bad phase 1 version <6> Jun 27 16:35:50 atalkd[16994]: rtmp_packet bad phase 1 version <6> Jun 27 16:35:58 atalkd[16994]: as_timer gateway 233.194 down .... tons of messages such as gateway up and down, rtmp free,etc I then tried to connect my Mac OSX client to either subnet. In both cases the server name did not appear in the Connect dialog. The syslog message said AFP over DDP was started on 233.188, port 128. This means the servername would appear in the Connect dialog in the AppleTalk menu if my OSX client was connected to the same net 233. However, the "serverinfo PPC" program could see the name QNTM610041 when my OSX client was connected to the same net 233. But when I clicked on the name, I got the following message: Can't create OTAddress from string "QNTM610041:AFPServer@Zone 1 QA"! Error = -3162 Back to the syslog messages: --------------------------- Why were there lots of rtmp and as_timer messages? Is the router aging algorithm flawed? What is the significant of "rtmp_packet bad phase 1 version"? What should I do configure atalkd correctly and get rid of all these rtmp and as_timer messages? Thanks a lot for your help. Hoc |