Examples
The following example shows how to calculate load balancing across the members of a link bundle (bundle-ether
28) using the 3-tuple hash algorithm, a single source and destination, and IPv4 addresses:
RP/0/RSP0/CPU0:router#
bundle-hash bundle-ether 28
Specify load-balance configuration (L3/3-tuple or L4/7-tuple) (L3,L4):
l3
Single SA/DA pair (IPv4,IPv6) or range (IPv4 only): S/R [S]:
s
Enter bundle type IP V4 (1) or IP V6 (2):
1
Enter source IP V4 address:
10.12.28.2
Enter destination IP V4 address:
10.12.28.1
Compute destination address set for all members? [y/n]:
y
Enter subnet prefix for destination address set:
8
Enter bundle IP V4 address [10.12.28.2]:
10.12.28.2
Link hashed to is GigabitEthernet0/6/5/7
Destination address set for subnet 10.0.0.0:
10.0.0.6 hashes to link GigabitEthernet0/1/5/6
10.0.0.8 hashes to link GigabitEthernet0/6/5/5
10.0.0.12 hashes to link GigabitEthernet0/6/5/6
10.0.0.2 hashes to link GigabitEthernet0/6/5/7
10.0.0.1 hashes to link GigabitEthernet0/1/5/7
The following example shows how to calculate load balancing across the members of a link bundle (bundle-ether
28) using the 3-tuple hash algorithm, a range of source and destinations, and IPv4 addresses:
RP/0/RSP0/CPU0:router#
bundle-hash bundle-ether 28
Specify load-balance configuration (L3/3-tuple or L4/7-tuple) (L3,L4):
l3
Single SA/DA pair (IPv4,IPv6) or range (IPv4 only): S/R [S]:
r
Maximum number of flows (num src addr * num dst addr): 65536
Enter first source IP address:
10.12.28.2
Enter subnet prefix for source address set:
8
Enter number of source addresses (1-245):
20
Enter source address modifier (1-12) [def:1]:
5
Enter destination IP address:
10.12.28.1
Enter subnet prefix for destination address set:
8
Enter number of destination addresses (1-245):
20
Enter destination address modifier (1-12) [1]:
5
Many to many (M) or simple pairs (S)? [M]:
s
Calculating simple pairs...
Total number of hits 20
Member GigabitEthernet0/1/5/6 has 6 hits
Member GigabitEthernet0/6/5/5 has 2 hits
Member GigabitEthernet0/6/5/6 has 2 hits
Member GigabitEthernet0/6/5/7 has 9 hits
Member GigabitEthernet0/1/5/7 has 1 hits
The following example shows how to calculate load balancing across the members of a link bundle (bundle-ether
202) using the 7-tuple hash algorithm, a single source and destination, and IPv4 addresses:
RP/0/RSP0/CPU0:router#
bundle-hash bundle-ether 202
Specify load-balance configuration (L3/3-tuple or L4/7-tuple) (L3,L4):
l4
Single SA:SP/DA:SP pair (IPv4,IPv6) or range (IPv4 only): S/R [S]:
s
Cisco ASR 9000 Series Aggregation Services Router Interface and Hardware Component Command Reference,
Release 5.3.x
570
Link Bundling Commands on the Cisco ASR 9000 Series Router
bundle-hash