Timothy Bolz wrote:
> When I start my machine (Debian 3.0) I would think my loopback and my eth0
> would come up. I have to start them every time with ifup lo and ifup eth0.
> Is there a way in Debian to start it when all the other services are started.
If it isn't /etc/network/interfaces, then do a little debugging.
Here's the normal flow of events in Debian.
The kernel boots.
The kernel runs /sbin/init.
/sbin/init read /etc/inittab.
/etc/inittab refers to /etc/init.d/rcS, so init
runs /etc/init.d/rcS.
/etc/init.d/rcS runs all scripts in /etc/rcS.d/ .
(You can be pretty sure this much is working -- your system would be
well hosed if it weren't.)
There's a symlink from /etc/rcS.d/S40networking to
/etc/init.d/networking, so rcS calls /etc/init.d/networking. *
/etc/init.d/networking checks that /sbin/ifup exists and is
executable.
/etc/init.d/networking calls "/sbin/ifup -a"
/sbin/ifup reads /etc/network/interfaces and
/etc/network/ifstate, then decides what to do.
/sbin/ifup calls several scripts in /etc/network. Here's the
output when I run "/sbin/ifup -av".**
Configuring interface lo=lo (inet)
run-parts /etc/network/if-pre-up.d
ifconfig lo 127.0.0.1 up
run-parts /etc/network/if-up.d
Configuring interface eth0=eth0 (inet)
run-parts /etc/network/if-pre-up.d
ifconfig eth0 192.168.0.4 netmask 255.255.255.0 \
broadcast 192.168.0.255 up
route add default gw 192.168.0.1 eth0
run-parts /etc/network/if-up.d
* If this symlink is missing, recreate it with this command.
# update-rc.d network defaults
** Run these two commands: /sbin/ifdown -a; /sbin/ifup -av
You should see output similar to what I saw.
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com [EMAIL PROTECTED]
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug