Cisco Systems 2960 Model Vehicle User Manual


  Open as PDF
of 1004
 
37-15
Catalyst 2960 and 2960-S Switch Software Configuration Guide
OL-8603-09
Chapter 37 Configuring EtherChannels and Link-State Tracking
Configuring EtherChannels
This example shows how to configure an EtherChannel on a switch. It assigns two ports as static-access
ports in VLAN 10 to channel 5 with the PAgP mode desirable:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode desirable non-silent
Switch(config-if-range)# end
This example shows how to configure an EtherChannel on a switch. It assigns two ports as static-access
ports in VLAN 10 to channel 5 with the LACP mode active:
Switch# configure terminal
Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode active
Switch(config-if-range)# end
This example shows how to configure a cross-stack EtherChannel. It uses LACP passive mode and
assigns two ports on stack member 2 and one port on stack member 3 as static-access ports in VLAN 10
to channel 5:
Switch# configure terminal
Switch(config)# interface range gigabitethernet2/0/4 -5
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode active
Switch(config-if-range)# exit
Switch(config)# interface gigabitethernet3/0/3
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# channel-group 5 mode active
Switch(config-if)# exit
Configuring EtherChannel Load Balancing
This section describes how to configure EtherChannel load balancing by using source-based or
destination-based forwarding methods. For more information, see the “Load Balancing and Forwarding
Methods” section on page 37-8.