OpenVZ Forum


Home » General » Support » Networking problem VE - How to start
Re: Networking problem VE - How to start [message #33545 is a reply to message #33521] Mon, 20 October 2008 21:24 Go to previous messageGo to previous message
locutius is currently offline  locutius
Messages: 125
Registered: August 2007
Senior Member
you are not understanding that no two network devices can share an IP (regardless of whether they are virtual or not)

your 2xNIC each have an IP assigned on the HN, that is good and correct. when you install openvz those devices are renamed but keep their IP assignment

when you create a CT it needs a unique IP. every CT needs a unique IP. no IP can be shared with another device

ask your host for a list of IPs you can use. there is nothing more to configure. take an IP from the list and create a CT using that IP. take another IP from the list and create another CT with that IP

vz will automatically configure the network and your IP's will be able to communicate with each other as if they are genuine independent network devices

the NICs of the HN act as routers to the IPs of the CTs

EDIT: remember to set your host's nameserver IP in all the CT config. it is the nameserver that resolves the addresses of the network devices

when i first installed openvz i made the same mistake as you. i took 20 IP's from the host and assigned them all to the NIC. it seemed the logical thing to do BUT IT IS WRONG. the IP for the CT must be unassigned and the NIC has its own unique IP

the good news is that openvz is much much simpler than you think when you first see it. i advise everyone to read the pdf documentation because then it all becomes easy

[Updated on: Mon, 20 October 2008 21:34]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ/Virtuozzo - SOLVED
Next Topic: iptables classifies ESTABLISHED packets as INVALID randomly
Goto Forum:
  


Current Time: Wed Aug 20 19:45:23 GMT 2025

Total time taken to generate the page: 0.06572 seconds