Example
The following example shows how port-channels 1, 2 and 8 are grouped to receive the same
command.
console(config)# interface range port-channel 1-2,8
console(config-if)#
hashing-mode
Use the hashing-mode command to set the hashing algorithm on trunk ports.
Syntax
hashing-mode
mode — Mode value in the range of 1 to 6.
•
Range: 1–6:
•
1 — Source MAC, VLAN, EtherType, source module, and port ID
•
2 — Destination MAC, VLAN, EtherType, source module, and port ID
•
3 — Source IP and source TCP/UDP port
•
4 — Destination IP and destination TCP/UDP port
•
5 — Source/destination MAC, VLAN, EtherType, and source MODID/port
•
6 — Source/destination IP and source/destination TCP/UDP port
Default Configuration
This command has no default configuration.
Command Mode
Interface Configuration (port-channel)
User Guidelines
No specific guidelines.
Example
console(config)#interface port-channel l
console(config-if-ch1)#hashing-mode 4
380
mode