Link to home
Start Free TrialLog in
Avatar of BobbyBaboon
BobbyBaboon

asked on

How to disable spanning tree on cisco 851 router (IOS 12.4)

Greetings,

I have a simple network setup, ISP-> cisco router-> 3com switch-> End users/devices.  I'm thinking I can safely turn off spanning tree as I don't see myself getting into a loop-back situation with this configuration.  I have spanning-tree disabled at the switch, but the router seems to have it enabled according to packet analysis on the router lan port (maybe by default? as i dont see a source-bridge statement in my start/run configs).  And I don't see an option in the SDM utility.

Ultimately I'd like to see the router stop generating all of these STP packets.

Can i just issue the following command to disable, or is there more to this situation?

no source-bridge spanning

and if so, would ...

source-bridge spanning

... re-enable it if desired in the future?


Thanks for sharing your expertise.


Avatar of Les Moore
Les Moore
Flag of United States of America image

bridge 1 protocol ieee  <== this command enables spanning tree. If it's there, you can take it out unless any of the interfaces are assigned to this bridge-group
I don't know of anything else that would "turn on" spanning tree. It's not typically a function of a router, unless it is set up as a bridge.
Avatar of BobbyBaboon
BobbyBaboon

ASKER

Thanks lrmoore,

I did not see that statement in my config.  But I may try the "no" option and see if that has an affect.

That explains why I'm having such a hard time finding documentation about disabling it on routers.  I know it is a switch thing, but there seems to be something setup in the c851 (this is brand new router out of the box with initial configuration and seems to be functioning properly otherwise), I verified it is disabled in the 3com switch config.  I will investigate more and try to verify that I have in fact imperically isolated it to be something generated of the router's own volition.

Would you be interested in seeing the packet information I am capturing? Don't know if it would mean anything to you.   It comes across about every 2 seconds from the lan mac adress of the router, and I believe it is broadcasting to the entire segment across the switch (not confimed yet, but likely).  I assume it is a standard STP packet, but proclaiming the router as the root.

Will keep working on it and advise...
ASKER CERTIFIED SOLUTION
Avatar of Les Moore
Les Moore
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
lrmoore,  thanks for getting me in the right direction and thinking.  Here are my findings for everyone's benefit.

I figured out on my c851 I could enable portfast with:

   congfig t
   spanning-tree portfast bpduguard

It does not give me the option to enable portfast without bpduguard.
Of course, enabling portfast while clearing up DHCP timing issues, didn't stop the switch from broadcasting the STP packets.

As this is a simple home network setup not in danger of looping (as long as I'm around anyway ;-)), I was able to disable spanning tree with:

   config t
   no spanning-tree vlan 1

All of the fastethernet ports are by default assigned to vlan 1.
I know that I can re-enable spanning tree if needed in the future, and will if I expand to multiple switch configurations.