2 NIC inside openvz

blackbumer

New Member
Jul 7, 2009
16
0
1
Hi. Iwould like create an openvz VE(firewall and squid app) with 2NICs.
first NIC will be venet 10.0.0.0/24
second NIC veth to vmbr1 (eth0 external iface)

How to make an empty VZ with two NICs?
in web gui i choose venet first with assigned ip
after that i run vzctl set 206 --netif_add eth1 --save
inside 206 container(centos) i run system-config-network-tui and add eth1 device with DHCP...
is it right way?
 
Simply use bridged mode. The current web interface only allows to configure one interface for openvz, so you need to use vzctl to add a second.

But I suggest to use KVM for that purpose anyways. For KVM you can add 2 nics on the web interface.

Or even better, use an external firewall.
 

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!