2-123
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco 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, or the destination
TCP/UDP port, or both 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
Command History
Usage Guidelines The original algorithm, tunnel algorithm, and universal algorithm are routed through hardware. For
software-routed packets, the algorithms are handled by the software. The include-ports option does not
apply to 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)#
Related Commands show ip cef vlan
include-ports Specifies algorithm that includes Layer 4 ports.
source source Specifies source port in the load-balancing hash functions.
destination dest Specifies destination port in the load-balancing hash. Uses source and
destination in hash functions.
original Original algorithm; not recommended.
tunnel Specifies algorithm for use in tunnel-only environments.
universal Specifies the default IOS load-sharing algorithm.
Release Modification
12.1(12c)EW Support for this command was introduced on the Catalyst 4500 series switch.