Users Guide

Layer 2 Switching Commands 682
Syntax
port-channel local-preference
no port-channel local-preference
Default Configuration
By default, port channels are not configured with local preference.
Command Mode
Interface Configuration (port-channel) mode
User Guidelines
For a LAG that contains links distributed across stacking units, the default
behavior is to distribute locally received ingress traffic across all LAG links in
the stack per the selected hashing algorithm. When enabled, this command
disables forwarding of ingress unicast traffic across stacking links for a LAG
that is comprised of links on multiple stack units. It does this by restricting
LAG hashing to only select egress links on the stack unit where the traffic
ingresses.
CAUTION: If the capacity of the local egress LAG links is exceeded, traffic will
be discarded. Therefore, use of this option should be carefully considered, and the
operator must ensure that sufficient egress bandwidth is available in the LAG links
on every stack member to avoid excessive discards.
By default, the local-preference mode for a port-channel is disabled. This
command can be used only on port-channel interfaces.
Example
console(config)#interface port-channel 1
console(config-if-Po1)#port-channel local-preference
console(config-if-Po1)#no port-channel local-preference
Command History
Example added in the 6.4 release.