Specifications
CHAPTER 3
Spanning Tree
Root Guard
Root Guard is meant to prevent the wrong switch from becoming the Spanning Tree root. It is enabled on ports other than
the root port and on switches other than the root. If a Root Guard port receives a BPDU that might cause it to become a
root port, the port is put into “root-inconsistent” state and does not pass traffic through it. If the port stops receiving these
BPDUs, it automatically reenables itself. To enable and verify Root Guard use the following commands:
(config-if)# spanning-tree guard root
# show spanning-tree inconsistentports
Unidirectional Link Detection
A switch notices when a physical connection is broken by the absence of Layer 1 electrical keepalives. (Ethernet calls
this a link beat.) However, sometimes a cable is intact enough to maintain keepalives but not to pass data in both direc-
tions. This is a Unidirectional Link. Operating at Layer 2, Unidirectional Link Detection (UDLD) detects a unidirectional
link by sending periodic hellos out to the interface. It also uses probes, which must be acknowledged by the device on the
other end of the link.
UDLD has two modes: normal and aggressive. In normal mode, the link status is changed to Undetermined State if the
hellos are not returned. In aggressive mode, the port is error-disabled if a unidirectional link is found. Aggressive mode is
the recommended way to configure UDLD.
To enable UDLD on all fiber-optic interfaces, use the following command:
(config)# udld [enable | aggressive]
Although this command is given at global config mode, it applies only to fiber ports.
To enable UDLD on nonfiber ports, give the same command at interface config mode.
[ 44 ]
© 2010 Pearson Education, Inc. All rights reserved. This publication is protected by copyright. Please see page 112 for more details.
CCNP SWITCH 642-813 Quick Reference by Denise Donohue
9781587140112.qxd 11/23/09 11:35 AM Page 44
www.CareerCert.info