08-23-2014 10:37 AM - edited 03-07-2019 08:30 PM
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
08-23-2014 01:46 PM
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! :)
08-23-2014 03:17 PM
Hi Jule,
Thanks a lot for your support.
Thanks
Ahmed
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide