下一页 上一页 目录

3. AX.25 工具的详细信息

以下是设置一个可工作的 ax.25 系统所需的所有应用程序和文件的列表。应用程序都位于 /usr/sbin/ 目录中,配置文件都位于 /etc/ax25/ 目录中。注意:Kissattach 仅在您的 TNC 处于 Kiss 模式时使用。

ax25-util 用户必须创建几个名称。由于本文档使用了 k5di 的文件,因此可以列出这些名称。

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
在您开始更改任何内容之前,最好在纸上列出这样一个列表。在控制文件中放入错误的名称很容易。

Kissattach 是一个应用程序,它将内核连接到 TNC,设置 tcp/ip 地址,设置连接速度,并指定要使用的串口。

Axports 是一个文件,它定义了 ax.25 端口的名称,并告诉 kissattach 要使用的呼号、波特率和窗口大小。以下是一个 2 TNC 系统的示例。

# /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)

AX25D 是读取 ax25d.conf 配置文件的应用程序,并应答对系统发起的呼叫。以下是一个示例 ax25d.conf,其中没有定义 Netrom。实际上,它只会应答对 k5di-9 和 k5di-10 的呼叫。当它应答时,它会启动 node 应用程序并让呼叫者登录。

# /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 
#
下一步是让 ax25d 应答对别名 CRUCES 以及呼号的呼叫。这很容易做到,如下所示
# /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 
#

如果您遇到问题,以 root 身份杀死正在运行的 ax25d,然后在提示符下键入 ax25d &。当 ax25d 加载 ax25d.conf 文件时,它将打印出它发现的任何错误。此打印输出非常准确,并告诉您文件中哪一行是错误的。

从任何相邻节点到 k5di-4 或 CRUCES 的连接都将连接到 k5di 节点。但是 Netrom 没有为 CRUCES 或 k5di-4 传输节点列表。这可以通过更改一些 Netrom 配置文件来完成。


下一页 上一页 目录