Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 4045

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Netrom-Node mini-Howto: Some Details of the AX.25 Utilities</TITLE>
 <LINK HREF="Netrom-Node-4.html" REL=next>
 <LINK HREF="Netrom-Node-2.html" REL=previous>
 <LINK HREF="Netrom-Node.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="Netrom-Node-4.html">Next</A>
<A HREF="Netrom-Node-2.html">Previous</A>
<A HREF="Netrom-Node.html#toc3">Contents</A>
<HR>
<H2><A NAME="s3">3. Some Details of the AX.25 Utilities</A></H2>

<P>Below is a list of all the applications and files that are
needed to set up a working ax.25 system. The Applications are all in
the /usr/sbin/ directory and the Configuration files are in the
/etc/ax25/ directory. Note: Kissattach is used only if you have TNC's
in the Kiss Mode.
<P>
<UL>
<LI> kissattach         Application</LI>
<LI> call                       Application</LI>
<LI> ax25d                      Application</LI>
<LI> ax25d.conf         Configuration file      </LI>
<LI> axspawn                    Application</LI>
<LI> axspawn.conf               Configuration file</LI>
<LI> axports                    Configuration file
</LI>
</UL>
<P>There are several names that a ax25-util user must invent.
Since this paper uses the files of k5di, a listing of those names can
be made.
<P>
<BLOCKQUOTE><CODE>
<PRE>

Name            Call-sign       Alias           Other   

ax0             k5di-9                          ax25 9600 baud
ax1             k5di-10                         ax25 1200 baud
Netrom          k5di-1          #CRUCE          Real Netrom 
netnod          k5di-4          CRUCES          Node node-list
netbbs          k5di-3          LCBBS           BBS  node-list
netdx           k5di-5          LCDX            DX-Cluster
</PRE>
</CODE></BLOCKQUOTE>

It's a good idea to make a list like this on paper before you
start to change things. It is easy to put the wrong name in a control
file. 
<P>Kissattach is an application that connects the kernel
to the TNC, sets the tcp/ip address up, sets the speed of the
connection, and is given the serial port to use.
<P>Axports is a file that defines the name of the ax.25 ports
and tells kissattach what call-sign, baud-rate and window size to use.
Below is an example of a 2 TNC system.
<P>
<BLOCKQUOTE><CODE>
<PRE>
# /etc/ax25/axports
# Be very careful with the speed setting. This is the speed in
# bits/second that data passes from the computer to the TNC, and has
# nothing to do with the radio baud rate! 
#
# The format of this file is:
#
# name call-sign speed paclen window description
#
ax0     K5DI-9          9600    255     3       445.1 (9600 bps)
ax1     K5DI-10         9600    255     1       145.07 (1200 bps)
</PRE>
</CODE></BLOCKQUOTE>
<P>AX25D is the application that reads the ax25d.conf
Configuration file and answers calls made to the system. Below is a
sample ax25d.conf that has no Netrom defined. In fact all it will do
is answer calls to k5di-9 and k5di-10. When it answers it starts the
node application and logs the caller in.  
<P>
<BLOCKQUOTE><CODE>
<PRE>
# /etc/ax25/ax25d.conf
#
#  AX25D Configuration File.
#
# AX.25 ports begin with a '['.
#
[k5di-4 VIA ax0]
default  * *    *   *   *    0 - root   /usr/sbin/node  node 
[k5di-4 VIA ax1]
default  * *    *   *   *     0 - root  /usr/sbin/node  node 
#
</PRE>
</CODE></BLOCKQUOTE>

The next step is to get ax25d to answer a call to the alias
CRUCES as well as the call-sign. This is easy to do and is shown
below:
<BLOCKQUOTE><CODE>
<PRE>

# /etc/ax25/ax25d.conf
#
#  AX25D Configuration File.
#
# AX.25 ports begin with a '['.
#
[CRUCES VIA ax0]
default  * *    *   *   *    0 - root   /usr/sbin/node  node
[k5di-4 VIA ax0]
default  * *    *   *   *    0 - root   /usr/sbin/node  node 
[CRUCES VIA ax1]
default  * *    *   *   *    0 - root   /usr/sbin/node  node
[k5di-4 VIA ax1]
default  * *    *   *   *     0 - root  /usr/sbin/node  node 
#
</PRE>
</CODE></BLOCKQUOTE>
<P>If you have trouble, as root kill ax25d if it is running and
then at the prompt type ax25d &amp;. As ax25d loads the ax25d.conf file
it will print out any errors it finds. This print out is very accurate
and tells you which row in the file is wrong. 
<P>A connect from any adjacent node to k5di-4 or CRUCES will
connect to the k5di node. But Netrom is not transmitting a node
listing for CRUCES or k5di-4. This is done by changing some Netrom
Configuration files.
<P>
<P>
<HR>
<A HREF="Netrom-Node-4.html">Next</A>
<A HREF="Netrom-Node-2.html">Previous</A>
<A HREF="Netrom-Node.html#toc3">Contents</A>
</BODY>
</HTML>