Robin wrote:
> Richard wrote:
> > I would have anticipated IP addresses and netmasks something along these
> > lines:
> > 
> > gb7ipd        44.131.161.230/255.255.255.0
> > gb7itg        44.131.160.127/255.255.255.0
> > gb7va         44.131.  y.  x/255.255.255.0
> > 
> > the_box ax4:0 44.131.160.  x/255.255.255.0
> > the_box ax4:1 44.131.161.242/255.255.255.0
> > the_box ax4:2 44.131.  y.  z/255.255.255.0
> > 
> > the_box ax3   44.131.160.  x/255.255.255.0
> > the_box ax6   44.131.  y.  z/255.255.255.0
> 
> I don't understand this at all - an interface having a netmask? I thought it
> was destinations that did. Perhaps you could define the actual route statements
> that give this result. Note that I've only got as far as testing the host
> routes  so I would not expect netmasks to have any effect as I'm only trying to
> get to the gateways so far.

Robin, et al

Assumptions:
------------
All systems are Linux, I know this is not true but I am sure that the
conversion to *NOS commands is trivial. It makes it easier for me to
describe the configuration.

Linux & *NOS routing is similar to HP-UX, Cisco, Solaris & Welfleet.
Not a very safe assumption but the best current guess.

I have changed the subnet for gb7va to 44.131.162.0/255.255.255.0. I
realise that the 162 subnet is not the right one and leave it to you to
substitute an appropriate one (and not 160 or 161).

That gb7ipd has 2 ports ax0 and ax1.

That gb7va has 1 port ax0.

That gb7itg has 4 ports ax0 to ax3.

I have ignored ax2 on gb7bw for the purposes of this exercise.

The IP numbers I have used:
 gb7bw:0 44.131.160.242
 gb7bw:1 44.131.161.242
 gb7bw:2 44.131.162.242
 gb7ipd  44.131.161.230
 gb7va   44.131.162.127
 gb7itg  44.131.160.250

+-----------------------------------------------------------------------------+

gb7bw
=====
ifconfig ax4   inet 44.131.160.242 netmask 255.255.255.0 hw ax25 gb7bw
ifconfig ax4:1 inet 44.131.161.242 netmask 255.255.255.0 hw ax25 gb7bw
ifconfig ax4:2 inet 44.131.162.242 netmask 255.255.255.0 hw ax25 gb7bw
ifconfig ax3   inet 44.131.160.242 netmask 255.255.255.0 hw ax25 gb7bw
ifconfig ax6   inet 44.131.162.242 netmask 255.255.255.0 hw ax25 gb7bw

arp -t ax25 -i ax4:0 -s 44.131.160.250 gb7itg-10
arp -t ax25 -i ax4:1 -s 44.131.161.230 gb7ipd
arp -t ax25 -i ax4:2 -s 44.131.162.127 gb7va-1

# subnets this router knows about
route add -net 44.131.160.0 netmask 255.255.255.0                   dev ax4:0
route add -net 44.131.161.0 netmask 255.255.255.0                   dev ax4:1
route add -net 44.131.162.0 netmask 255.255.255.0                   dev ax4:2
route add -net 44.131.163.0 netmask 255.255.255.0 gw 44.131.160.250 dev ax4:0
route add -net 44.131.166.0 netmask 255.255.255.0 gw 44.131.160.250 dev ax4:0
route add -net 44.131.167.0 netmask 255.255.255.0 gw 44.131.160.250 dev ax4:0

# and any subnets this router does not know about go this way
route add -net 44.0.0.0     netmask 255.0.0.0     gw 44.131.161.230 dev ax4:1
+-----------------------------------------------------------------------------+

gb7ipd
======
ifconfig ax0 inet 44.131.161.230 netmask 255.255.255.0 hw ax25 gb7ipd
ifconfig ax1 inet 44.131.???.??? netmask 255.255.255.0 hw ax25 gb7ipd-1

# subnets this router knows about
route add -net 44.131.???.0 netmask 255.255.255.0                   dev ax1
route add -net 44.131.160.0 netmask 255.255.255.0 gw 44.131.161.242 dev ax0
route add -net 44.131.161.0 netmask 255.255.255.0                   dev ax0
route add -net 44.131.162.0 netmask 255.255.255.0 gw 44.131.161.242 dev ax0
route add -net 44.131.163.0 netmask 255.255.255.0 gw 44.131.161.242 dev ax0
route add -net 44.131.166.0 netmask 255.255.255.0 gw 44.131.161.242 dev ax0
route add -net 44.131.167.0 netmask 255.255.255.0 gw 44.131.161.242 dev ax0

