[4524] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Subnetting troubles on linux 2.0.20

daemon@ATHENA.MIT.EDU (Janice McCarthy)
Tue Sep 24 19:18:29 1996

Date: 	Tue, 24 Sep 1996 12:02:19 -0400 (EDT)
From: Janice McCarthy <janice@acpub.duke.edu>
To: linux-net@vger.rutgers.edu


Hi all,

I having trouble setting up a subnet under linux, and I was wondering if 
anyone out there could offer some assistance.

Here is my setup:

  I have 24 Multi UDB's running linux version 2.0.20.

  8 machines have 100 Mb ethernet intalled in the PCI expansion slot
  (all machines have an on-board 10Mb Ethernet as well).
  1 of the above mentioned 8 machines is a firewall, so all others are 
  configured as class C private (IP = 172.16.1.blah).

  Another of the above mentioned is (hopefully) configured as a gateway 
  to another subnet (of 7 more machines.  these seven have only one
  ethernet - the on-board 10Mb  The addresses here are 172.16.2.blah).

  Here is the problem:

       I want to add a route to the 172.16.2.0 network from a machine on 
       the 172.16.1.0 network.  I type:

       route add -net 172.16.2.0 gw 172.16.1.3 dev eth1


(eth1 is the 100Mb adapter)

       I get the following error:

         SIOCADDRT: Invalid Argument.

       Now, If I omit the -net option, route takes it, no problem, but 
the route is added as a host route!  What am I doing wrong???  I have 
read the section on gateways and subnets in Olaf Kirch's book more times 
than I care to count.


       Another thing:  If I add a default route, ie.

       route add default gw 172.16.2.3 dev eth1

      
       I can communicate across the gateway just fine.  But then if I 
ping between any of the machines on the same subnet - I get DUP! errors.  
That is, if I ping between any two machines which are NOT the gateway, or 
on opposite sides of the gateway, I get dups.  Pinging to the gateway, or 
across the gateway never produces duplicates!


HELP!!!!


Janice McCarthy

janice@acpub.duke.edu

home help back first fref pref prev next nref lref last post