How to prevent Loops in the Network

How to prevent Loops in the Network

I would like to know if a root bridge is configured manually would that prevent a loop in the network ? I mean if someone else plugs a device in the network that would still not cause a loop ?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AkinsdNetwork AdministratorCommented:
For the "most part", yes.
Generally, manually configuring root bridges would ensure that only that switch is the root bridge and may help prevent loops. You may want to ensure that all ports aside of your uplink are hardcoded as access ports
jskfanAuthor Commented:
STP prevents Loops.

Sometime we need to prevent Topology change...

I believe it is the same we may need to manual configure the Root Bridge and Switch ports as access ports ,

that way if someone accidentally plugs in a switch to any port it would not send BPDUs, not trunk will be formed and no topology will be changed...

Is that correct ?
jskfanAuthor Commented:
I also am assuming STP is in every cisco switch by default. Does that mean Loops do not happen. Hopefully they do not....

So now , what to do t prevent change topology when we plug a new switch to another port switch....Nowadays even when you plug a Blade or ESX host can negotiate a trunk...that might cause topology change too
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

AkinsdNetwork AdministratorCommented:
The reason negotiation occurs is because the switchport is set to "auto" by default. To avoid auto negotiation, hardcode the switchport to access port.
Assuming you have a 48  fastethernet port switch with an uplink port 1 and 2. You can then hardcode ports 3 to 48 as access ports
conf t
int range fa0/3 - 48
switchport mode access

It is also recommended to shutdown unused ports and only turn them on when commissioned
jskfanAuthor Commented:
Want to know since STP is by default would the Loop be able to happen ?
AkinsdNetwork AdministratorCommented:
Want to know since STP is by default would the Loop be able to happen ?
Loops would still be prevented as redundant ports would be blocked still. It's just better to not leave your switchports as AUTO or use default STP settings.
You may get along with STP basic default settings depending on your environment. Nevertheless, I wouldn't use default settings for STP on my network. One example, STP uses the oldest MAC address to determine root bridge. This means a switch made in 1985 would be the root bridge even if it is not in a strategic position and not robust enough to handle network requests.
This link may help

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.