Questions about Bonding+Bridges

Mr.Embedded

Well-Known Member
Jul 8, 2008
58
3
48
Hi All,

I have spend a few hours researching bonds+bridges in relation to Proxmox, Debian Lenny and OpenVZ with the intent of creating a separate bridge for each vm in order to run Munin for tracking network usage on the vms individually. No VLANs have been used in my testing. Some things are just not clear to me.

I'll keep this really simple and ask my questions in point form. The main gist of things is questioning the ability to manipulate network configuration without rebooting host or vms and to try and understand the correct build up methods for bonding+bridging.

1. When adding bonded and bridging devices via the GUI one must reboot for it to take effect. It is possible to add them manually via /etc/network/interfaces and restart the networking but I have found that there is all kinds of wonkyness that occurs (eg cant ping vms from host or network and vice versa). Sometimes restarting all the VMs will correct this. Does someone have a step by step procedure for doing this manually without needing to reboot the host or the vms?

2. Like the question above, when adding multiple bridges to a single bond (I haven't tried with multiple bonds), it seems that only a reboot will initialize them. When adding/changing the bridge to the vm for use, the vm must be restarted for the configuration to take effect. Although it is possible to manually add multiple bridges to a single bond (tested with same subnet) via /etc/network/interfaces. However in the GUI (and manually) many times there is a complaint about not being able to use a bond that has been assigned already to the first bridge. A reboot will fix this complaint but another issue is that there is only routing to the first bridge in the list and the other vms behind the other bridges become isolated. Is this a bug or correct functionality?

3. Do I have to put each vm/bridge into separate VLANs for this to work properly?

4. How can I further investigate these issues?

Im sure I have more questions but thats it for now.
 
Hi All,

I have spend a few hours researching bonds+bridges in relation to Proxmox, Debian Lenny and OpenVZ with the intent of creating a separate bridge for each vm in order to run Munin for tracking network usage on the vms individually....
Hi,
why you want one bridge for each VM? If you use one bridge for each network (like vmbr1, vmbr50, ...) you can also see the networktraffic for each VM:
Code:
tap151i50d0 Link encap:Ethernet  Hardware Adresse ee:c1:c5:57:00:e6  
          inet6-Adresse: fe80::ecc1:c5ff:fe57:e6/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metrik:1
          RX packets:184354 errors:0 dropped:0 overruns:0 frame:0
          TX packets:421886 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:500 
          RX bytes:219627390 (209.4 MiB)  TX bytes:596124662 (568.5 MiB)
In this case VMID 151 on vlan50 - you see also the traffic...

Udo
 
Im missing something here. Can you explain how to do that in more detail? Right Now I have this flow:

Code:
/--------\   /---------\   /-----\   /-----\   /------\
|Internet|---|eth0/eth1|---|bond0|---|vmbr0|---|VM NIC|
\--------/   \---------/   \-----/   \-----/   \------/

Im not sure how I can see all the network traffic fro each VM separately this way. I can see all the vmbr0 traffic. Can you give an example of an /etc/network/interfaces file that accomplishes this?
 
Stupid me. I am able to use a bond with a single bridge and add the standard vethXXX.0 interfaces to munin and I can see separated traffic just fine. This is a perfect solution.
 

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!