NET-2: Problems with /etc/rc.net

NET-2: Problems with /etc/rc.net

Post by Thomas Heylige » Sun, 18 Jul 1993 19:01:43



My problems concerning the net-2 release coming with SLS-test or MCC-interim.
When configuring the loopbackdevice as described in the README files the following
error message concerning the /etc/rc.net especially /usr/etc/route occures.

SIOCADDRT:Network is unreachable

This errormessage is produced by the following two lines in the /etc/rc.net script.

$ROUTE add $HOSTNAME
$ROUTE add default gw 130.88.2.2 metric 1

My script:

# /etc/rc.net
# Linux networking startup script.  Should be run by /etc/rc.local at
# boot time.  Configures the interfaces and starts the deamons.
# It assumes hostname has been set.
#
#
CONFIG=/usr/etc/ifconfig
INETD=/usr/etc/inetd
ROUTE=/usr/etc/route

HOSTNAME=`/bin/hostname`

# You may need to add a /usr/etc/ifsetup command to set the parameters
# for your ethernet card.

$CONFIG lo 127.0.0.1
#$CONFIG eth0 netmask 255.255.255.0 $HOSTNAME
$ROUTE add loopback
$ROUTE add $HOSTNAME
$ROUTE add default gw 130.88.2.2 metric 1

if [ -x $INETD ]; then
        echo starting $INETD
        $INETD
fi

Many thanks TOM
--
*****************************************************************
* InHouse  : tom                                                *




* --------------------------------------------------------------*
*                                                               *
*****************************************************************

 
 
 

NET-2: Problems with /etc/rc.net

Post by A. V. Le Bla » Thu, 22 Jul 1993 02:36:38



Quote:>My problems concerning the net-2 release coming with SLS-test or MCC-interim.
>When configuring the loopbackdevice
....
>This errormessage is produced by the following two lines in the /etc/rc.net script.

>$ROUTE add $HOSTNAME
>$ROUTE add default gw 130.88.2.2 metric 1

If you are using net-2 on a loopback only machine, I think you need to set
the address of the machine to 170.0.0.1, the same as the loopback device.
You certainly cannot use the route command to add a gateway machine other than
yourself.

     -- Owen


 
 
 

NET-2: Problems with /etc/rc.net

Post by Ralf Fla » Thu, 22 Jul 1993 04:16:45



Quote:>If you are using net-2 on a loopback only machine, I think you need to set
>the address of the machine to 170.0.0.1, the same as the loopback device.

I think he just mistyped that ^^^^^^^^^^, should be 127.0.0.1

Ralf

---
----------------------------------------------------------------------

University of Erlangen-Nuernberg , Germany
----------------------------------------------------------------------

 
 
 

NET-2: Problems with /etc/rc.net

Post by Amos Shapi » Thu, 22 Jul 1993 08:07:37



Quote:|(Thomas Heyligers) writes:

|>My problems concerning the net-2 release coming with SLS-test or MCC-interim.
|>When configuring the loopbackdevice
|....
|>This errormessage is produced by the following two lines in the /etc/rc.net script.
|>
|>$ROUTE add $HOSTNAME
|>$ROUTE add default gw 130.88.2.2 metric 1

|If you are using net-2 on a loopback only machine, I think you need to set
|the address of the machine to 170.0.0.1, the same as the loopback device.
|You certainly cannot use the route command to add a gateway machine other than
|yourself.

        -- Owen

Dunno how much this is corrdct but one thing is for sure: the machine address
Owen is talking about must be 127.0.0.1,  NOT 170.0.0.1

Hope this helps,

--Amos
--
--Amos Shapira (Jumper Extraordinaire) |  "It is true that power corrupts,
C.S. System Group, Hebrew University,  |   but absolute power is better!"
Jerusalem 91904, ISRAEL                |

 
 
 

NET-2: Problems with /etc/rc.net

Post by jsch.. » Tue, 20 Jul 1993 01:30:46



>>$CONFIG lo 127.0.0.1
>>#$CONFIG eth0 netmask 255.255.255.0 $HOSTNAME

  ^remove the #
 you config your loopback but not eth0
May help
Joerg
 
 
 

NET-2: Problems with /etc/rc.net

Post by jsch.. » Tue, 20 Jul 1993 01:09:44



>$CONFIG lo 127.0.0.1
>#$CONFIG eth0 netmask 255.255.255.0 $HOSTNAME

 ^remove the #
you config your loopback but not eth0
May help
Joerg