Q: 0.99pl12 route add problem, SIOCADDRT: network is unreachable

Q: 0.99pl12 route add problem, SIOCADDRT: network is unreachable

Post by Andreas Kle » Sat, 28 Aug 1993 20:03:22



Hello !

I have an upgraded SLS 1.01 (developement, network, X11 = SLS 1.03).
0.99 pl11 kernel worked fine.

Yesterday I installed the new 0.99pl12 kernel.
Since that time I have trouble with the route add command.

The route add command from rc.net tells me: Network unreachable !!!
Here is what happens, when I do an sh -x /etc/rc.net:

+ NET=192.0.2.0
+ ifconfig lo 127.0.0.1 up netmask 255.255.255.0
+ route add 127.0.0.1 lo
+ [ 192.0.2.128 !=  ]
+ [  !=  ]
+ ifconfig eth0 192.0.2.128 up netmask 255.255.255.0
+ route add default eth0
SIOCADDRT: Network is unreachable
+ route add 192.0.2.128 eth0
SIOCADDRT: Network is unreachable

The ethernet card is recognized correctly:

SLIP: version 0.7.5 (4 channels): OK
eth0: WD80x3 at 0x280,  00 00 C0 25 FD 2D WD8013, IRQ 9, shared memory at 0xc8000-0xcbfff.

ifconfig shows, that the network is setup correctly:

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

eth0      IP ADDR 192.0.2.128  BCAST 192.0.2.255  NETMASK 255.255.255.0
          MTU 1500  METRIC 0  POINT-TO-POINT ADDR 0.0.0.0
          FLAGS: 0x0043 ( UP BROADCAST RUNNING )

ping tells me, that networking stuff is running.

What's wrong. I thought of compiling route new, but I didn't
find the source, nor could I find the route command in the
installation log files to see, in which package it is contained.

Any help would be nice. *** Please respond with E-mail ***

Thanks in advance ...

Andreas
--

\-/   41469 Neuss     Germany     phone +49/ 2137 12609    +-----------------+

 
 
 

Q: 0.99pl12 route add problem, SIOCADDRT: network is unreachable

Post by Eric E. Bard » Sun, 29 Aug 1993 06:50:17



Quote:>Yesterday I installed the new 0.99pl12 kernel.
>Since that time I have trouble with the route add command.

The correct sequence of route commands should be ---

route add ${NETWORK} ${IPDEV}
route add default gw ${ROUTER}

where
        IPDEV is eth0 or slip0 or ...
        IPADDR = 192.148.241.125 (for example)
        NETWORK= 192.148.241.0   (same but zero)
        ROUTER = 192.148.241.1   (for example)

The important thing to reallize is that the second route is dependent
on the first one.
--
Eric

 
 
 

1. Network problem on SLS .99pl12 (Network is unreachable)

Hello Linuxers,

I try to install networking in SLS .99pl12. I've installed packages a + b1 (that includes tcpip). I then modified the file /etc/hosts like this:

146.136.1.99    modem1
146.136.1.0     network

I set /etc/host to modem1
and /etc/domain to ntb.ch

the I did a reboot:

by executing /etc/rc.net there is the following error message:

SIOCADDRT: Network is unreachable

if I do a /etc/ifconfig all seems to look proper.

I tried to start networking without /etc/rc.net by first installing loopback device and the device eth0.

ifconfig eth0 146.136.1.99 netmask 255.255.255.0 broadcast 146.136.1.255

(netmask is correct)

route add 146.136.1.99   ---->  SIOCADDRT: Network is unreachable

the ethernet card is a WD8003 and is correctly detected at boot time.

What's Wrong ???

Please send e-mail

thanks thomas

---

2. Solaris and SunOS

3. rtnetlink: network unreachable for Routing for multiple uplinks using ip route add

4. Install Sol 2.5 patch on SS 20

5. ioctl(SIOCADDRT) device route: Network unreachable

6. Netscape selling Linux ???

7. route add ...-> Network is unreachable ?

8. svmon problem

9. SIOCADDRT: Network is unreachable

10. SIOCADDRT: Network Unreachable

11. SIOCADDRT: Network is unreachable?

12. SIOCADDRT network unreachable!