cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
546
Views
5
Helpful
5
Replies

Command to block a port in Vlan

stevenloh
Level 1
Level 1

I have 3 switches interconnecting to each other. A PC in switch A wishes to ping to PC on Switch C. There are 2 paths leading to it, what command can i use to block one of the port so that there is only one path?

Is it setting one of the switch as root? Or is it something to do with portfast?

Note:Pulling out the physical link is not an option.

5 Replies 5

amit-singh
Level 8
Level 8

Hi,

By default, you have Spanning tree enabled on the switches and it should automatically block the redundent port. Use the command " show spanning-tree brief " command to check it is enable on the switch.

Based on the lowest bridge ID( Lowest MAC + Priority ) the switches will automatically calculate the root and once agreed upon that the root switch blocks the redundent path based on some calculation. If you want you can force a particular switch to be root switch by lowering dwon the priority which is by default 32768 for the switches. You can use command " spanning-tree priority in the config mode.

Portfast puts the port into forwarding state directly from blocking and thus skipping the intermediate states. It is generally used on host ports. Never enable portfast on the ports connecting to switches as it might results in a loop.

HTH,

-amit singh

shijogeorge
Level 1
Level 1

Hi,

Believe STP is active on all the three switches. If yes, STP will take care of blocking one of the paths by default.

You need to think about tuning the STP parameters only if you want to manipulate the path selection.

Regards,

Shijo George.

Yes i wish to manipulate the path selection. How do i do that? Any links on cisco? i tried looking but i can't find anything useful.

Thanks, Shijo George, think this will solve my problem.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco