Results 1 to 3 of 3

Thread: How to add second venet interface to openvz guest, or change.

  1. #1
    Join Date
    Feb 2011
    Location
    Istanbul/Turkey
    Posts
    12

    Default How to add second venet interface to openvz guest, or change.

    I've setup a proxmox server with one ethernet and created the guests.

    After a while, I've installed a second nic into the computer and now my openvz guest (linux, ubuntu server edition 10.04) runs with the virtual ethernet (venet) running on the first nic. I want to change it to run on the second nic but I'm at a loss how to do that.

    My network subnets are:
    192.168.2.0/24 and 10.0.100.0/24
    My guest linux server runs on the 192.168.2.0/24 subnet with ip 192.168.2.11 but I want it to be reached on the other subnet with ip 10.0.100.11.

    and, another related question: is it possible to add second virtual venet nic to openvz guest so I can run the guest server on both subnets?

  2. #2
    Join Date
    Apr 2009
    Location
    Ahrensburg; Germany
    Posts
    3,377

    Default Re: How to add second venet interface to openvz guest, or change.

    Quote Originally Posted by timucin View Post
    I've setup a proxmox server with one ethernet and created the guests.

    After a while, I've installed a second nic into the computer and now my openvz guest (linux, ubuntu server edition 10.04) runs with the virtual ethernet (venet) running on the first nic. I want to change it to run on the second nic but I'm at a loss how to do that.

    My network subnets are:
    192.168.2.0/24 and 10.0.100.0/24
    My guest linux server runs on the 192.168.2.0/24 subnet with ip 192.168.2.11 but I want it to be reached on the other subnet with ip 10.0.100.11.

    and, another related question: is it possible to add second virtual venet nic to openvz guest so I can run the guest server on both subnets?
    Hi,
    of couse you can do that. Edit the config-file (in /etc/vz/conf) like this:
    Code:
    NETIF="ifname=eth0,bridge=vmbr0,mac=CA:E3:43:25:79:66,host_ifname=veth104.0,host_mac=00:18:51:C5:C9:22;ifname=eth1,bridge=vmbr10,mac=CA:E3:43:25:79:55,host_ifname=veth104.1,host_mac=00:18:51:C5:C9:11"
    Udo

  3. #3
    Join Date
    Feb 2011
    Location
    Istanbul/Turkey
    Posts
    12

    Default Re: How to add second venet interface to openvz guest, or change.

    thanks udo,

    But, the solution you have given works for veth interfaces, I'm using venet in my guest machine so I need solution for venet interface.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •