<p>You are right, and that is the case : subnet 192.168.100.0/24 stands in VLAN 100, and subnet 192.168.200.0/24 in VLAN 200.<br />
Historically, I had two Proxmox VE hosts on those two distinct subnets. I decided to put both in one cluster in order to be able to perform live migration beetween my two hosts.<br />
<br />
On the host standing in VLAN 100, I have created vmbr1 bound to eth0.200 and I have configured the corresponding switch port in trunk mode with default (untagged) VLAN to 100.<br />
<br />
Then I have migrated all the VEs on the host standing in VLAN 200 to the host in VLAN 100, and reconfigured them to bind to vmbr1.<br />
<br />
Finally, on the host on VLAN 200, I have bound vmbr0 to eth0.100, vmbr1 to eth0 with the original ip and gateway addresses, and configured the switch port in trunk mode with default (untagged) VLAN to 200.<br />
<br />
So I have the configuration you described :</p>
<ul>
    <li>vmbr0 : VLAN 100 on both nodes</li>
    <li>vmbr1 : VLAN 200 on both nodes</li>
</ul>
<p>Dietmar Maurer <dietmar@proxmox.com> a écrit :</p>
<blockquote type="cite">
<div class="Section1">
<p class="MsoNormal"><span lang="EN-US" style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">That config look quite strange to me – vmbr0 should use the same vlan on both nodes, also vmbr1 should use the same vlan on both nodes.</span><span lang="EN-US" style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p></o:p></span><br />
<span lang="EN-US" style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span lang="EN-US" style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"> Manu Lestrelin [mailto:emmanuel.lestrelin@univmed.fr] <br />
<b>Sent:</b> Mittwoch, 09. Dezember 2009 12:00<br />
<b>To:</b> Dietmar Maurer<br />
<b>Cc:</b> pve-user@pve.proxmox.com<br />
<b>Subject:</b> Re: [PVE-User] Cluster nodes in different subnets/VLANs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On master cluster node :<o:p></o:p></p>
<pre>
# network interface settings<o:p></o:p></pre>
<pre>
auto lo<o:p></o:p></pre>
<pre>
iface lo inet loopback<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
iface eth0 inet manual<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
auto vmbr0<o:p></o:p></pre>
<pre>
iface vmbr0 inet static<o:p></o:p></pre>
<pre>
    address  192.168.100.4<o:p></o:p></pre>
<pre>
    netmask  255.255.255.0<o:p></o:p></pre>
<pre>
    gateway  192.168.100.1<o:p></o:p></pre>
<pre>
    bridge_ports eth0<o:p></o:p></pre>
<pre>
    bridge_stp off<o:p></o:p></pre>
<pre>
    bridge_fd 0<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
auto vmbr1<o:p></o:p></pre>
<pre>
iface vmbr1 inet manual<o:p></o:p></pre>
<pre>
    bridge_ports eth0.200<o:p></o:p></pre>
<pre>
    bridge_stp off<o:p></o:p></pre>
<pre>
    bridge_fd 0<o:p></o:p></pre>
<p class="MsoNormal">On slave cluster node :<o:p></o:p></p>
<pre>
# network interface settings<o:p></o:p></pre>
<pre>
auto lo<o:p></o:p></pre>
<pre>
iface lo inet loopback<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
iface eth0 inet manual<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
auto vmbr0<o:p></o:p></pre>
<pre>
iface vmbr0 inet manual<o:p></o:p></pre>
<pre>
    bridge_ports eth0.100<o:p></o:p></pre>
<pre>
    bridge_stp off<o:p></o:p></pre>
<pre>
    bridge_fd 0<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
auto vmbr1<o:p></o:p></pre>
<pre>
iface vmbr1 inet static<o:p></o:p></pre>
<pre>
    address  192.168.200.220<o:p></o:p></pre>
<pre>
    netmask  255.255.255.0<o:p></o:p></pre>
<pre>
    gateway  192.168.200.1<o:p></o:p></pre>
<pre>
    bridge_ports eth0<o:p></o:p></pre>
<pre>
    bridge_stp off<o:p></o:p></pre>
<pre>
    bridge_fd 0<o:p></o:p></pre>
<p class="MsoNormal"><br />
Dietmar Maurer a écrit : <o:p></o:p></p>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<pre>
This error is certainly due to the fact that vmbr0 does not have any<o:p></o:p></pre>
<pre>
defined gateway : as stated in Cluster.pm line 182, $localip is defined<o:p></o:p></pre>
<pre>
like this :<o:p></o:p></pre>
<pre>
    my $localip = $ifaces->{vmbr0}->{address} || $ifaces->{eth0}-<o:p></o:p></pre>
<pre>
    <o:p></o:p></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;">
<pre>
{address};<o:p></o:p></pre>
<pre>
      <o:p></o:p></pre>
</blockquote>  </blockquote>
<pre><o:p> </o:p></pre>
<pre>
So what network config do you use now? (/etc/network/interfaces)<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>
  <o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</blockquote>