OpenVZ Forum


Home » Mailing lists » Users » Access to private and public IP in VPS
Re: Access to private and public IP in VPS [message #23226 is a reply to message #23206] Wed, 14 November 2007 14:01 Go to previous message
Frederik is currently offline  Frederik
Messages: 5
Registered: November 2007
Junior Member
On Wed, 14 Nov 2007 10:51:48 +0100, Arjan Schrijver wrote:

> I actually did this a few days ago.
> Just add both the public and the private IP address to the VE using
> these commands (don't use veth interfaces):
> 
> HN# vzctl set 100 --ipadd [publicip] --save HN# vzctl set 100 --ipadd
> [privateip] --save
> 
> In the VE you should now have two ethernet devices: venet0 and venet0:1
> To make it actually work, you have to add routes inside the VE to the
> network that isn't available using the default route:
> 
> VE# route add -net [privatenetwork] netmask 255.255.255.0 gw [privateip]

Thank you. The above route command was the missing link in my setup. I 
already tried using the private IP of the HN as the gw for that network, 
but that did not work. Using the VEs own private IP as the gw did indeed 
the trick.

-- 
Frederik
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I mount /tmp on VEs with noexec,nosuid options?
Next Topic: Problems with plesk + openvz
Goto Forum:
  


Current Time: Thu Oct 09 06:39:19 GMT 2025

Total time taken to generate the page: 0.16346 seconds