Juniper EX switches automatically categorize a port as an spanning-tree "edge" (there should only be one device behind the port) or "non-edge" (another switch) port. You can force this mode for a port by configuring
set protocols <stp-protocol> interface <interface> edge
Normally an edge port transitions to a non-edge port when it receives a BPDU. As a security feature we also have
bpdu-block-on-edge enabled, which will shut down an edge port that receives BPDUs.
This is fine unless you want another switch to take over as root bridge. In that case you have port(s) that suddenly start receiving BPDUs (when the new root bridge is activated) and consequently these ports are shut down.
My question is: Is there a way to configure a port explicitly as a "non-edge" port?
The workaround right now is to disable the
bpdu-block-on-edge feature while the STP converges around the new root bridge.