[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Network is unreachable. HELP!



>Date: Fri, 4 Feb 2000 15:13:30 +0100 (CET)
>From: Ron Rademaker <ron@wep.tudelft.nl>
>
>What's in your /etc/init.d/network??
>What does it say when you do 'ifconfig'?
>What does it say when you do 'route'?
>
>Ron
>
>
>> Hi
>> 
>> I have a 3COM 3c905B Cyclone 100Base Tx (at irq 5)
>> 
>> But at boot time I got "Network is unreachable".
>> 
>> Can you help me, please.
>> 
>> ...

 The /etc/init.d/network is

erlang:~# cat /etc/init.d/network 
#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=193.136.205.39
NETMASK=255.255.255.224
NETWORK=193.136.205.32
BROADCAST=193.136.205.63
GATEWAY=193.136.205.97
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1

 When I do /etc/init.d/network  it gives the following messages

erlang:~# /etc/init.d/network 
SIOCADDRT: Invalid argument
SIOCADDRT: Invalid argument
SIOCADDRT: Network is unreachable

 The problem is with both route commands.

 The ifconfig gives:

erlang:~# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0 

eth0      Link encap:Ethernet  HWaddr 00:50:DA:48:E0:EB  
          inet addr:193.136.205.39  Bcast:193.136.205.63  Mask:255.255.255.224
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2625 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          Collisions:0 
          Interrupt:5 Base address:0xe800 

 The route gives:

erlang:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
193.136.205.32  *               255.255.255.224 U     0      0        0 eth0
erlang:~# 

If you can help me I will appreciate.


Pedro Quaresma de Almeida
e-mail: quaresma@hilbert.mat.uc.pt




Reply to: