حلول المختبر / VLANs and switching
Packet Tracer link stays orange (spanning tree)
Packet Tracer · GNS3 · Cisco IOS · آخر مراجعة
في هذه الصفحة
What the colours mean
- Green: the port is up and forwarding.
- Orange (amber): the port is up but not forwarding. Spanning tree is listening, learning, or blocking.
- Red: the link is down. That is a cable or
shutdownproblem; see interface down.
Orange for 30 seconds, then green
That is normal. Classic spanning tree waits 15 seconds listening and 15 seconds learning before a port forwards. In Packet Tracer, click Fast Forward Time (bottom left) a few times instead of waiting.
One port stays orange forever
If you have two or more switches connected in a loop, spanning tree blocks one port so frames don't circle forever. That orange port is doing its job. You can see it:
show spanning-tree vlan 1
The blocked port shows role Altn and status BLK. If the wrong port is blocked, choose the root bridge yourself, for example the core switch:
spanning-tree vlan 1 root primary
or set the priority directly (lower wins, in steps of 4096):
spanning-tree vlan 1 priority 4096
Make PC ports come up at once
PortFast skips listening and learning on ports that go to PCs, printers or servers. Only use it on access ports, never on links to other switches.
interface range f0/1 - 20
spanning-tree portfast
Or for every access port at once: spanning-tree portfast default. Moving to Rapid PVST+ also makes the whole tree converge in a few seconds:
spanning-tree mode rapid-pvst
Port turns off when you plug a switch in
With spanning-tree bpduguard enable, a port that receives a BPDU (from another switch) goes err-disabled. That is the feature working. Remove the switch, or turn BPDU guard off on that port if a switch is supposed to be there.