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

My network script running before eth0 is created



Hi all!

I am having a problem with setting my network up.
I basically want to run the following commands at bootup:
ifconfig eth0:0 1.1.1.1 netmask 255.0.0.0 broadcast 1.255.255.255
route add -net 1.0.0.0 dev eth0:0

Here is /etc/rc.boot/IansStuff

#!/bin/sh
echo "IAN'S STUFF STARTED..."
ifconfig eth0:0 1.1.1.1 netmask 255.0.0.0 broadcast 1.255.255.255
route add -net 1.0.0.0 dev eth0:0
echo "IAN'S STUFF COMPLETE"

And here is what happens at startup:

Configuring serial ports....done.
/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
IAN'S STUFF STARTED...
SIOCSIFADDR: Operation not supported by device
eth0:0: unknown interface.
SIOCSIFNETMASK: Operation not supported by device
SIOCSIFBRDADDR: Operation not supported by device
eth0:0: unknown interface.
SIOCADDRT: Operation not supported by device
IAN'S STUFF COMPLETE
INIT: Entering runlevel: 2
Starting system log daemon: syslogd klogd.
Starting PCMCIA services: modules cardmgr.
Starting kerneld, version 2.1.85 (pid 132)
Setting up IP spoofing protection...done.
Starting base networking daemons: portmap inetd.
Starting domain name service: namedloading device 'eth0'...
.

As you can see eth0 is not created until after my script runs, so
it fails  :-(
Where should I put my script?

Thanks
Ian
-- 
Ian Lynagh - ian@lynagh.demon.co.uk
http://home.sol.no/~balchen/igloo/

How does the guy who drives the snowplow get to work in the mornings?


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: