2-307
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
ip cef load-sharing algorithm
ip cef load-sharing algorithm
To configure the load-sharing hash function so that the source TCP/UDP port, the destination TCP/UDP
port, or both ports can be included in the hash in addition to the source and destination IP addresses, use
the ip cef load-sharing algorithm command. To revert back to the default, which does not include the
ports, use the no form of this command.
ip cef load-sharing algorithm {include-ports {source source | destination dest} | original |
tunnel | universal}
no ip cef load-sharing algorithm {include-ports {source source | destination dest} | original |
tunnel | universal}
Syntax Description
Defaults Default load-sharing algorithm is disabled.
Note This option does not include the source or destination port in the load-balancing hash.
Command Modes Global configuration mode
Command History
Usage Guidelines The original algorithm, tunnel algorithm, and universal algorithm are routed through the hardware. For
software-routed packets, the algorithms are handled by the software. The include-ports option does not
apply to the software-switched traffic.
Examples This example shows how to configure the IP CEF load-sharing algorithm that includes Layer 4 ports:
Switch(config)# ip cef load-sharing algorithm include-ports
Switch(config)#
include-ports Specifies the algorithm that includes the Layer 4 ports.
source source Specifies the source port in the load-balancing hash functions.
destination dest Specifies the destination port in the load-balancing hash. Uses the source and
destination in hash functions.
original Specifies the original algorithm; not recommended.
tunnel Specifies the algorithm for use in tunnel-only environments.
universal Specifies the default Cisco IOS load-sharing algorithm.
Release Modification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.