Build the Next-Generation Data Center
6 week online course starting in spring 2017

Spanning Tree (STP) on Virtual Switches

One of my readers sent me this question:

I'm researching NFV/SDN and wonder if the software L2 switches support spanning tree.

TL&DR: Some do, some don’t.

VMware vSwitch (and distributed switch) are famous for their lack of spanning tree support and other shortcuts. They pretend they’re not really switches but multiple hosts that just happen to have more than one MAC address on their uplinks.

Open vSwitch and Hyper-V virtual switch support STP, but one has to wonder whether that’s good or bad. It’s much easier to connect an ESXi host to the network than a host using one of the other virtual switches – properly configured ESXi utilizes all uplinks with no involvement from the physical switches, whereas the virtual switches that don’t pretend to be hosts usually require LACP (potentially combined with MLAG) unless you want to lose one (or more) of the uplinks to STP blocking.

In any case, if you have to rely on STP running on your virtual switches, you’re doing something wrong (here’s a great example of a totally broken approach).

Properly implemented OVS-based solutions use a control plane (like NSX controller) that programs the OVS forwarding entries instead of STP.

Even if a virtual switch doesn’t need STP to get its job done, it’s still crucial that it recognizes BPDU frames coming from a VM and blocks that VM (because an ID10T obviously configured bridging on that VM). VMware sadly still hasn’t got the memo.

In a follow-up question, the same reader asked:

How does CPU switching handles broadcast storms?

This one is simple: by wasting CPU cycles...

Want to know more?

Literally all aspects of ESXi/vSphere networking, including the new features introduced in vSphere 6.x, are covered in the vSphere 6 Networking Deep Dive webinar.


  1. > Mware sadly still hasn’t got the memo.

    Um, ?

  2. Dmitri: That is BPDUFilter, not BPDUGuard.

    1. ... as I explained in details in the blog post I linked to ;))

    2. Guilty as charged.

      On topic of why filter and not guard - my take is that loops probably don't come up often enough, or there's no internal advocate who could hand-hold the feature request to make sure it happens.

      As you noted, filter is a much easier thing to implement due to no user / management system interaction.

  3. I would never have imagined people would use xSTP to connect vSwitches :-S

  4. The dangers of only partially parsing the command line specifically stopping after matching BPDU :) :)

  5. Hi, I am researching PMV/MDT (Personal Movement Virtualization/Machine-Defined Transportation),
    and wonder if the new horseless carriage technologies you refer to
    as "School busses" support the "Giddy up" voice command.

    Oh right..... aside from properly detecting and shutting down virtual ports if a BPDU is received. It seems kind of crazy that some virtual switches are partial to STP for NFV :)


You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.