Linux-Hams archive - March 1998: Re: troubles with ip and ax25

Re: troubles with ip and ax25

Jan de Jongh (xgbbr@venturiwireless.com)
Tue, 17 Mar 1998 01:58:16 +0100


Thomas wrote:

> This is a general reply to all the comments on my last cry for help....
>
> On Sun, 15 Mar 1998, Jan de Jongh wrote:

<deleted>

>
>
> I HAVE an ip adress (had it since 1994, when i used jnos under dos). (It's
> 44.145.0.23 if any wonder)..
> the route is setup corectly, as far as i can tell :
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.0.0 * 255.255.255.0 U 0 0 22 eth0
> 127.0.0.0 * 255.0.0.0 U 0 0 46 lo
> 44.0.0.0 * 255.0.0.0 U 0 0 7 ax0

Looks ok to me, except you don't have a gateway on ax0 (I assume you don't need
it here!)

>
>
> arp table output (arp -a):
> ? (44.145.0.9) at OZ4KK-2 [ax25] on ax0

OK, you have a mapping IP->ax25 and a route for 44.145.0.9. You should be able
to ping right now... Don't try telnet unless you're sure the remote station is
actually listening on the telnet port. Tryping -i 5 -c 5 44.145.0.9
and it should work...
By the way: can you see whether the ARP-request from 44.145.0.9 is replied by
your system (see with listen -a)? It should... Otherwise the peer station
doesn't know your AX25 address.

Wait, wait, are you sure the remote station has a route to YOUR station? If not,
that would give trouble similar to what you described.

>
>
> ifconfig output:
> ax0 Link encap:AMPR AX.25 HWaddr OZ2AFO-14
> inet addr:44.145.0.23 Bcast:44.145.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MTU:255 Metric:1
> RX packets:5090 errors:0 dropped:0 overruns:0
> TX packets:2216 errors:0 dropped:0 overruns:0

Looks OK to me. Again, it should work. You might try to set the netmask to
255.0.0.0 (broadcast 44.255.255.255) on ax0, effectively routing all 44.x.x.x
packets to your ax0 interface (probably won't harm). Another thing you could try
is to set the SSID on ax0 to 0, i.e. set the AX25 address to OZ2AFQ-0.My
ifconfig output looks as follows:

scc0 Link encap:AMPR AX.25 HWaddr PA3GYF
inet addr:44.137.2.44 Bcast:44.137.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:256 Metric:1
RX packets:24343 errors:122724 dropped:0 overruns:0 frame:0
TX packets:731 errors:2 dropped:0 overruns:0 carrier:0 coll:0

My routing table (I have a local 'illegal' Ethernet 44.137.67.0):

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
44.137.67.0 0.0.0.0 255.255.255.0 U 0 0 2 eth0
44.137.2.0 0.0.0.0 255.255.255.0 U 0 0 13 scc0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 3 lo
44.0.0.0 44.137.2.31 255.0.0.0 UG 0 0 4 scc0
0.0.0.0 44.137.67.1 0.0.0.0 UG 1 0 2 eth0

Note: the second entry gives me access to my gateway and local stations (which
are all 44.137.2.x). The fourth entry routes all ampr stuff, unless local, to
the gateway (44.137.2.31).
Quite similar to your setup and, despite the errors on scc0, this works
perfectly all right.

>
>
> so as far as i know, the system is setup right?? Or have i missed
> something here???
> I have also browsed the ax25-howto, but can't seem to find anything
> there... But i might have missed something here...
>
> - Thomas M.

All looks OK to me, but check the route to YOUR host in some way. I have a bad
feeling about that!
Sorry if this doesn't help...

Good luck,
Jan