Howto set ax25 Parameters

Howto set ax25 parameters on a tnc in kissmode.

  /usr/local/sbin/kissattach /dev/ttyUSB0 1 44.137.31.85 > /tmp/ax25-config.tmp
  awk '/device/ { print $7 }' /tmp/ax25-config.tmp > /tmp/ax25-config-tmp
  Device=ax0 


# Check for Device
  if [ -d /proc/sys/net/ax25/$Device ]
    then cd /proc/sys/net/ax25/$Device/
       /etc/ax25/ax25parms
       echo -e "Port 1 attached to $Device"
    else echo -e "** Error setting $Device parms*"
  fi
         echo -e -n "$"

Below the file ax25parms. (chmod 755)

#! /bin/bash

# Parms for a USER Port
echo 5000    > t1_timeout               # (Frack)
echo 500     > t2_timeout               # (RESPtime)
echo 300000  > t3_timeout               # (Check)
echo 900000  > idle_timeout             # Idle Timer
echo 5       > standard_window_size     # Outstanding Frames
echo 8       > maximum_retry_count      # Max Retrys
echo 256     > maximum_packet_length    # Paclen
echo 0       > ax25_default_mode
echo 0       > ip_default_mode
echo 0       > backoff_type
echo 2       > connect_mode
#echo 180000 > dama_slave_timeout
echo 32      > extended_window_size
echo 0       > protocol

 

ax25d.conf

ax25d.conf example file

# /etc/ax25/ax25d.conf
#
# ax25d Configuration File.
#
# AX.25 Ports begin with a '['.
#
[pi1lap-15 via ax0]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[lapuro via ax0]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[pi1lap-15 via ax1]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[lapuro via ax1]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[pi1lap-15 via ax2]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[lapuro via ax2]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[pi1lap-15 via ax3]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[lapuro via ax3]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[pi1lap-15 via ax4]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[lapuro via ax4]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[pi1lap-15 via ax5]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[lapuro via ax5]
parameters      7   4   *  *  *  *  *
NOCALL          *   *   *  *  *  *  L
default         7   2   2  60  300  5  -   root /usr/local/sbin/uronode uronode
#
[PI1LAP-7 via ax0]
NOCALL * * * * * * L
default    * * * * * * -    root /usr/local/sbin/fpacnode fpacnode -q %S
#
[LAPPAC via ax0]
NOCALL * * * * * * L
default    * * * * * * -    root /usr/local/sbin/fpacnode fpacnode -q %S
#
[PI1LAP-7 via ax1]
NOCALL * * * * * * L
default    * * * * * * -    root /usr/local/sbin/fpacnode fpacnode -q %S
#
[LAPPAC via ax1]
NOCALL * * * * * * L
default    * * * * * * -    root /usr/local/sbin/fpacnode fpacnode -q %S
#
[PI1LAP-4 via ax0]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[LAPDX via ax0]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[PI1LAP-4 via ax1]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[LAPDX via ax1]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[PI1LAP-4 via ax2]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[LAPDX via ax2]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[PI1LAP-4 via ax3]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
[LAPDX via ax3]
parameters    2 1   6  900 *  15  0
NOCALL *  *  *  *  *  *  L
default  * * * * * *  - sysop /spider/src/client client %s ax25
#
#
# NET/ROM Ports begin with a '<'.
#
#
<nr2>
parameters 1  10 * * * * *
NOCALL     *  *  * * * * L
default    *  *  * * * * - sysop /spider/src/client client %s ax25
#
<nr0>
parameters 1  10 * * * 3 *
NOCALL     *  *  *  *  *  *  L
default    *  *  *  *  *  *  0  root  /usr/local/sbin/uronode  uronode
#
<nr1>
default  * * * * * *  * root  /usr/local/sbin/xfbbC -c  -i %S
#
<nr3>
parameters      1       10      *       *       *       *       *
NOCALL          *       *       *       *       *       *       L
default    * * * * * * -    root /usr/local/sbin/fpacnode fpacnode -q %S
#
{PI1LAP-15 via rose0}
default  * * * * * *   0    root /usr/local/sbin/uronode uronode