06-07-2006 01:08 AM - edited 03-03-2019 03:32 AM
Hi,
I purchased Catalyst 2950 switch.
When I unplug/plug any cable to Switch I saw the color of switch from Amber to green taken very much time i.e. 30seconds so I did following:
#int range fa 0/1 -24
#spanning-tree portfast
#end
#wr mem
After this command the Amber color changes within 2-3 seconds.
Now, I want to remove this again to test something by doing the following:
#int range fa 0/1 -24
#spanning-tree portfast
#end
#wr mem
But switch ports still changing color from Amber to Green in 2-3 seconds?
Can anybody help me?
Solved! Go to Solution.
06-08-2006 12:46 AM
Hi Shahid,
Got the issue. You have disabled the spanning tree for vlan 1 with command "no spanning-tree vlan 1" and all your interfaces are by default in vlan 1 and that is the reason they are not going into spanning tree convergance stages.
If you enable the spanning tree for vlan 1 again and you shut and unshut any interface it will go into all spanning tree convergance stages and will take 30 seconds approx convergance time.
Enable the STP for vlan 1 with command "spanning-tree vlan 1"
HTH, if yes please rate the post.
Ankur
06-07-2006 01:14 AM
Hi Shahid,
If you want to revert back to the 30 seconds time you need to disable spanning tree portfast feature.
#int range fa 0/1 -24
#no spanning-tree portfast
#end
Once spanning tree port fast is disabled STP will take its own time to converge going into all stanges which will take 30 seconds but if you enable portfast feature it will skip the convergence stages and will immediately come in 2-3 seconds
So if you just disable port fast feature adding"no" in the same command it will disable that feature and port will go through STP stages to converge.
HTH, if yes please rate the post.
Ankur
06-07-2006 01:15 AM
Did you really mean spanning-tree portfast. If so, you need "no" in front of it to remove it, like no spanning-tree portfast.
Kevin Dorrell
Luxembourg
06-07-2006 03:13 AM
Sorry, I wrote wrong (missed "no")in my message, actually I also used that command, i.e.
config#no spanning-tree portfast
But ports are still taking 2-3 seconds from Amber to Green color...remember, there is no STP is running on the switch.
06-07-2006 03:17 AM
Hi Shahid,
STP is by default enabled on your switch and as you mentioned "there is no STP is running on the switch" have you manually disabled the STP on your switch and if yes then definetely it will take 2-3 seconds to converge because it is STP only which goes into different stages of conversion and if there is no STP on your switch then ports will converge faster as STP is not running.
HTH
Ankur
06-07-2006 09:23 PM
I could'nt understood...I just wan to put all switch ports back into original state(as when I ON switch very first time then all ports was taking approx. 30 sec to change color from Amber to Green). But at this time, although I enable RSTP but again I disabled it (i.e. "no spanning-tree mode rapid-pvst") but still ports changes color within 2-3 seconds...?
I am in problem...I just want to come switch in its original state reg. Color....
Waiting...
06-07-2006 09:27 PM
Hi Shahid,
Can you attach the complete output of "sh run"
Regards,
Ankur
06-08-2006 12:40 AM
PLs. find below"show run" result, also I am attaching as file.
show run
Building configuration...
Current configuration : 1392 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname D
!
enable secret xxxx
!
ip subnet-zero
!
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
no spanning-tree vlan 1
!
!
interface FastEthernet0/1
interface FastEthernet0/2
interface FastEthernet0/3
interface FastEthernet0/4
interface FastEthernet0/5
interface FastEthernet0/6
interface FastEthernet0/7
interface FastEthernet0/8
interface FastEthernet0/9
interface FastEthernet0/10
interface FastEthernet0/11
interface FastEthernet0/12
interface FastEthernet0/13
interface FastEthernet0/14
interface FastEthernet0/15
interface FastEthernet0/16
interface FastEthernet0/17
interface FastEthernet0/18
interface FastEthernet0/19
interface FastEthernet0/20
interface FastEthernet0/21
interface FastEthernet0/22
interface FastEthernet0/23
interface FastEthernet0/24
interface GigabitEthernet0/1
interface GigabitEthernet0/2
--More-- interface Vlan1
--More-- ip address 202.113.x.x.255.255.0
--More-- no ip route-cache
--More-- !
--More-- interface Vlan2
--More-- no ip address
--More-- no ip route-cache
--More-- shutdown
--More-- !
--More-- ip http server
--More-- snmp-server community public RW
--More-- !
--More-- line con 0
--More-- exec-timeout 0 0
--More-- line vty 0 4
--More-- password shahid
--More-- login
--More-- line vty 5 15
--More-- password shahid
--More-- login
--More-- !
--More-- !
--More-- end
--More--
06-08-2006 12:46 AM
Hi Shahid,
Got the issue. You have disabled the spanning tree for vlan 1 with command "no spanning-tree vlan 1" and all your interfaces are by default in vlan 1 and that is the reason they are not going into spanning tree convergance stages.
If you enable the spanning tree for vlan 1 again and you shut and unshut any interface it will go into all spanning tree convergance stages and will take 30 seconds approx convergance time.
Enable the STP for vlan 1 with command "spanning-tree vlan 1"
HTH, if yes please rate the post.
Ankur
06-08-2006 09:35 PM
Thanks Ankur and all others...my problem have been solved as Ankur told.
PLs. give answer to my newly posted Issue/problem "Configuration reqd...pls. help me..."
regards,
shahid
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: