From: Malcolm Beattie (mbeattie@black.ox.ac.uk)
Date: 09/10/93


From: mbeattie@black.ox.ac.uk (Malcolm Beattie)
Subject: Re: PLEASE HELP with networking problem..
Date: Fri, 10 Sep 1993 08:53:43 GMT

In article <26gnooINNu9@flop.ENGR.ORST.EDU> anils@research.cs.orst.edu writes:
>I had posted the following post yesterday and Malcolm Beattie
><mbeattie@black.ox.ac.uk> suggested that I add my local network to the
>/etc/networks file, which I did, but as soon as I do that
>
>-- networks file ---
>local-net 128.193.76.0
>------ end ----
> route add local-net
>
> starts givnig me the SCIOADDRT: Network unreachable error, and as soon as I
> take it out, I am able to add my local net to teh rouing table, but the
> flags are UH, which means it comes up as a host rather than a network.
>
> Any ideas.. My previous post an relevant info is appended below. Would
> really appreciate any help.

I've just re-read Linus' post about setting up net-2 and
noticed the following

In article <24nuqo$6tp@klaava.Helsinki.FI> torvalds@klaava.Helsinki.FI (Linus Torvalds) writes:
>Also, your IP address implies a B-class network (255.255.0.0), but you
>seem to be subnetted to C-class (255.255.255.0). Sadly, this is one of
>the things that the 4.4.1 libc gets wrong, and the "getnetbyname()"
>function will mess up your network address (it will truncate it to
>131.155.0.0 instead of the 131.155.110.0 found in your /etc/networks).
>The only solution is probably to get the 4.4.2 library (which hasn't
>been released yet, ugh) or to recompile 'route' to fix this some other
>way to overcome the library bug (adding a 'net' keyword or even
>hardcoding it orwhatever to specify a network address instead of using
>/etc/networks and the buggy C library).

This may well be your problem (on top of the one I previously
answered: lack of route to network.) Sorry I took so long to
notice this.

--Malcolm

-- 
Malcolm Beattie <mbeattie@black.ox.ac.uk> | I'm not a kernel hacker
Oxford University Computing Services      | I'm a kernel hacker's mate
13 Banbury Road, Oxford, OX2 6NN (U.K.)   | And I'm only hacking kernels
Tel: +44 865 273232 Fax: +44 865 273275   | 'Cos the kernel hacker's late