Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

How to remove a Specific VLAN from spanning-tree

Hi,

Can someone help me with the below issue,

Currently I am having below configuration, I just want to remove the vlan 222 from the below configuration.

!

spanning-tree vlan 111,222,333 priority 24576

!

I am doubt whether the below configuration will remove only VLAN 222 or it will remove all the VLANs.

!

no spanning-tree vlan 222 priority 24576

!

 

Thanks

Ahmed

2 REPLIES
Cisco Employee

Hi Ahmed,

Hi Ahmed,

 

The above command should remove only VLAN 222 from the configuration (see below):

3850-LAB(config)#do sh run | i span
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree vlan 111,222,333 priority 24576
3850-LAB(config)#^Z
3850-LAB#sh
*Aug 23 20:37:00.603: %SYS-5-CONFIG_I: Configured from console by console
3850-LAB#sh span root 

                                        Root    Hello Max Fwd
Vlan                   Root ID          Cost    Time  Age Dly  Root Port
---------------- -------------------- --------- ----- --- ---  ------------
VLAN0001         32769 aabb.cc00.0100         0    2   20  15                  
VLAN0010         32778 aabb.cc00.0100         0    2   20  15                  
VLAN0111         24687 aabb.cc00.0100         0    2   20  15                  
VLAN0222         24798 aabb.cc00.0100         0    2   20  15                  
VLAN0333         24909 aabb.cc00.0100         0    2   20  15                  
3850-LAB#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
3850-LAB(config)#no spanning-tree vlan 222 priority 24576
3850-LAB(config)#do sh run | i span
spanning-tree mode pvst
spanning-tree extend system-id
spanning-tree vlan 111,333 priority 24576
3850-LAB(config)#

As a good practice always backup your configuration and perform your changes on non-production hours.

 

Hope this helps! :)

New Member

Hi Jule, Thanks a lot for

Hi Jule,

 

Thanks a lot for your support.

 

Thanks

Ahmed

1136
Views
10
Helpful
2
Replies
CreatePlease to create content