cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2681
Views
0
Helpful
9
Replies

Switch Amber Color Problem

shahid_raza74
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

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

View solution in original post

9 Replies 9

ankurbhasin
Level 9
Level 9

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

Kevin Dorrell
Level 10
Level 10

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

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.

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

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...

Hi Shahid,

Can you attach the complete output of "sh run"

Regards,

Ankur

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--

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

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

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: