LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Starting ipvsadm config at boot time

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Starting ipvsadm config at boot time
From: "Kevin Tucker" <kevin@xxxxxxxx>
Date: Fri, 16 Nov 2007 12:15:47 +0200
Thanks Graeme,

I realised once I'd sent the mail that I meant ifconfig and not ipvsadm :-)

But, your answer was exactly what I wanted to know.

Much appreciated.

Regards,
Kevin

-----Original Message-----
From: Graeme Fowler [mailto:graeme@xxxxxxxxxxx] 
Sent: 16 November 2007 12:01 PM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] Starting ipvsadm config at boot time

On Fri, 2007-11-16 at 11:31 +0200, Kevin Tucker wrote:
> I have used the following config to setup my realservers:
> 
> /sbin/ifconfig lo:110 xxx.xxx.xx.130 broadcast  xxx.xxx.xx.130 netmask
> 0xffffffff up
> /sbin/ifconfig lo:110
> /sbin/route add -host xxx.xxx.xx.130 dev lo:110
> 
> However, when I reboot the machine, these settings disappear.
> 
> Is there a way to get these to stay at boot time?

Either put them in your rc.local file (which will be in /etc/rc.local in
most cases), or use your distro's network configuration system to have
them brought up at boot.

On a RedHat based system you'd
create /etc/sysconfig/network-scripts/ifcfg-lo:110 and put in it:

DEVICE=lo:110
IPADDR=[IP of your VIP]
NETMASK=255.255.255.255
NETWORK=[IP of your VIP]
BROADCAST=[IP of your VIP]
ONBOOT=yes
NAME=loopback110

Graeme





<Prev in Thread] Current Thread [Next in Thread>