I don't know much about aliases and such but I did want to make sure I ran my rc.ipchains script at the appropriate time. Some diggging through the startup scripts yeilded the fact that /sbin/ifup-local, if it exists, is called each time an interface is brought up so I wrote a script that tests for the interface name and if it is the outgoing interface I call the script. here it is: #/sbin/ifup-local if [ "$1" = "eth1" ] ; then exec /etc/rc.d/rc.ipchains fi At least I think it does wha I want if some of you gurus see something dumb, let me know but it definetly brings up the interface. You should be able to test for eth0 instead and run the alias scripts in the if block. Bret Greg W wrote: > > You should be able to alias the extra IPs so they are permanent, have a > look at some of the how-to's, I am not in front of Linux box now so wont > speculate as to the file name. If you have X up, use the control panels > network tool > > its quite ok to run your ipchains script from rc.local, there is no > format.......just add near the end........ > > *********** REPLY SEPARATOR *********** > > On 26/01/00 at 18:20 Chad W. Skinner wrote: > > >I have created a script to add 2 ips to interface eth0. This script simply > >contains the commands > > > >ifconfig eth0:0 192.168.0.2 netmask 255.255.255.0 > >ifconfig eth0:0 192.168.0.3 netmask 255.255.255.0 > > > >When I reboot my machine i simply run this script to add the interfaces, > but > >would like the server to add them automatically. I believe I need to add > >these to rc.local, but is there a standard way of doing this so it works > >properly or reports errors. For example, what if something goes wrong and > >eth0 is not up when the above commands are issued? > > > >Also, what scripts bring up the initial interfaces? and where should the > >commands for IP chains be placed so they run at startup? > > > >Thanks, > >Chad W. Skinner > > > > > >-- > >To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" > >as the Subject. > > Regards > > Greg Wright > IT Consultant Sydney Australia > > -- > > *** Please trim any replies *** > *** Please turn off HTML in your email *** > *** Please don't use the list for test messages *** > *** Why not read the archives? http://moongroup.com/redhat.phtml *** > > -- > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" > as the Subject.
begin:vcard n:Hughes;Bret tel;fax:918.587.0131 tel;work:918.587.0131 x-mozilla-html:FALSE url:www.elevating.com org:Elevating Communications Inc adr:;;PO Box 1323;Tulsa;OK;74101-1323;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Chief Solutionist/President x-mozilla-cpt:;19888 fn:Bret Hughes end:vcard