how to set two ip address for OPENVZ

ransom

New Member
Apr 25, 2009
23
0
1
I have builded a Openvz,network is "Virtual Network".
In Openvz,I see two files in /etc/sysconfig/network-scripts/
ifcfg-venet0
ifcfg-venet0:0

1)what is the different with the two config files?
2)is it possible to set two ip addresses for this Openvz,if yes,how?Acutally I have set two ip addresses according to the way "One Network card has two ips in linux",but it didn't work.
3)If "Virtual Network" can't set two ip addresses,can "Bridged Ethernet" do that?
 
I have builded a Openvz,network is "Virtual Network".
In Openvz,I see two files in /etc/sysconfig/network-scripts/
ifcfg-venet0
ifcfg-venet0:0

1)what is the different with the two config files?
2)is it possible to set two ip addresses for this Openvz,if yes,how?Acutally I have set two ip addresses according to the way "One Network card has two ips in linux",but it didn't work.
3)If "Virtual Network" can't set two ip addresses,can "Bridged Ethernet" do that?

if you use venet (which is recommended on OpenVZ) IP addresses are set from the host, not inside the guest. just add the second IP via the web interface (separated by a space).

if you want to see details, e.g. do this from a commandline, see 'vzctl'.
(type 'man vzctl').
 
if you use venet (which is recommended on OpenVZ) IP addresses are set from the host, not inside the guest. just add the second IP via the web interface (separated by a space).

if you want to see details, e.g. do this from a commandline, see 'vzctl'.
(type 'man vzctl').

is it possible to assign more then 1 net (eg several vlans) to a container via proxmox? it seems to work, wenn adding the bridges to the configfile directly


sven
 
is it possible to assign more then 1 net (eg several vlans) to a container via proxmox? it seems to work, wenn adding the bridges to the configfile directly

Yes, it works when you add it directly (but the web interface does not support that currently).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!