# and any subnets this router does not know about go this way
route add -net 44.0.0.0     netmask 255.0.0.0     gw 44.131.???.??? dev ax1
+-----------------------------------------------------------------------------+

gb7va
=====
ifconfig ax0 inet 44.131.162.127 netmask 255.255.255.0 hw ax25 gb7va-1

# subnets this router knows about
route add -net 44.131.162.0 netmask 255.255.255.0                   dev ax0

# and any subnets this router does not know about go this way
route add -net 44.0.0.0     netmask 255.0.0.0     gw 44.131.162.242 dev ax0
+-----------------------------------------------------------------------------+

gb7itg
======
ifconfig ax0 inet 44.131.160.250 netmask 255.255.255.0 hw ax25 gb7itg-10
ifconfig ax1 inet 44.131.163.??? netmask 255.255.255.0 hw ax25 gb7itg-??
ifconfig ax2 inet 44.131.166.??? netmask 255.255.255.0 hw ax25 gb7itg-??
ifconfig ax3 inet 44.131.167.??? netmask 255.255.255.0 hw ax25 gb7itg-??

# subnets this router knows about
route add -net 44.131.160.0 netmask 255.255.255.0                   dev ax0
route add -net 44.131.163.0 netmask 255.255.255.0                   dev ax1
route add -net 44.131.166.0 netmask 255.255.255.0                   dev ax2
route add -net 44.131.167.0 netmask 255.255.255.0                   dev ax3

# and any subnets this router does not know about go this way
route add -net 44.0.0.0     netmask 255.0.0.0     gw 44.131.160.242 dev ax0
+-----------------------------------------------------------------------------+

This is what I was aiming for as a network.

|-------+---------------| 44.131.0.0/255.255.0.0
        |
+------------------------------+
| 44.131.???.???/255.255.0.0   |
|       gb7ipd                 |
| 44.131.161.230/255.255.255.0 |
+------------------------------+
        |
|-------+---------------| 44.131.161.0/255.255.255.0
        |
+------------------------------------------------------------+
| 44.131.161.242/255.255.255.0                               |
|       gb7bw                                                |
| 44.131.162.242/255.255.255.0  44.131.160.242/255.255.255.0 |
+------------------------------------------------------------+
        |                             |
        |                        |----+---------+-----| 44.131.160.0/255.255.255.0
        |                                       |
|-------+--------| 44.131.162.0/255.255.255.0   |
        |                                       |
+------------------------------+                |
| 44.131.162.127/255.255.255.0 |                |
|     gb7va                    |                |
|                              |                |
+------------------------------+                |
                                                |
+----------------------------------------------------------------------------------------+
|                                         44.131.160.250/255.255.255.0                 
|  |
|                                  gb7itg                                              
|  |
| 44.131.163.???/255.255.255.0 44.131.166.???/255.255.255.0 
|44.131.167.???/255.255.255.0 |
+----------------------------------------------------------------------------------------+
        |                            |                            |
        |                            |                        |---+---| 
44.131.167.0/255.255.255.0
        |                            |
        |                        |---+---| 44.131.166.0/255.255.255.0
        |
    |---+---| 44.131.163.0/255.255.255.0
+-----------------------------------------------------------------------------+

Strictly one should not need to define the interface (device) for the "route" but
I do on my AX25 setup here. I would suggest trying with and then without. If it
works correctly without then leave the interface defines off.

I think this has the right (from the assumptions) IP addresses, as I am doing
this
 1) late at night
 2) in a hurry
 3) I am having to proof read on screen, my 132 column printer is still in it's
    box after moving house, 3 years ago.

I am not going to guarantee that I have got it right.
The only test for "is it right" is does it route as intended.

Before anybody says "that is very tedious", yes it is, that is why RIP and
OSPF exist but without a tame RF network to play with I am not about to
try configuring OSPF, it is bad enough on a cabled network.

This thread could well expose significant differences in routing
implementations.

Constructive comment invited, flames > /dev/null

-- 
Regards
        Richard
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Amateur radio callsign: G1SOG         Home BBS: G1SOG@GB7SDN.#49.GBR.EU
                Amprnet co-ordinator for Wiltshire
My opinions are mine, all mine. None to spare for unopinionated masses.
This message comes from a WinTel free zone.   CPU = Cyrix,  OS = Linux.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to