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