[PVE-User] Multiple network interfaces in OpenVZ guest

Gerry Demaret ml at x-net.be
Tue Feb 23 14:31:24 CET 2010


Peter Christenson wrote:
> Gerry can you give an example of adding a 2nd network interface with 
> vzctl. --help didn't help

Hi Peter,

To add an interface to an OpenVZ container you can use the following
command:

    vzctl set <VMID> --netif_add <interface>,,,,<bridge> --save

Example:

    vzctl set 101 --netif_add eth1,,,,vmbr1 --save

That should do what you need.

Gerry.



More information about the pve-user mailing list