OpenVZ Forum


Home » General » Support » Host and VE's all have external IP addresses.
Re: Host and VE's all have external IP addresses. [message #39146 is a reply to message #39118] Fri, 19 March 2010 14:12 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

if you are going to use DHCP you definitely have to use bridged way.

http:// wiki.openvz.org/Veth#Virtual_Ethernet_devices_can_be_joined_ in_one_bridge

Quote:

My concern with the second setup is this line 'Note that the ifcfg-ethN files on the host do not contain any IP information anymore.'. Does this mean that the ifcfg-bzbrN file would have the host ip address and the VE's ifcfg-ethN config files would have the VE's IP addresses.


If I'm not mistaken, in case of fresh RHEL5 based kernels you don't have to reconfigure your physical interface on the HN (let it be eth0 for simplicity). So leave it as is. In particular, with IP address assigned to it. Then create a bridge interface and unite it with eth0 on the HN. Then create veth interface and add it to the existing bridge on the HN. That's it. IP address inside VE can be assigned independently from inside the VE. Don't forget to modify /etc/resolv.conf to make DNS work properly.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Resolved] Destroyed VE but still /proc/bc/$VEID
Next Topic: OpenVZ in ATOM with solusvm
Goto Forum:
  


Current Time: Fri Aug 30 14:20:37 GMT 2024

Total time taken to generate the page: 0.03240 seconds