{"id":203,"date":"2020-09-26T13:27:14","date_gmt":"2020-09-26T13:27:14","guid":{"rendered":"https:\/\/dft.wiki\/?p=203"},"modified":"2021-02-07T20:05:30","modified_gmt":"2021-02-07T20:05:30","slug":"etherchannel-on-cisco-routers","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=203","title":{"rendered":"EtherChannel on Cisco Routers"},"content":{"rendered":"<p>When the network grows and the traffic increase the Trunks between switches start to become the weakness of the system.<\/p>\n<p>If this only cable break the whole communication is lost, and all the traffic shares the bandwidth of only one port:<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-404\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/image-66.png\" alt=\"\" \/><\/figure>\n<p>Simply adding another cable does not really solve all the problems:<\/p>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-405\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/image-67.png\" alt=\"\" \/><\/figure>\n<p>The protocol STP will automatically block one of the ports to avoid looping in the network and the data traffic will still be limited to one port with one spare connection in case something happens with the principal.<\/p>\n<p>EtherChannel creates one virtual interface margin up to 8 port. The new connection is as fast as the sum of the bandwidth of each port.<\/p>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Switch1<\/p>\n<pre>enable \r\nconfigure terminal \r\nno ip domain lookup\r\nline con 0\r\nlogging synchronous\r\nhostname Switch1<\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Switch2<\/p>\n<pre>enable \r\nconfigure terminal \r\nno ip domain lookup\r\nline con 0\r\nlogging synchronous\r\nhostname Switch2<\/pre>\n<\/div>\n<\/div>\n<p><strong>Set EtherChannel Static:<\/strong><\/p>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Switch1<\/p>\n<pre>interface range g0\/1-2\r\nchannel-group 1 mode <strong>on<\/strong><\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Switch2<\/p>\n<pre>interface range g0\/1-2\r\nchannel-group 1 mode <strong>on<\/strong><\/pre>\n<\/div>\n<\/div>\n<p><strong>Set EtherChannel to negotiate via PAgP protocol (Cisco):<\/strong><\/p>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Switch1<\/p>\n<pre>interface range g0\/1-2\r\nchannel-group 1 mode <strong>desirable<\/strong><\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Switch2<\/p>\n<pre>interface range g0\/1-2\r\nchannel-group 1 mode <strong>desirable<\/strong><\/pre>\n<p>OR<\/p>\n<p>interface range g0\/1-2<br \/>\nchannel-group 1 mode <strong>auto<\/strong><\/p>\n<\/div>\n<\/div>\n<p><strong>Set EtherChannel to negotiate via LACP protocol:<\/strong><\/p>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Switch1<\/p>\n<pre>interface range g0\/1-2\r\nchannel-group 1 mode <strong>active<\/strong><\/pre>\n<\/div>\n<div class=\"wp-block-column\">\n<p>Switch2<\/p>\n<pre>interface range g0\/1-2\r\nchannel-group 1 mode <strong>active<\/strong><\/pre>\n<p>OR<\/p>\n<p>nterface range g0\/1-2<br \/>\nchannel-group 1 mode <strong>passive<\/strong><\/p>\n<\/div>\n<\/div>\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\" style=\"flex-basis: 69%;\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-409\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2020\/09\/image-69.png\" alt=\"\" \/><\/figure>\n<\/div>\n<div class=\"wp-block-column\" style=\"flex-basis: 31%;\">\n<p><strong>No EtherChannel:<\/strong><br \/>\n&#8211; Single Port Speed<br \/>\n&#8211; 1 spare Port<\/p>\n<p><strong>EtherChannel:<\/strong><br \/>\n&#8211; Dual Port Speed<br \/>\n&#8211; No spare port but in case of any go down the other honds the traffic.<\/p>\n<\/div>\n<\/div>\n<p><strong>Definitions os the Modes:<\/strong><\/p>\n<ul class=\"is-style-default\">\n<li>ON &#8211; ON\n<ul>\n<li>Enforces to form the link aggregation.<\/li>\n<\/ul>\n<\/li>\n<li>Desirable &#8211; Desirable\n<ul>\n<li>Both will initiate the negotiation and form the link.<\/li>\n<\/ul>\n<\/li>\n<li>Desirable &#8211; Auto\n<ul>\n<li>One side will initiate and the other side will be able to continue the negotiation to form the link.<\/li>\n<\/ul>\n<\/li>\n<li>Auto &#8211; Auto\n<ul>\n<li>Both sides will wait but will NOT initiate the negotiation, so they will NOT form the link.<\/li>\n<\/ul>\n<\/li>\n<li>Active &#8211; Active\n<ul>\n<li>Both will initiate the negotiation and form the link.<\/li>\n<\/ul>\n<\/li>\n<li>Active &#8211; Passive\n<ul>\n<li>One side will initiate and the other side will be able to continue the negotiation to form the link.<\/li>\n<\/ul>\n<\/li>\n<li>Passive &#8211; Passive\n<ul>\n<li>Both sides will wait but will NOT initiate the negotiation, so they will NOT form the link.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>To check the configuration in each Switch issue the commands:<\/strong><\/p>\n<pre>show spanning-tree\r\nshow etherchannel summary\r\nshow interfaces port-channel 1<\/pre>\n<p>EtherChannel can also be used on Access ports, but most frequently will be used on Trunk ports since they are naturally neck to the traffic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When the network grows and the traffic increase the Trunks between switches start to become [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203"}],"version-history":[{"count":6,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":1020,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions\/1020"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}