OpenVZ Forum


Home » General » Support » Sharing IP addresses between stoped VPS's - Is it possible?
Sharing IP addresses between stoped VPS's - Is it possible? [message #8996] Tue, 12 December 2006 18:22 Go to next message
jochum is currently offline  jochum
Messages: 21
Registered: December 2006
Location: Naperville, IL, USA
Junior Member
Hi All:

I was wondering if the following is possible:

Given 2 or more VPS's on the same host, is it possible to have the VPS's share the same IP address? Note, only one VPS would be running at any time.

I would like to run this way, since each of the separate VPS's would be running different versions of software, and I only need to test one version of a VPS at a time.

Obviously, running 2 VPS's with the same IP address, would not be a good thing.

When trying this now (with kernel = 2.6.9-023stab032.1-smp), I am receiving strange error messages in the vps's messages file (looks like it is failing to set up the network, and another set of error messages from sshd complaining about fatal: Privilege separation user sshd does not exist), but I am not sure if these are the same problem or a different effect.

Note, when I set up the VPS's with different IP address, everything works fine.

Thanks for you help and time,

Paul Jochum
Re: Sharing IP addresses between stoped VPS's - Is it possible? [message #8997 is a reply to message #8996] Tue, 12 December 2006 18:49 Go to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Yes its possible to assign the same IP to two VEs, you should edit /etc/sysconfig/vz-scripts/VEID.conf of each VE, and assign the same IP to each.

As long as only one is running concurrently this will not introduce any problems. If you invoke vzctl to manage the config file for you, it will complain about the IP already being assigned. So, you need to manually edit the configs.

Rick Blundell


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Previous Topic: *SOLVED* Disk space issue
Next Topic: *SOLVED* kmemsize y othersockbuf failcnt
Goto Forum:
  


Current Time: Wed Sep 04 10:11:11 GMT 2024

Total time taken to generate the page: 0.05435 seconds