OpenVZ Forum


Home » Mailing lists » Users » Can I share host ip with guest?
Re: Can I share host ip with guest? [message #25373 is a reply to message #25369] Fri, 21 December 2007 10:40 Go to previous messageGo to previous message
Peter Machell is currently offline  Peter Machell
Messages: 5
Registered: December 2007
Junior Member
On 21/12/2007, at 8:13 PM, H.H. Ding wrote:

> Because lack of ip address, I want share host os ip with guest os,
> howto?

You cannot have two devices with the same IP address on one network.  
This is a fundamental law of networking and there is no way around it.

However, by using an internal IP address on the guests, and port  
forwarding from the host, you can still present your services to the  
Internet from the one external IP.

The instructions at http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs 
  will show you how to do this.

However, I find it easier to have a NAT router above the host  
terminating the external IP, and use internal IPs on the same subnet  
for both the host and the guests.

I hope this helps.

regards,
Peter.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Live Migration Fails
Next Topic: *SOLVED* howto detect veth ip address
Goto Forum:
  


Current Time: Thu Jul 11 20:13:39 GMT 2024

Total time taken to generate the page: 0.02294 seconds