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.