The final section of this chapter describes the EtherChannel Guard feature, which is an optional Cisco STP feature designed to protect the Spanning Tree Protocol network when using Layer 2 EtherChannel trunks. The EtherChannel Guard feature is designed to detect an EtherChannel misconfiguration between the switch and another connected device.
For example, a misconfiguration can occur if the local switch interfaces are configured in an EtherChannel, but the interfaces on the other device are not. A misconfiguration can also occur if the channel parameters are not the same at both ends of the EtherChannel. If the switch detects a misconfiguration on the other device, EtherChannel Guard places the switch interfaces in the errdisabled state, and an error message is printed on the console.
By default, EtherChannel Guard Status is enabled and requires no further configuration. This default behavior is illustrated in the output shown below:
| Switch-1#show spanning-tree summary Switch is in mst mode Root bridge for: MST00-MST02 EtherChannel misconfiguration guard is enabled Extended system ID is enabled PortFast is disabled by default PortFast BPDU Guard is disabled by default PortFast BPDU Filter is disabled by default LoopGuard is disabled by default UplinkFast is disabled BackboneFast is disabled PathCost method used is shortName Blocking Listening Learning Forwarding STP Active ———————- ——– ——— ——– ———- ———- MST00 0 0 0 1 1 MST01 0 0 0 1 1 MST02 0 0 0 1 1 ———————- ——– ——— ——– ———- ———- 3 msts 0 0 0 3 3 |
If this feature has been disabled, it can be re-enabled via the spanning-tree EtherChannel guard misconfigglobal configuration command. This is illustrated in the following output:
| Switch-1#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch-1(config)#spanning-tree EtherChannel guard misconfig Switch-1(config)#exit |