Using Netrom and TCP/IP on Hampacket: dranch@trinnet.net 11/22/11 1. Notes 2. Checking learned local HEARD NetROM machines and their advertised routes 3. Making a NetRom connection from Linux 4. Viewing / killing existing connections: 5. Killing any existing AX.25 connections 6. Checking the quality of a link according to Al 7. Adding / Deleting AX.25 ARPs --------------------------------------------------------------------------- 1. Notes: --------------------------------------------------------------------------- Few key notes when using Netrom from Linux: 1. The interface that has to be used it the Netrom interface as defined in /etc/ax25/nrports 2. The destination machine CANNOT be an alias, must be the callsign per se 3. If you use control-c to abort a connection, it will NOT clean up the connection. You will have to use the --------------------------------------------------------------------------- 2. Checking learned local HEARD NetROM machines and their advertised routes --------------------------------------------------------------------------- To find the overall state of the system, you have to do the following: 1. Get the IDs of the locally heard Netrom machines NOTE: Just because your machine can hear one or two of these machines does NOT mean this link is reliable. This is a major failing of Netrom in general Viewing locally heard paths: cat /proc/net/nr_neigh -- addr callsign dev qual lock count failed digipeaters 00005 WA6TOW-1 ax0 250 0 7 0 00004 N6ZX-5 ax0 250 0 7 1 00003 KF6FPU-5 ax0 250 0 23 0 ^^^^^ Those are the Linuk IDs cat /proc/net/nr_nodes ax25_address *nr, const char *mnemonic, ax25_address *ax25, ax25_digi *ax25_digi, struct device *dev, int quality, int obs_count) w = ax25 port number? n = learned netrom ID number callsign mnemonic w n qual obs neigh qual obs neigh qual obs neigh WG6D-8 CAM05 1 1 141 6 00003 WD6EZC-5 PINOLE 1 1 141 6 00003 WB6YNM-11 MOC 1 1 188 6 00003 WA6TOW-1 PAC 1 2 250 5 00005 188 6 00003 K6TUO-5 TUO 1 2 142 6 00005 142 2 00003 W6JEX-5 CORN 1 2 141 6 00005 141 2 00003 WG6D-6 CAM91 1 2 140 6 00003 140 6 00005 WA7DG-4 ROSE 1 1 141 6 00003 KG6WOO-5 PLUMAS 1 2 141 6 00005 141 6 00003 W6PJD-3 ELDOR 1 1 141 6 00003 WA6YNG-1 RDG 1 1 142 6 00003 K7WWA-8 CAHTO 1 3 141 1 00004 140 6 00003 140 5 00005 KF6FPU-5 LIVER 1 1 250 6 00003 N6KRV-5 BRKNRG 1 1 141 1 00004 KG6BAJ-2 GVCITY 1 2 143 1 00004 141 2 00003 N6SGR-1 FST 1 2 143 1 00004 141 6 00003 KI6UDZ-7 FCITY 1 2 188 6 00003 141 5 00005 K6IXA-5 BULN 1 1 142 6 00003 KF6DQU-9 BANNER 1 2 156 1 00004 141 6 00003 W6HMT-7 AUKUM 1 1 132 6 00003 K6JAC-4 BERRY 1 2 189 1 00004 188 6 00003 N6ZX-5 WBAY 1 1 188 6 00003 W6TUK-4 TUCK 1 2 188 2 00003 143 1 00004 KF6DQU-4 ROUGH 1 1 141 6 00003 Viewing available (learned) NetRom routes: -- netstat -A netrom -rn Kernel NET/ROM routing table Destination Mnemonic Quality Neighbour Iface WG6D-8 CAM05 141 KF6FPU-5 ax0 WD6EZC-5 PINOLE 141 KF6FPU-5 ax0 WB6YNM-11 MOC 188 KF6FPU-5 ax0 WA6TOW-1 PAC 250 WA6TOW-1 ax0 K6TUO-5 TUO 142 WA6TOW-1 ax0 W6JEX-5 CORN 141 WA6TOW-1 ax0 WG6D-6 CAM91 140 KF6FPU-5 ax0 WA7DG-4 ROSE 141 KF6FPU-5 ax0 KG6WOO-5 PLUMAS 141 WA6TOW-1 ax0 W6PJD-3 ELDOR 141 KF6FPU-5 ax0 WA6YNG-1 RDG 142 KF6FPU-5 ax0 K7WWA-8 CAHTO 141 N6ZX-5 ax0 KF6FPU-5 LIVER 250 KF6FPU-5 ax0 N6KRV-5 BRKNRG 141 N6ZX-5 ax0 KG6BAJ-2 GVCITY 143 N6ZX-5 ax0 N6SGR-1 FST 143 N6ZX-5 ax0 KI6UDZ-7 FCITY 188 KF6FPU-5 ax0 K6IXA-5 BULN 142 KF6FPU-5 ax0 KF6DQU-9 BANNER 156 N6ZX-5 ax0 W6HMT-7 AUKUM 132 KF6FPU-5 ax0 K6JAC-4 BERRY 189 N6ZX-5 ax0 N6ZX-5 WBAY 188 KF6FPU-5 ax0 W6TUK-4 TUCK 188 KF6FPU-5 ax0 KF6DQU-4 ROUGH 141 KF6FPU-5 ax0 --------------------------------------------------------------------------- 3. Making a NetRom connection from Linux --------------------------------------------------------------------------- /usr/sbin/netrom_call netnod ki6zhd K6JAC-4 --------------------------------------------------------------------------- 4. Viewing / killing existing connections: --------------------------------------------------------------------------- $ netstat -A ax25 -an -- Active AX.25 sockets Dest Source Device State Vr/Vs Send-Q Recv-Q N6ZX-5 KI6ZHD-5 ax0 ESTABLISHED 007/007 0 0 * ZHDNOD-0 ax0 LISTENING 000/000 0 0 * KI6ZHD-5 ax0 LISTENING 000/000 0 0 -- NOTE from the output above: a) the device listed is WRONG. Use what's defined from /etc/ax25/axports --------------------------------------------------------------------------- 5. Killing any existing AX.25 connections --------------------------------------------------------------------------- /usr/sbin/axctl d710 N6ZX-5 KI6ZHD-5 kill --------------------------------------------------------------------------- 6. Checking the quality of a link according to Al --------------------------------------------------------------------------- To check a path. Connect to the KaNode on one leg. Then connect to the K-Net node from there. Ask for a R or N command and see if the occurs at a reasonable rate. --------------------------------------------------------------------------- 7. Adding / Deleting AX.25 ARPs --------------------------------------------------------------------------- manually set an AX.25 ARP: ------------------------------ /sbin/arp -H ax25 -i ax0 -s 44.4.50.1 w6xsc-1 To delete an ARP: ----------------- /sbin/arp -d w6xsc-1.ampr.org