Use this procedure to apply load balancing on an individual port channel.
Before you begin
You must be in global configuration mode and have an existing port channel created.
Complete these steps to enable load balancing on an individual port channel.
Procedure
|
1. |
Enter the port channel interface configuration mode.
interface Port-channel channel-number
|
|
2. |
Enable load balancing on an individual port channel.
|
The specified port channel now uses the configured load balancing method, overriding any global settings.
This example shows how to set the load-balancing method to flow, when VLAN-manual method is configured globally:
Device# config-transaction
Device(config)# interface port-channel 1
Device(config-if)# load-balancing flow
This example shows how to set the load-balancing method to VLAN:
Device# config-transaction
Device(config)# interface port-channel 1
Device(config-if)# load-balancing vlan
This example shows a configuration where flow-based load balancing is configured on port channel 2 while the VLAN-manual method is configured globally:
port-channel load-balancing vlan-manual
interface Port-channel2
ip address 10.0.0.1 255.255.255.0
load-balancing flow
interface GigabitEthernet2/1/0
no ip address
channel-group 2
interface GigabitEthernet2/1/1
no ip address
channel-group 2
This example shows configuration for VLAN when the load balancing is set to default on the global level:
port-channel load-balancing vlan-manual
interface Port-channel1
interface Port-channel1.100
encapsulation dot1Q 100 primary GigabitEthernet 1/1/1
secondary GigabitEthernet 1/2/1
ip address 10.16.2.100 255.255.255.0
interface Port-channel1.200
encapsulation dot1Q 200 primary GigabitEthernet 1/2/1
ip address 10.16.3.200 255.255.255.0
interface Port-channel1.300
encapsulation dot1Q 300
ip address 10.16.4.300 255.255.255.0
interface GigabitEthernet 1/1/1
no ip address
channel-group 1!
interface GigabitEthernet 1/2/1
no ip address
channel-group 1
Note
Interface 1 and interface 2 must be member ports of a port channel when encapsulation dot1q is configured.