2 Networks on VZ-container

cornholio

New Member
Jan 12, 2012
2
0
1
Hello community,
I want to configure my VZ-container having a WAN and a Private IP. My node has 2 NICs, one is connected to the internet (WAN) and the other to a private management network.
So, I created a bridge on proxmox webinterface with a private IP from the management network and added a private IP to the VZ-container, that worked.

But now I noticed that you can't ping from the VZ-container to a private IP but you can ping VZ-container from other devices. So I turned wireshark to check what's going on and found out that the VZ-container is sending pakets with wrong source IP to the management network. It sends all IP pakets to the private management network with the WAN IP as source.

How can I manage VZ-container using the right IP?

Thanks a lot!

Regards,
Anton

P.S. Node's running with Proxmox 1.9 and is up2date
The VZ-container is running Ubuntu 8.04 LTS and is up2date
 
Last edited:
Hello community,
I want to configure my VZ-container having a WAN and a Private IP. My node has 2 NICs, one is connected to the internet (WAN) and the other to a private management network.
So, I created a bridge on proxmox webinterface with a private IP from the management network and added a private IP to the VZ-container, that worked.

But now I noticed that you can't ping from the VZ-container to a private IP but you can ping VZ-container from other devices. So I turned wireshark to check what's going on and found out that the VZ-container is sending pakets with wrong source IP to the management network. It sends all IP pakets to the private management network with the WAN IP as source.

How can I manage VZ-container using the right IP?

Thanks a lot!

Regards,
Anton

P.S. Node's running with Proxmox 1.9 and is up2date
The VZ-container is running Ubuntu 8.04 LTS and is up2date
Hi Anton,
simply add a another NIC to the second bridge. Then you have two NICs inside the OpenVZ-VM.

With an config entry like this in /etc/vz/conf/VMID.conf you get two devices (in this case VMID 102 and vmbr0 + vmbr10):
Code:
NETIF="ifname=eth0,bridge=vmbr0,mac=3E:14:D3:50:AB:18,host_ifname=veth102.0,host_mac=00:18:51:09:90:AD;ifname=eth1,bridge=vmbr10,mac=1A:C1:37:A1:75:10,host_ifname=veth102.10,host_mac=00:18:52:34:79:AD"

Udo
 
Hi Anton,
simply add a another NIC to the second bridge. Then you have two NICs inside the OpenVZ-VM.

With an config entry like this in /etc/vz/conf/VMID.conf you get two devices (in this case VMID 102 and vmbr0 + vmbr10):
Code:
NETIF="ifname=eth0,bridge=vmbr0,mac=3E:14:D3:50:AB:18,host_ifname=veth102.0,host_mac=00:18:51:09:90:AD;ifname=eth1,bridge=vmbr10,mac=1A:C1:37:A1:75:10,host_ifname=veth102.10,host_mac=00:18:52:34:79:AD"

Udo

Hi Udo,
first thanks for the answere.

I added now the device to my VM, it works. How do I manage that the VM automaticaly sets the IP address + nestmask after reboot? When I set configuration in /etc/network/interfaces (inside the VM) its reseted after the reboot.

Regards,
Anton