OpenVZ Forum


Home » General » Support » About Network Configuration
About Network Configuration [message #39824] Mon, 07 June 2010 13:42 Go to next message
eywj is currently offline  eywj
Messages: 4
Registered: June 2010
Junior Member
Hi:

I install the openvz in a physical machine and create several containers on it. Now I have several spare public IP addresses, and I want to assign each of them to one container. I wonder which way is proper to implement this?

Thank you!

Bill

[Updated on: Tue, 08 June 2010 16:14]

Report message to a moderator

Re: About Network Configuration [message #39835 is a reply to message #39824] Tue, 08 June 2010 19:08 Go to previous message
jrabraga is currently offline  jrabraga
Messages: 8
Registered: May 2010
Junior Member
Hi
I need masquerede the VEs

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

After, I set eth0, eth0:1 eth0:2 with pubic IPs and

iptables -t nat -A PREROUTING -d 200.200.200.200 -j DNAT --to 192.168.1.1

Previous Topic: NFS vz container : "sunrpc.ve_allow_rpc" is an unknown key
Next Topic: share tmpfs volume between VEs
Goto Forum:
  


Current Time: Sun Jul 14 11:43:12 GMT 2024

Total time taken to generate the page: 0.02275 seconds