I wouldn't create an ifcfg-interfacename for each virtual interface...too
cluttered, IMO.  By adding the IP addresses for the virtual hosts to the
"virtualhosts" script I put in, below, you have a lot less housekeeping,
IMO.

On Thu, 30 Nov 2000, K Old wrote:

> Mike,
>
> Should I just add
>
> ONBOOT=yes
>
> in each "ifcfg-interfacename" file to get this IP to start on bootup?
>
> Sorry for such a dumb question, but thanks for the help.
>
> Kevin
>
> >From: Mike Burger <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: IP's not starting on bootup
> >Date: Thu, 30 Nov 2000 12:57:52 -0500 (EST)
> >
> >I use a "virtualhosts" script, consisting of:
> >
> >#!/bin/bash
> >
> >names="your.ip.address.1 your.ip.address.2 etc "
> >
> >count=0
> >
> >if [ "$1" = "stop" ]; then
> >   for addr in $names
> >   do
> >         /sbin/route del $addr
> >         /sbin/ifconfig eth0:$count- $addr
> >         let count=$count+1
> >   done
> >elif [ "$1" = "start" -o "$1" = "" ]; then
> >   for addr in $names
> >   do
> >         /sbin/ifconfig eth0:$count $addr netmask <your netmask> broadcast
> ><your broadcast>
> >         /sbin/route add -host $addr dev eth0:$count
> >         let count=$count+1
> >   done
> >else
> >   echo 'Usage: '$0' [start|stop]'
> >fi
> >
> >On Thu, 30 Nov 2000, K Old wrote:
> >
> > > Hello,
> > >
> > > I'm having a problem with the IP's on my server. I'm having to manually
> > > start a few of the IP's that are on my server (ifup ifcfg-eth0:[some
> > > number]) . It seems that every new IP I add to the server must be
> >manually
> > > restarted whenever the server is rebooted.
> > >
> > > I was wondering if anyone knew of a way to start all of the IP's when
> >the
> > > server boots up?
> > >
> > > Thanks,
> > > Kevin Old
> > > [EMAIL PROTECTED]
> > >
> 
>>_____________________________________________________________________________________
> > > Get more from the Web.  FREE MSN Explorer download :
> >http://explorer.msn.com
> > >
> > >
> > >
> > > _______________________________________________
> > > Redhat-list mailing list
> > > [EMAIL PROTECTED]
> > > https://listman.redhat.com/mailman/listinfo/redhat-list
> > >
> >
> >
> >
> >_______________________________________________
> >Redhat-list mailing list
> >[EMAIL PROTECTED]
> >https://listman.redhat.com/mailman/listinfo/redhat-list
>
> _____________________________________________________________________________________
> Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to