• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

A/UX note: setting the AppleTalk network interface persistently without a PRAM battery

cheesestraws

Well-known member
This thread is to save people from the 'not reading the right man pages' hole that my afternoon fell into.

On A/UX, by default, AppleTalk works like it does on MacOS: it fishes the network interface to use out of PRAM. If you don't have a PRAM battery installed, it will therefore default to LocalTalk.

Fortunately, there's an appletalk command that will let you munge the AppleTalk state. The man page for this is quite illuminating, but the short version is that you can put the following commands at the end of your rc script (or wherever else you put this stuff: I'd suggest putting it wherever you set your default route. I have an rc.local for these purposes). The commands you need are:

Code:
/etc/appletalk -d
/etc/appletalk -i ethertalk0 -b ao0 -u

The first command takes AppleTalk down on its old interface, which is whatever the empty PRAM has invented. The second brings up EtherTalk. The name after the -i switch is the Mac-side interface name; see the man page for more details, The name after the -b switch is the UNIX name of the Ethernet interface you want to use with EtherTalk. The -u switch just brings the interface up.
 
Top