On Mon, Jun 01, 1998 at 11:18:24PM +0100, Ian Lynagh wrote: > 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 I'd put this in /etc/init.d/network
And you will need to add ip_alias to /etc/modules > > 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 - [EMAIL PROTECTED] > http://home.sol.no/~balchen/igloo/ > > How does the guy who drives the snowplow get to work in the mornings? > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Nils -- *-----------------------------------------------------------------------------* | Quotes from the net: L> Linus Torvalds, W> Winfried Truemper | | L>this is the special easter release of linux, more mundanely called 1.3.84 | | W>Umh, oh. What do you mean by "special easter release"?. Will it quit | * W>working today and rise on easter? *
pgptM4qBRbOrE.pgp
Description: PGP signature