On 11 Jun 99 at 8:19, John Feist wrote:
> I am sure this is covered in previous threads, if so, please point me to
> the subject title and I will search the archives.
>
> I am running Tnos on a RH6.0 machine hosting ax25-utils. There are some
> radio ports that I want to link to Tnos (ax0 and ax1). What is the best
> way to do this? I was thinking of starting two more slattach links (sl1
> and sl2) and using rxecho too and from ax0/ax1.
John:
I did that and it worked, but using net2kiss is preferable. TNOS is
kiss in the ports facing the tnc's, like JNOS, so you 'pipe' it
thru net2kiss to reach the kernel. This is the way I do it now:
#! /bin/sh
# /etc/init.d/ax25 -- this should be linked into the appropriate rc.d
# directories to start AX.25 services at bootup
echo Starting AX.25 networking services:
# ax ports are:
# ax0 -- HF 1200 baud
# ax1 -- VHF 1200 baud
# ax2 -- Internal
/usr/sbin/kissattach -i 44.175.2.2 /dev/ttyS0 1
/usr/sbin/kissattach -i 44.175.2.2 /dev/ttyS1 2
/usr/sbin/kissattach -i 44.175.2.2 /dev/ptypf 3
# configure the HF port
/sbin/ifconfig ax0 44.175.2.2 hw ax25 co9bqq-9
/sbin/ifconfig ax0 broadcast 44.255.255.255 netmask 255.0.0.0
/sbin/ifconfig ax0 arp mtu 128 up
/sbin/route add -net 44.0.0.0 irtt 4000 window 256 ax0
# configure the VHF port
/sbin/ifconfig ax1 44.175.2.2 hw ax25 co9bqq-10
/sbin/ifconfig ax1 broadcast 44.175.2.255 netmask 255.255.255.0
/sbin/ifconfig ax1 arp mtu 256 up
/sbin/route add -net 44.175.2.0 irtt 2000 window 512 ax1
# configure the internal link port
/sbin/ifconfig ax2 44.175.2.2 hw ax25 lx2nos-1
/sbin/ifconfig ax2 broadcast 44.255.255.255 netmask 255.0.0.0
/sbin/ifconfig ax2 arp mtu 255 up
/sbin/route add -net 44.0.0.0 irtt 4000 window 1024 ax2
# Setup for JNOS/Linux gateway
# 44.175.2.33 is the JNOS IP address (jnos.co9bqq.ampr.org)
# 44.175.2.1 is the linux box's ampr IP address (co9bqq.ampr.org)
# 169.158.144.51 in the linux box's IP address
echo "" # blank line
echo "Initiating SLIP connection to JNOS/Linux..."
/usr/sbin/slattach -p slip -s 38400 ptype &
echo "Allowing 2 seconds for slattach to catch up "
sleep 2
/sbin/ifconfig sl0 broadcast 44.255.255.255 pointopoint
44.175.2.33 mtu 1500 169.158.144.51
/sbin/route add 44.175.2.33 sl0
/usr/sbin/net2kiss -i ax0 /dev/ptypc &
/usr/sbin/net2kiss -i ax1 /dev/ptypd &
echo "Allowing 2 seconds for net2kiss to catch up "
sleep 2
# now, use the axsetparms script to copy device params from
# /etc/ax25/parms into /proc/sys/net/ax25
echo "Setting AX25 parameters"
/usr/sbin/axsetparms
# attach the netrom devices
# "netrom" is a dummy
# "netbbs" connects to FBB
# "netnod" connects to LinuxNode
# "netdx" connects to DXNET
echo "Attaching netrom"
/usr/sbin/nrattach -i 44.175.2.2 netrom
/usr/sbin/nrattach -i 44.175.2.2 netbbs
/usr/sbin/nrattach -i 44.175.2.2 netnod
/usr/sbin/nrattach -i 44.175.2.2 netdx
# Configure NetROM
echo "Configuring NETROM"
/sbin/ifconfig nr0 broadcast 44.255.255.255
/sbin/ifconfig nr1 broadcast 44.255.255.255
/sbin/ifconfig nr2 broadcast 44.255.255.255
/sbin/ifconfig nr3 broadcast 44.255.255.255
# start the daemons
echo "Starting the daemons"
/usr/sbin/ax25d
/usr/sbin/netromd
/usr/sbin/mheardd -f -n 20
#/usr/sbin/rxecho
#/usr/sbin/flexd
#/usr/sbin/ax25ipd
#/usr/sbin/axdigi &
/usr/local/dxnet/dxnet.sh &
echo "Starting the FBB daemon"
/usr/local/fbb/xfbb.sh -d & # we've installed FBB in
# /usr/local/fbb
echo
echo "Allowing 15 seconds for the FBB daemon to catch up"
sleep 15 s
# Activacion del beacon
echo "Setting up beacons"
/usr/sbin/beacon -c CO9BQQ-5 -d ID -t 10 1 "BQQ:CO9BQQ-5 LinuxNode,
La Habana (EL83tb)"
/usr/sbin/beacon -c CO9BQQ-5 -d ID -t 10 2 "BQQ:CO9BQQ-5 LinuxNode,
La Habana (EL83tb)"
/usr/sbin/beacon -c CO9BQQ-3 -d ID -t 10 2 "DXNET Packet Cluster,
Habana"
# Identificacion de CO2JA al aire
/usr/sbin/axparms -assoc co2ja-6 co2ja
echo "All set !!"
------
#------------------
# Attaching ports (JNOS 1.11c autoexec.nos)
#------------------
# HF
attach asy ttypc - ax25 1 8192 236 9600
# VHF
attach asy ttypd - ax25 2 8192 236 9600
# Kernel Link
attach asy ttype - slip lan 1500 1500 38400
# Interno
attach asy ttypf - ax25 3 8192 236 38400
asyconfig lan rxq 15
asyconfig lan txq 15
asyconfig 1 rxq 15
asyconfig 1 txq 15
asyconfig 2 rxq 15
asyconfig 2 txq 15
asyconfig 3 rxq 15
asyconfig 3 txq 15
Hope it helps.
> Thank You in advance.
> 73, John
73 de Jose, CO2JA
PS: Reread and have another comment. Slip doesn't work with rxecho, it
must be ax25, not slip for rxecho (or axdigi) to repeat.
---
Ing. Jose A. Amador | Telf: (537) 20-7814
Depto de Telecomunicaciones | E-Mail: [EMAIL PROTECTED]
ISPJAE |