OpenVZ Forum


Home » General » Support » Private/public IPs on VEs
Re: Private/public IPs on VEs [message #33994 is a reply to message #33981] Mon, 24 November 2008 13:24 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

it is a possible scenario.

You may use either venet interface or veth inside VE.
I'll try to describe in a few words venet case. You can read more about veth interface at the following page http://wiki.openvz.org/Veth .

- set appropriate sysctl parameters for example as described
http://wiki.openvz.org/Quick_installation#sysctl
- to assign an ip address to your VE use "vzctl set $VEID --ipadd $IP [-save]"
- make sure that default gateway inside each VE pointed to venet interface. you can also set explicit routes inside VE i.e.
ip route add $PRIAVTE_NETWORK src $PRIVATE_IP dev venet0
ip route add $PUBLIC_NETWORK src $PUBLIC_IP dev venet0
- to provide an access to internet for your "private" VEs you can use SNAT
http://wiki.openvz.org/Using_NAT_for_container_with_private_ IPs
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setting Resource Limit's
Next Topic: [solved] Checkpointing does not work ?
Goto Forum:
  


Current Time: Sat Jul 19 21:57:02 GMT 2025

Total time taken to generate the page: 0.08093 seconds