Cisco – Configure spanning-tree on Cisco router

ciscocisco-iosspanning tree

I have seen spanning tree being configured on switches to prevent switching loops.

I recently noticed that show spanning tree command works on a Cisco 1841 router as well.

For what reasons would we want to configure spanning-tree on router. Any examples?

Best Answer

On a general note: not everything that is present in parser, will actually work on given platform, or even makes sense.

In that particular case, you can enable spanning tree if you have either IRB (integrated routing & bridging) configured on ethernet ports, or you insert the integrated switching module (WIC-4ESW) into the router. Then, those ports are L2 by default and actually it makes sense to run STP on them to avoid loops.