© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Implementing Spanning Tree Configuring Link Aggregation with EtherChannel
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v EtherChannel Logical aggregation of similar links Load balances Viewed as one logical port Redundancy
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Dynamic Trunk Negotiation Protocols PAgP Cisco proprietary LACP IEEE 802.3ad standard
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v About EtherChannel Configuration Commands Configure PAgP interface port-channel {channel-group-number} channel-protocol pagp channel-group 1 mode {mode} Verify show interfaces fastethernet 0/1 etherchannel show etherchannel 1 port-channel show etherchannel 1 summary
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Configuring Layer 2 EtherChannel Switch(config-if-range)#channel-protocol {pagp | lacp} Creates the port-channel interface and places the interfaces as members Switch(config)#interface range interface slot/port - port Specifies the interfaces to configure in the bundle Switch(config-if-range)#channel-group number mode {active | on | auto | desirable | passive} Specifies the channel protocoleither PAgP or LACP
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Configuring Layer 3 EtherChannel Switch(config)#interface port-channel port-channel-number Creates a port-channel interface Switch(config-if)#no switchport Switch(config-if)#ip address address mask Specifies L3 and assigns an IP address and subnet mask to the EtherChannel Switch(config-if)#no switchport Switch(config-if)#channel-group number mode {auto | desirable | on} Configures the interface as L3 and specifies the port channel and the PAgP mode Switch(config)#interface interface slot/port Specifies an interface to configure
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Verifying EtherChannel Switch#show running-config interface port-channel num Displays port-channel information Switch#show run interface port-channel 1 Building configuration... Current configuration : 66 bytes ! interface Port-channel1 switchport mode dynamic desirable end Switch#show running-config interface interface x/y Displays interface information Switch#show run interface gig 0/9 Building configuration... Current configuration : 127 bytes ! interface GigabitEthernet 0/9 switchport mode dynamic desirable channel-group 2 mode desirable channel-protocol pagp end
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Verifying EtherChannel (Cont.) Switch#show interfaces gigabitethernet 0/9 etherchannel Port state = Up Mstr In-Bndl Channel group = 1 Mode = Desirable-Sl Gcchange = 0 Port-channel = Po2 GC = 0x Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Flags: S - Device is sending Slow hello. C - Device is in Consistent state. A - Device is in Auto mode. P - Device learns on physical port. d - PAgP is down. Timers: H - Hello timer is running. Q - Quit timer is running. S - Switching timer is running. I - Interface timer is running. Local information: Hello Partner PAgP Learning Group Port Flags State Timers Interval Count Priority Method Ifindex Gi0/9 SC U6/S7 H 30s Any 15 Partner's information: Partner Partner Partner Partner Group Port Name Device ID Port Age Flags Cap. Gi0/9 DSW e.4780 Gi0/9 18s SC Age of the port in the current state: 00d:20h:00m:49s
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Guidelines for Configuring EtherChannel
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Guidelines for Configuring EtherChannel (Cont.)
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v EtherChannel Guidelines Switch#show run interface FastEthernet0/9 description DSW121 0/ DSW122 0/9-10 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,21-28 switchport mode trunk switchport nonegotiate duplex full speed 100 channel-group 2 mode desirable ! interface FastEthernet0/10 description DSW121 0/ DSW122 0/9-10 switchport trunk encapsulation dot1q switchport trunk allowed vlan 1,21-28 switchport mode trunk switchport nonegotiate duplex full speed 100 channel-group 2 mode desirable
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v EtherChannel Load Balancing Switch(config)# port-channel load-balance src-mac
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Configuring EtherChannel Load Balancing Switch#show etherchannel load-balance Source XOR Destination IP address Switch(config)#port-channel load-balance type Configures EtherChannel load balancing
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v Summary EtherChannel increases bandwidth and provides redundancy by aggregating individual links between switches. EtherChannel can be dynamically configured between switches using either PAgP or LACP. Etherchannel is configured and verified using a variety of show commands. Best practices should be followed for EtherChannel configuration. EtherChannel load balances traffic over all the links in the bundle.
© 2006 Cisco Systems, Inc. All rights reserved.BCMSN v