Hi Mike,

Or you could use the scripts that already exist by creating the file:
ifcfg-eth0-range0

In the Directory:
/etc/sysconfig/network-scripts/

With contents similar to:
IPADDR_START=10.10.10.20
IPADDR_END=10.10.10.40
CLONENUM_START=0
NETMASK=255.255.255.0

Read the /etc/sysconfig/network-scripts/ifup-aliases file for more details.

Have fun,
-- 
_________________________________________________________________
 Brian Ashe                     CTO
 [EMAIL PROTECTED]              Dee-Web Software Services, LLC.
 http://www.dee-web.com/
-----------------------------------------------------------------
You don't have to swim faster than the shark...
You just have to swim faster than the people you're with.

Thursday, November 30, 2000, 1:23:26 PM, you wrote:

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

MB> 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
>>



MB> _______________________________________________
MB> Redhat-list mailing list
MB> [EMAIL PROTECTED]
MB> 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