OpenVZ Forum


Home » General » Support » Exposing a virtual node as a public machine
Re: Exposing a virtual node as a public machine [message #29356 is a reply to message #29344] Fri, 11 April 2008 08:20 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

This is done pretty much the same as assigning a second IP address to the system. In this case, however, you should assign that IP to a container, not to the host system (using vzctl set CTID --ipadd x.x.x.x --save). Usually, this is all what's required. Surely this x.x.x.x IP address should be routable to your box (i.e. you can not assign arbitrary addresses -- use only those dedicated to you by your hosting/colocation/Internet provider).

Note that

1. Host system acts as a router for container, so traffic goes through the host system anyway.

2. If you don't want host system to be used as a router, you can use it as a bridge. See http://wiki.openvz.org/Veth for details.

3. If you don't want container's traffic to go through host system, you can assign a real network card/interface to that container, as described in this thread by vaverin.

Finally, see http://wiki.openvz.org/Category:Networking


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Fri, 11 April 2008 08:20]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ and Lustre
Next Topic: My 1st VPS: failed: Temporary failure in name resolution
Goto Forum:
  


Current Time: Sun Aug 31 09:44:52 GMT 2025

Total time taken to generate the page: 0.07362 seconds