[CLUE-Tech] almost there with Debian

Dave Price davep at support-one.com
Sat Dec 23 16:54:11 MST 2000


Here's how mine is set up:

An executable script called network in /etc/init.d:

$ more network
#! /bin/sh
ifconfig lo 127.0.0.1
route add -net 127.0.0.0
IPADDR=216.150.210.60
NETMASK=255.255.255.224
NETWORK=216.150.210.32
BROADCAST=216.150.210.63
GATEWAY=216.150.210.62
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
route add -net ${NETWORK}
[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1

Then a symbolic link to this script in /etc/rcS.d called S40network
(In sys5 startups, the nober of the script dictates the order they are runm
and S means startup) ... 
$ pwd
/etc/rcS.d
$ ls -l S40network
lrwxrwxrwx   1 root     root           17 Dec 11 10:51 S40network ->
../init.d/n
etwork
$   
make this (as root) with:

ln -s /etc/init.d/network /ect/rcS.d/S40network

hope this helps....
aloha,
dave

At 11:11 PM 12/22/00 -0700, you wrote:
>Since a recent CLUE meeting, I've been spending some
>time investigating Debian.  With Mandrake, it's all smooth
>and it just works, but I don't learn much about what's
>under the hood.  With Debian, it's not smooth and it
>doesn't just work, probably because of my ignorance.
>When I find out how to do something in Debian, it makes
>sense and I feel more in control.  I like that.  But finding
>out how to do something can be hard, even with
>on-line resources.
>
>For example, I want my Debian machine to participate
>on a network.I figured out to create a file /etc/modutils/network
>and put "alias eth0 3c59x" in it.  Rebooting and it finds the
>Ethernet card just fine.  But ping still gives me "network
>is unreachable".  I can manually start it with
>'ifconfig eth0 192.168.1.9 netmask 255.255.255.0 up'
>and then everything is fine.  But I don't know where to
>put the ifconfig command in the startup scripts so I don't
>have to type it in.  I'm sure this is simple, but I can't
>figure it out.  I did a grep for ifconfig in /etc and its
>subdirectories and it's not in any scripts.
>
>I think I would like Debian if it didn't make me feel so
>technically inadequate.
>
>-- 
>Roger Frank
>Ponderosa High School, Colorado
>_______________________________________________
>CLUE-Tech mailing list
>CLUE-Tech at clue.denver.co.us
>http://clue.denver.co.us/mailman/listinfo/clue-tech
>



More information about the clue-tech mailing list