About Network Configuration [message #39824] |
Mon, 07 June 2010 13:42 |
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 |
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
|
|
|