From: Anil Srivastava (anils@ada.CS.ORST.EDU)
Date: 09/06/93


From: anils@ada.CS.ORST.EDU (Anil Srivastava)
Subject: PLEASE HELP with networking problem..
Date: 7 Sep 1993 01:22:32 GMT

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.

 Anil
===== previous post =====
I would really appreciate any help with solving this problem. As you might
guess, I am a neophyte as far as Linux is concerned. I recently picked up
the distribution of linux from ftp.cdrom.com:pub/linux/slackware/zooed_disks
and installed it on a generic 486 / 66 with two 1/2 GB SCSI drives, 1542 Adaptec
SCSI card and a NE2000 network card (I/O addr = 300, Int =3). The
installation went rather smoothly, but when I issue the following command
to add a gateway to the routing table..

  route add default gw 128.193.76.20 metric 1

I get the following error..

  SIOCADDRT: Network unreachable.

For the life of me, I can't figure out what it means and how I can get rid
of it. My machines IP address is 128.193.76.16, so it is on the same
network as the gateway machine. I can also ping the Linux box from
any machine on the same network, but not from across the gateway. The local
loopback is setup ok, and I can telnet to itself. I am attaching below the
output from "ifconfig" and "route" and the rc.inet1 file. Would really
appreciate any help.

If not a problem, please respond to my e-mail address since I am an
infrequent eader of this newsgroup (for now!! ). THANKS IN ADVANCE

Anil
anils@research.cs.orst.edu

===== ifconfig ========
lo IP ADDR 127.0.0.1 BCAST 127.255.255.255 NETMASK 255.0.0.0
          MTU 2000 METRIC 0 POINT-TO-POINT ADDR 0.0.0.0
          FLAGS: 0x0049 ( UP LOOPBACK RUNNING )

eth0 IP ADDR 128.193.76.16 BCAST 128.193.77.255 NETMASK 255.255.254.0
          MTU 1500 METRIC 0 POINT-TO-POINT ADDR 0.0.0.0
          FLAGS: 0x0043 ( UP BROADCAST RUNNING )

======= route =========
Kernel routing table
Destination net/address Gateway address Flags RefCnt Use Iface
128.193.76.0 * UH 0 0 eth0
olympus.bus.orst.edu * UH 0 99 lo

===== /etc/rc.d/rc.inet1 ======
#! /bin/sh
#
# rc.inet1 This shell script boots up the base INET system.
#
# Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93
#

HOSTNAME=`hostname`

# Attach the loopback device.
/etc/ifconfig lo 127.0.0.1
/etc/route add 127.0.0.1

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the
# eth0 interface. If you're only using loopback or SLIP, don't include the
# rest of the lines in this file.

# Edit for your setup.
IPADDR="128.193.76.16" # REPLACE with YOUR IP address!
NETMASK="255.255.254.0" # REPLACE with YOUR netmask!
NETWORK="128.193.76.0" # REPLACE with YOUR network address!
BROADCAST="128.193.77.255" # REPLACE with YOUR broadcast address, if you
                                # have one. If not, leave blank and edit below.
GATEWAY="128.193.76.20" # REPLACE with YOUR gateway address!

/etc/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} arp up
# If you don't have a broadcast address, change the above line to just:
# /etc/ifconfig eth0 ${IPADDR} netmask ${NETMASK}

/etc/route add ${IPADDR}
/etc/route add ${NETWORK}
/etc/route add default gw ${GATEWAY} metric 1

# End of rc.inet1

-- 
Anil Srivastava                       *   anils@research.cs.orst.edu
Graduate Student in Computer Science  *   (503) 737-3802  -  VOICE
Oregon State University               *   (503) 737-4890  -  FAX 

-- Anil Srivastava * anils@research.cs.orst.edu Graduate Student in Computer Science * (503) 737-3802 - VOICE Oregon State University * (503) 737-4890 - FAX