From: kg7fu (kg7fu@yahoo.com) Subject: Re: Linux soundmodem Newsgroups: rec.radio.amateur.digital.misc Date: 2001-05-12 11:37:49 PST Here's some of my /etc/ax25 scripts. Soundmodem works FB with Kernel 2.0.36 patched on a SuSE (www.suse.com) 6.4 box as well as with newer 2.3 (and 2.4?) kernels. I even have Soundmodem, LinPSK and a whole portable ax.25 node all in a teeny "notebook" form factor. root@fritz:/home/kg7fu > cat /etc/ax25/start_soundmodem #!/bin/bash # #soundmodem based packet station # #clean the sound drivers rmmod opl3 rmmod sb rmmod uart401 rmmod sound rmmod soundcore rmmod soundlow #clean the com port setserial /dev/ttyS0 uart none port 0 irq 0 sleep 1 #configure the soundcard setcrystal -w 0x220 -i 7 -d 1 sleep 1 #packet drivers modprobe hdlcdrv insmod soundmodem mode="sbc:afsk1200" iobase=0x220 irq=7 dma=1 sethdlc -p -i sm0 mode sbc:afsk1200 io 0x220 irq 7 dma 1 serio 0x3f8 sleep 1 #setup packet communications parameters sethdlc -i sm0 -a txd 450 slot 100 ppersist 64 half sleep 1 #setup misc details ifconfig sm0 hw ax25 kg7fu up smmixer s=line.l smmixer i=0 smmixer o=-50 #setup networking # ifconfig sm0 up axparms -setcall sm0 kg7fu ifconfig sm0 44.26.1.150 netmask 255.255.255.0 up #ifconfig sm0 broadcast 44.26.0.0 mtu 512 axparms -route add sm0 n7dxt-1 sleep 1 # #some daemons ax25d -l sleep 1 mheardd ax25spyd & # #fin Note: this works FB with Baycom serial drivers, so you really can run a hub from a notebook PC! root@fritz:/home/kg7fu > cat /etc/ax25/rc.ax25 #!/bin/sh #### everything below # config Kiss TNC port echo "Attaching to AX25 to TNC device" /usr/sbin/mkiss -s 19200 /dev/ttyS1 /dev/ptyq1 /dev/ptyq2 /bin/sleep 1 /usr/sbin/kissattach -m 236 /dev/ttyq1 vhf 44.26.1.146 /sbin/ifconfig ax0 netmask 255.255.255.0 #/usr/sbin/kissattach -m 236 /dev/ttyq2 uhf 44.26.1.146 #/sbin/ifconfig ax1 netmask 255.255.255.0 /bin/sleep 1 # config AXIP #/usr/sbin/kissattach /dev/ptyq0 axip #/bin/sleep 1 # config loopback #/usr/sbin/kissnetd /dev/ptyr2 /dev/ptyr3 & #/bin/sleep 5 #/usr/sbin/kissattach /dev/ttyr2 lp1 #/bin/sleep 5 #/usr/sbin/kissattach /dev/ttyr3 lp2 #/bin/sleep 5 # config NetRom echo "Configuring Net/Rom" /usr/sbin/nrattach -i 44.26.1.146 -m 236 netrom /sbin/ifconfig nr0 netmask 255.255.255.0 /usr/sbin/nrattach -i 44.26.1.146 -m 236 netrom2 /sbin/ifconfig nr1 netmask 255.255.255.0 /bin/sleep 1 # start the daemons echo "some daemons" /usr/sbin/ax25d -l /bin/sleep 1 #/usr/sbin/ax25ipd #/bin/sleep 1 /usr/sbin/netromd -i /usr/sbin/mheardd # send the kissparms echo "Setting Kiss params" /usr/sbin/kissparms -p vhf -t 300 -s 100 -r 64 -f n -l 0 #/usr/sbin/kissparms -p uhf -t 50 -s 100 -r 64 -f n -l 0 # load axdigi #/usr/sbin/axdigi & # associate callsigns to users /usr/sbin/axparms -assoc KG7FU kg7fu /usr/sbin/axparms -assoc policy default #/usr/sbin/axparms -assoc KI7AY ki7ay # setup ipip tunnel #/sbin/ifconfig tunl0 44.26.1.146 mtu 512 up #local routes #/sbin/route add 44.26.1.146 nr0 #/sbin/route add -net 44.26.1.0/24 gw 44.1.26.146 window 2048 nr0 # #netrom routing echo "setting netrom routes" #nrparms -routes uhf kg7fu-9 + 180 nrparms -routes vhf kg7fu-1 + 200 #nrparms -routes vhf kg7fu-11 + 170 echo "setting default netrom nodes" nrparms -nodes kg7fu-1 + lbs 200 4 vhf kg7fu-1 nrparms -nodes w0rli-1 + paret 180 4 vhf kg7fu-1 #nrparms -nodes n7qdn-6 + qdntcp 40 4 vhf kg7fu-1 #nrparms -nodes wb1fyo-2 + 7400d6 40 4 vhf kg7fu-1 #nrparms -nodes n7biq-3 + 7400ef 70hf kg7fu-1 #nrparms -nodes wa7gfe-3 + 740030 70 4 vhf kg7fu-1 #nrparms -nodes kc7dx-3 + 740059 70 4 vhf kg7fu-1 #tcp/ip routing via radio echo "arp entries" #w0rli-1 echo "w0rli" route add -host 44.116.1.20 window 1024 mss 512 irtt 30000 nr0 arp -t netrom -s 44.116.1.20 w0rli-1 -i nr0 # #n7qdn-6 #route add 44.116.2.17 window 1024 mss 512 nr0 #arp -t netrom -s 44.116.2.17 n7qdn-6 -i nr0 # #route add 44.116.0.239 window 2048 mss 512 irtt 30000 nr0 #arp -t netrom -s 44.116.0.239 n7biq-3 -i nr0 # #route add 44.116.0.48 window 2048 mss 512 irtt 30000 nr0 #arp -t netrom -s 44.116.0.48 wa7gfe-3 -i nr0 # #route add 44.116.0.89 window 2048 mss 512 irtt 30000 nr0 #arp -t netrom -s 44.116.0.89 kc7dx-3 -i nr0 # #route add 44.116.0.131 window 2048 mss 512 irtt 30000 nr0 #arp -t netrom -s 44.116.0.131 n7qme-3 -i nr0 # #route add 44.116.0.214 window 1024 mss 512 nr0 #arp -t netrom -s 44.116.0.214 wb1fyo-2 -i nr0 # #echo "kg7fu-11" #route add 44.26.1.150 window 1024 mss 512 nr0 #arp -t netrom -s 44.26.1.150 kg7fu-11 -i nr0 # echo "wan routing" #route add -net 44.116.1.0 netmask 255.255.0.0 gw 44.116.1.20 window 1024 #mss 512 nr0 #route add -net 44.24.0.0 netmask 255.255.0.0 gw 44.116.1.20 window 1024 #mss 512 irtt 30000 nr0 # #more daemons echo "some more daemons" #/usr/sbin/ax25rtd & /usr/sbin/ax25spyd & # #start the beacons #echo "starting beacons" beacon -c kg7fu-6 vhf "KG7FU's Experimental Linux IP Gateway/Node" #beacon -c linux-0 uhf "KG7FU's Linux Mess" # #clean up #my dns has an erroneous entry for 44.26.1.0 route del -net 44.26.1.0/24 ax0 route del -net 44.26.1.0/24 nr0 route del -net 44.26.1.0/24 nr1 echo "done" # root@fritz:/home/kg7fu > This is how I start packet networking on my server box. It's main function, other than a DOD internet router, is a CLX DX Packet Cluster. Try some debugging flags and mail me your /var/log/warn & /var/log/messages files if you still have difficulty. de kg7fu ----------------------------- James S. Kaplan KG7FU Eugene Oregon USA kg7fu@yahoo.com http://www.rio.com/~kg7fu ICQ # 1227639 Have YOU tried Linux today? -----------------------------