Pages

Monday, 1 July 2013

2E1AVX sets up packet / IP

James sets up packet radio and TCP/IP


Showing the routing table

Showing a successful ping *slow*

Cheap 2 meter ADI and Kantronics KPC-9612 TNC (in kiss mode)

System powered by Raspberry pi

Station set up (in James's garage) ping

Connection to GB7IPF-2

Configuration files which may help you out

Axports

# /etc/ax25/axports
#
# The format of this file is:
#
# name callsign speed paclen window description
#
rf1     2e1axi-1        9600    255     2       144.925 (1200 BPS)


ax25d.conf

# /ETC/AX25/AX25D.CONF
#
# ax25d Configuration File.
#
# AX.25 Ports begin with a '['.
[2e1axi via rf1]
NOCALL * * * * * * L
2e1avx * * * * * * * root /usr/sbin/axspawn axspawn %u +
#
[2e1axi-2 via rf1]
NOCALL * * * * * * L
default * * * * * * 0 root /usr/sbin/node   node
#

Rc.networks.ampr

#!/bin/sh
# remove unwanted interface default routes automatically created per interface
route del -net 44.131.161.100.0 gw 0.0.0.0 netmask 255.255.255.0 ax0
route del -net 44.0.0.0 gw 0.0.0.0 netmask 255.0.0.0 ax0
# port ax0 
echo "RC.NETWORKS.AMPR setup routing"
route add -host 44.131.242.73  mss 255 window 432 ax0 # 2e0cqp rf1
route add -net 44.131.242.72 gw 44.131.242.73  netmask 255.255.255.248 irtt 5000 window 432 mss 256 ax0
route add -host 44.131.242.89 mss 255 window 432 ax0 #m0tig  rf1
route add -net 44.131.242.88 gw 44.131.242.89 netmask 255.255.255.248 irtt 5000 window 432 mss 256 ax0
route add -host 44.131.242.81  mss 255 window 432 ax0 # m6sej rf1
route add -net 44.131.242.80 gw 44.131.242.81 netmask 255.255.255.248 irtt 5000 window 432 mss 256 ax0
route add -host 44.131.161.101 mss 255 window 432 ax0 # 2e1axi rf1
route add -net 44.131.161.100 gw 44.131.161.101 netmask 255.255.255.252 irtt 5000 window 432 mss 256 ax0
route add -net 44.131.176.32 gw 44.131.176.33 netmask 255.255.255.248 irtt 5000 window 432 mss 256 ax0
route add -host 44.131.161.228 mss 256 window 432 ax0 # gb7ipf gateway axu2
route add -net 44.0.0.0 gw 44.131.161.228 netmask 255.0.0.0 irtt 6000 window 432 mss 256 ax0 # via gb7cip gateway
#




Rc.ax25.axi

#!/bin/sh
modprobe usbserial vendor=0x067b product=0x2303
echo 1 > /proc/sys/net/ipv4/ip_forward
# just in case ...
/usr/bin/killall -KILL /usr/sbin/ax25d
/usr/bin/killall -KILL /usr/sbin/kissattach
/usr/bin/killall -KILL /usr/sbin/ax25ipd
/usr/bin/killall -KILL /usr/sbin/mkiss
/usr/bin/killall -KILL /usr/sbin/beacon
/usr/bin/killall -KILL /usr/sbin/mheardd
/usr/bin/killall -KILL /usr/sbin/netromd
/sbin/ifconfig ax0 down
### Configure TNC ports rf1
/bin/sleep 4
/usr/sbin/kissattach -m 256 /dev/ttyUSB0 rf1 44.131.161.101
/usr/sbin/kissparms -p rf1 -r 128 -s 10 -l 20 -t 300
/usr/sbin/ax25d -l &
/usr/sbin/beacon - t 15 rf1 "2e1axi Hedgerley Buckinghamshire 44.131.161.101"
/usr/sbin/mheardd -f &
/etc/ax25/rc.networks.ampr
arp -H ax25 -i ax1 -s 44.131.242.89 m0tig
arp -H ax25 -i ax1 -s 44.131.159.65 m6oaf-1
arp -H ax25 -i ax1 -s 44.131.242.81 m6sej-1
arp -H ax25 -i ax1 -s 44.131.242.73 2e0cqp
arp -H ax25 -i ax0 -s 44.131.244.1 gb7cip-2
edit node.conf with your information
hostname and localnet will need to be changed.



CD /etc (need to allow incoming telnet to redirect to node)
 inetd.conf

# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard                stream  tcp     nowait  root    internal
#discard                dgram   udp     wait    root    internal
#daytime                stream  tcp     nowait  root    internal
#time           stream  tcp     nowait  root    internal
#:STANDARD: These are standard services.
telnet          stream  tcp     nowait  telnetd /usr/sbin/node    node
#:BSD: Shell, login, exec and talk are BSD protocols.
#:MAIL: Mail, news and uucp services.

#:INFO: Info services
#:BOOT: TFTP service is provided primarily for booting.  Most sites
#       run this only on machines acting as "boot servers."
#:RPC: RPC based services
#:HAM-RADIO: amateur-radio services
telnet  stream  tcp     nowait  root    /usr/sbin/node    node
node    stream  tcp     nowait  root    /usr/sbin/node    node
node2   stream  tcp     nowait  root    /usr/sbin/node    node
#:OTHER: Other services
#<off># bbs     stream  tcp     wait    root    /usr/sbin/node  node

No comments:

Post a Comment