Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Starting ipvsadm config at boot time

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


kevin at tucj

Nov 16, 2007, 1:31 AM

Post #1 of 4 (512 views)
Permalink
[lvs-users] Starting ipvsadm config at boot time

Hi,

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?

Thanks in advance,
Kevin Tucker


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


graeme at graemef

Nov 16, 2007, 2:01 AM

Post #2 of 4 (464 views)
Permalink
Re: [lvs-users] Starting ipvsadm config at boot time [In reply to]

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


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


kevin at tucj

Nov 16, 2007, 2:15 AM

Post #3 of 4 (465 views)
Permalink
Re: [lvs-users] Starting ipvsadm config at boot time [In reply to]

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 [at] graemef]
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


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Nov 16, 2007, 4:46 AM

Post #4 of 4 (464 views)
Permalink
Re: [lvs-users] Starting ipvsadm config at boot time [In reply to]

On Fri, 16 Nov 2007, Kevin Tucker wrote:

> However, when I reboot the machine, these settings disappear.

it's what happens when you reboot computers

> Is there a way to get these to stay at boot time?

no. you run them in the rc scripts each startup

Joe

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.