[pve-devel] Network Bridging Patch

Jason Villalta jason at rubixnet.com
Mon Jul 9 15:12:56 CEST 2012


I have been posting information to this forum thread in regard to a
problem/patch for the network bridge configuration.
http://forum.proxmox.com/threads/10110-New-network-configuration-with-bridge-vlan-interfaces

Basically the problem with the existing configuration is if you want to
utilize the vmbr0 interface as a management interface or a tagged vlan
trunk to a virtual machine it stops working as soon as you start a virtual
machine using a vlan tag.  This is because when bringing the respective
vlan bridge online it is bridging to the underlying physical interface's
vlan sub interface (ex, eth0.2, bond0.3).  This causes the existing bridge
root interface to stop working.  I verified this with tcpdump on vmbr0.

The solution is to push vlan sub interface up to the vmbr0 level.  (ex.
vmbr0.2 vmbr0.3) then create new vlan bridges on these sub interfaces.
 This enables vmbr0 to be used as a management interface and as a tagged
trunk to a virtual machine as a router on stick.  At the same time virtual
machine vlan tags can be be used with virtual machines in Proxmox.

The only changes need for this were in the Network.pm script.

1) Changed the vconfig command to create a subinterface on vmbr0 instead of
the underlay physical interface.
2) Eliminated the needs for some logic to determine what type of physical
interface is under vmbr0.
3) Create virtual machine bridge as before but joined sub interface of
vmbr0 to the bridge instead of the sub interface of physical interface.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20120709/b2e3f97c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Network.pm.patch
Type: application/octet-stream
Size: 1020 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20120709/b2e3f97c/attachment.obj>


More information about the pve-devel mailing list