Hi Gary

I am running a KPC9612 under 2.0.33 with both ports active.
Here is my /etc/ax25/axports and an extract from my
/etc/rc.d/rc.ax25. It works here but I am sure there are
many improvements possible.

73
Phil vk6ad

- - - - - - - - -

# /etc/ax25/axports
#
# The format of this file is:
#
# name callsign speed paclen window description
#
4725    VK6DLX-13       19200   256     2       VHF
70cm    VK6DLX-14       19200   256     4       UHF
axip    VK6DLX-12       19200   256     7       AXIP
#

- - - - - - - - - - - - - - - - -

#! /bin/sh -x
#
echo "/etc/rc.d/rc.ax25"
#
# Set up ax25 ports
# This file is called from /etc/rc.d/rc.local
#
# 13 Feb 1998 vk6ad: Deleted ether and tunl config.
#
# Set IP addresses to save having to type them in each time...
IPV="44.136.204.143" # VHF port IP address
BCV="44.136.204.255" # VHF broadcast address
IPU="44.136.210.10"  # UHF port IP address
BCU="44.136.210.255" # UHF broadcast address
LNV="44.136.204.0"   # Local VHF network
LNU="44.136.210.0"   # Local UHF net
GWV="44.136.204.38"  # VHF gateway (vk6bbs)
GWU="44.136.210.11"  # UHF gateway (uhf.vk6bbs)
#
# Initialise Kantronics KPC9612...

stty speed 19200 < /dev/cua0
stty < /dev/cua0
sleep 3
echo -ne '*' > /dev/ttyS0
sleep 1
echo -ne "intface kiss" > /dev/ttyS0
sleep 2
echo -ne "reset" > /dev/ttyS0
sleep 3
#
# Use mkiss to attach pseudo devices to serial port...
# Kantronics - p1 is vhf, p2 is uhf.
/usr/sbin/mkiss -s 19200 /dev/ttyS0 /dev/ptyp1 /dev/ptyp2
sleep 3
#
# Now use Kissattach to attach kernel ax25 ports to the
# pseudo-tty devices...
/usr/sbin/kissattach -i $IPV /dev/ttyp1 4725    # VHF
/usr/sbin/kissattach -i $IPU /dev/ttyp2 70cm    # UHF
/usr/sbin/kissattach -i $IPU /dev/ptyq0 axip
sleep 3
#
# ifconfig ports...
/sbin/ifconfig ax0 broadcast 44.136.204.255 netmask 255.255.255.0 mtu 256
arp     # VHF
/sbin/ifconfig ax1 broadcast 44.136.210.255 netmask 255.255.255.0 mtu 256
arp     # UHF
/sbin/ifconfig ax2 broadcast 44.136.204.255 netmask 255.255.255.0
#
# add routes...
/sbin/route add -net $LNU netmask 255.255.255.0 mss 256 window 600 irtt
10000 ax1
/sbin/route add -net 44.136.204.0 netmask 255.255.255.0 gw 44.136.210.11
irtt 5000
#
# Set timertypes to linear for all ax25 ports...
echo 0 > /proc/sys/net/ax25/ax0/backoff_type
echo 0 > /proc/sys/net/ax25/ax1/backoff_type
#
# Set txd...
/usr/sbin/kissparms -p 70cm -t 200 -r 127 -s 50
/usr/sbin/kissparms -p 4725 -t 400
#
# Start the mheard daemon to enable mheard command...
/usr/sbin/mheardd
#
# start axdigi"
/usr/sbin/axdigi &
#
# Start ax25d...
/usr/sbin/ax25d -l
#

- - - - - - - - - -

Reply via email to