How to configure Etherchannel on cisco switches


This article is all about how to configure EtherChannel on cisco switches. In this tutorial, we learn about how EherChannel works, how to configure EtherChannel, why we configure EtherChannel and uses of EtherChannel on cisco switches. EtherChannel is a technique in which we combine two and more than two physical interfaces (ethernet ports) of the cisco switches. After that use them as a single logical interface(port). EtherChannel provides incremental trunk speeds between Fast Ethernet, Gigabit Ethernet, and 10 Gigabit ethernet.  By using EtherChannel we can combine the bandwidth of multiple ports. It also provides redundancy because if any port fails then still there is no connection loss. If one port fails then another port still active and provide communication and hence provide redundancy. Always remember that in windows EtherChannel technique is known as NIC Teaming and In Linux, this is known as Ethernet Bridging. So let’s start here how we configure EtherChannel on cisco switches.

Now to understand this whole configuration easily we take a lab in cisco packet tracer. In this lab, we take 4 PCs and 2 switches having ethernet ports in it.

configure EtherChannel on cisco switches

We configure this whole lab in three parts in the first part we create channels on both the switches and also set an hostname on both the switches. After that in the second part, we assign channels on the interfaces of the switches to configure EtherChannel on switches. Now in the third part, we run troubleshoot command on both the switches and verify our EtherChannel configuration and also assign IP address on all the PCs and send packets to the another PC and check the speed of EtherChannel.

Now I am going to configure EtherChannel on two Ethernet ports you can increase these ports according to your need.

To create EtherChannels on the interfaces of the switches use given below command

For switch s1

Switch>en

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname s1

s1(config)#int range fa0/1-2

s1(config-if-range)#channel-group 1 mode on

s1(config-if-range)#

Creating a port-channel interface Port-channel 1

%LINK-5-CHANGED: Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

s1(config-if-range)#exit

 

 

For switch s2

Switch>en

Switch#config t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#hostname s2

s2(config)#int range fa0/1-2

s2(config-if-range)#channel-group 1 mode on

s2(config-if-range)#

Creating a port-channel interface Port-channel 1

%LINK-5-CHANGED: Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

s2(config-if-range)#exit

 

 

Now to assign and configure Etherchannel on the switches use given below command.

For switch s1

s1(config)#interface port-channel 1

s1(config-if)#switchport mode trunk

s1(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

s1(config-if)#exit

 

For switch s2

s2(config)#interface port-channel 1

s2(config-if)#switchport mode trunk

s2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up

s2(config-if)#exit

EtherChannel will be configured on both the switches now assign IP address on all the PCs and check whether EtherChannel will be configured correctly on the switches or not.

 

Now run troubleshoot command on both the switches and verify your EtherChannel configuration.

For switch s1

s1#show etherchannel summary

Flags: D – down P – in port-channel

I – stand-alone s – suspended

H – Hot-standby (LACP only)

R – Layer3 S – Layer2

U – in use f – failed to allocate aggregator

u – unsuitable for bundling

w – waiting to be aggregated

d – default port

Number of channel-groups in use: 1

Number of aggregators: 1

Group Port-channel Protocol Ports

——+————-+———–+———————————————-

1 Po1(SU) – Fa0/1(P) Fa0/2(P)

 

For switch s2

s2#show etherchannel summary

Flags: D – down P – in port-channel

I – stand-alone s – suspended

H – Hot-standby (LACP only)

R – Layer3 S – Layer2

U – in use f – failed to allocate aggregator

u – unsuitable for bundling

w – waiting to be aggregated

d – default port

Number of channel-groups in use: 1

Number of aggregators: 1

Group Port-channel Protocol Ports

——+————-+———–+———————————————-

1 Po1(SU) – Fa0/1(P) Fa0/2(P)

THAT’S IT

This is the whole process for configuring EtherChannel on the cisco switches. If you have any queries regarding this feel free to ask through the comment section and also provide feedback to us because your feedback is valuable for us.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s