55
port-link:
A trap will be sent when the link
is up or down.
power-down:
A trap will be sent when the
device
’s power is down.
warm-start:
A trap will be sent when the
device restarts.
No command
Switch(config)# no snmp-
server trap-type [all | auth-
fail | battery-mode | case-
fan | cold-start | port-link |
power-down | warm-start]
[all | auth-fail
| battery-
mode | case-
fan | cold-
start | port-
link | power-
down | warm-
start]
Specify a trap type that will not be sent
when a certain situation occurs.
Show command
Switch(config)# show snmp-server
community
Show community configuration.
Switch(config)# show snmp-server trap-
destination
Show trap destination configuration.
Switch(config)# show snmp-server trap-
type
Show the current enable/disable status of
each type of trap.
Trap-type example
Switch(config)# snmp-server trap-type all
All types of SNMP traps will be sent.
2.6.18 Spanning-tree Command
The Spanning Tree Protocol (STP), defined in the IEEE Standard 802.1D, creates a spanning tree
within a mesh network of connected layer-2 bridges (typically Ethernet switches) and disables the
links which are not part of that tree, leaving a single active path between any two network nodes.
Multiple active paths between network nodes cause a bridge loop. Bridge loops create several
problems. First, the MAC address table used by the switch or bridge can fail, since the same MAC
addresses (and hence the same network hosts) are seen on multiple ports. Second, a broadcast
storm occurs. This is caused by broadcast packets being forwarded in an endless loop between
switches. A broadcast storm can consume all available CPU resources and bandwidth.
Spanning tree allows a network design to include spare (redundant) links to provide automatic
backup paths if an active link fails, without the danger of bridge loops, or the need for manually
enabling/disabling these backup links.
To provide faster spanning tree convergence after a topology change, an evolution of the
Spanning Tree Protocol: Rapid Spanning Tree Protocol (RSTP), introduced by IEEE with
document 802.1w. RSTP is a refinement of STP; therefore, it shares most of its basic operation
characteristics. This essentially creates a cascading effect away from the root bridge where each
designated bridge proposes to its neighbors to determine if it can make a rapid transition. This is
one of the major elements which allow RSTP to achieve faster convergence times than STP.