"network" entry in route table not set

"network" entry in route table not set

Post by Mike McCarri » Thu, 31 Mar 1994 00:03:36



Hello,

I am tearing my hair out trying to figure out this network
problem!  I can't seem to get a working "network" entry in
my routing table so I can't send to hosts on my lan without
adding an explicit route to each host. Specifically, I start
the network like this:

        ifconfig lo 127.0.0.1
        route add 127.0.0.1 lo

        ifconfig eth0 192.9.200.104
        route add 192.9.200.0 eth0

We are an isolated network, so I don't add a default route
to a gateway. At this point, the route table looks like this:

Destination net/address   Gateway address           Flags RefCnt    Use Iface
network                   *                         UH         0      0 eth0
localhost                 *                         UH         0      0 lo

Notice that the flags for the network are "UH" not "UN" as they should
be for a network (I am inferring this from comparison to a working
Linux system that has a slightly different setup). The problem is that
my system can't reach any other hosts on the local net, not even myself!
I get the dreaded "Network is unreachable" error for anybody except
localhost. If a manually add a route like this: route add 192.9.200.10
then I can reach that host.

Can anyone offer insight here? As I said, I have a working system and
a non-working system with almost the same setup. I compared route and
ifconfig versions (same) -- what else can I check?  BTW, the kernel on
both systems is 1.0.

Thanks in advance,
-Mike-

--
Dr. Michael McCarrick
ARCO Power Technologies, Washington DC

 
 
 

"network" entry in route table not set

Post by mmcca.. » Thu, 31 Mar 1994 00:03:36



Date: Tue, 29 Mar 1994 15:03:36 GMT

Hello,

I am tearing my hair out trying to figure out this network
problem!  I can't seem to get a working "network" entry in
my routing table so I can't send to hosts on my lan without
adding an explicit route to each host. Specifically, I start
the network like this:

        ifconfig lo 127.0.0.1
        route add 127.0.0.1 lo

        ifconfig eth0 192.9.200.104
        route add 192.9.200.0 eth0

We are an isolated network, so I don't add a default route
to a gateway. At this point, the route table looks like this:

Destination net/address   Gateway address           Flags RefCnt    Use Iface
network                   *                         UH         0      0 eth0
localhost                 *                         UH         0      0 lo

Notice that the flags for the network are "UH" not "UN" as they should
be for a network (I am inferring this from comparison to a working
Linux system that has a slightly different setup). The problem is that
my system can't reach any other hosts on the local net, not even myself!
I get the dreaded "Network is unreachable" error for anybody except
localhost. If a manually add a route like this: route add 192.9.200.10
then I can reach that host.

Can anyone offer insight here? As I said, I have a working system and
a non-working system with almost the same setup. I compared route and
ifconfig versions (same) -- what else can I check?  BTW, the kernel on
both systems is 1.0.

Thanks in advance,
-Mike-

--
Dr. Michael McCarrick
ARCO Power Technologies, Washington DC

 
 
 

"network" entry in route table not set

Post by Klaus Lichtenwald » Thu, 31 Mar 1994 16:11:25



>Hello,
>    ifconfig eth0 192.9.200.104
>    route add 192.9.200.0 eth0
>Destination net/address   Gateway address           Flags RefCnt    Use Iface
>network                   *                         UH         0      0 eth0
>localhost                 *                         UH         0      0 lo
>Notice that the flags for the network are "UH" not "UN" as they should
>be for a network (I am inferring this from comparison to a working[ ...]

Do you have a /etc/networks (actually /conf/net/networks) entry? SOmething
like this should help:

mynet   192.9.200.0

Klaus
--
_______________________________________________________________________________
Klaus Lichtenwalder, Dipl. Inf.              Tel: +49-89-917571
Buschingstr. 65                              Fax: +49-89-983297

 
 
 

"network" entry in route table not set

Post by Johannes Stil » Fri, 01 Apr 1994 06:19:03



>Hello,

>I am tearing my hair out trying to figure out this network
>problem!  I can't seem to get a working "network" entry in
>my routing table so I can't send to hosts on my lan without
>adding an explicit route to each host. Specifically, I start
>the network like this:

>    ifconfig lo 127.0.0.1
>    route add 127.0.0.1 lo

>    ifconfig eth0 192.9.200.104
>    route add 192.9.200.0 eth0

This route command is the problem. It doesn't know that 192.9.200.0
means the whole network. All other problems result from this.

Quote:>We are an isolated network, so I don't add a default route
>to a gateway. At this point, the route table looks like this:

>Destination net/address   Gateway address           Flags RefCnt    Use Iface
>network                   *                         UH         0      0 eth0
>localhost                 *                         UH         0      0 lo

>Notice that the flags for the network are "UH" not "UN" as they should
>be for a network (I am inferring this from comparison to a working

[...]

Good diagnosis.

The "route" program should recognize "192.9.200.0" as a network address
if it is correctly entered in /etc/networks.

If this doesn't work for whatever reason, you can give an option to
"route" to force it to use "192.9.200.0" as a network address. With a
modern "route" binary, this would be "route add -net 192.9.200.0". You
seem to be using an older version of "route". This is completely OK, but
the syntax might be different, so check the man page or the usage
message for the details of the syntax.

        Johannes