Networking-Blog

My WordPress Blog

Cisco EtherChannel Trunk

Cisco Etherchannel Trunking with Multi Vlan Routing  on a Multilayer Switch 2900 :
!

track 1 interface Port-channel1 line-protocol
!
hostname HQ1
!
interface Port-channel1
 no ip address
 hold-queue 150 in
!
interface Port-channel1.10
 description I.T_vlan
 encapsulation dot1Q 10
 ip address 10.1.1.7 255.255.0.0
 standby 1 ip 10.1.1.6
 standby 1 priority 120
 standby 1 preempt
 standby 1 track 1 decrement 10
!
interface Port-channel1.19
 description office_vlan
 encapsulation dot1Q 19
 ip address 10.99.1.7 255.255.0.0
  standby 2 ip 10.99.1.6
 standby 2 priority 120
 standby 2 preempt
 standby 2 track 1 decrement 10
!
interface Port-channel1.20
 description finance_vlan
 encapsulation dot1Q 20
 ip address 10.33.1.7 255.255.0.0
 standby 3 ip 10.33.1.6
 standby 3 priority 120
 standby 3 preempt
 standby 3 track 1 decrement 10
!
interface Port-channel1.99
 description mgmt_vlan
 encapsulation dot1Q 99
 ip address 10.214.1.7 255.255.0.0
 standby 4 ip 10.214.1.6
 standby 4 priority 120
 standby 4 preempt
 standby 4 track 1 decrement 10
!
!
interface GigabitEthernet0/1
 description etherchannel_channel-port1_member
 no ip address
 channel-group 1
!       
!        
interface GigabitEthernet0/2
 description etherchannel_channel-port1_member
 no ip address
 channel-group 1
!       
!
!
!
Multilayer Switch 2960 :

interface Port-channel1
 switchport trunk allowed vlan 10,19,20,99,200 
 switchport mode trunk
!
!
interface GigabitEthernet0/21
 description PortChan_connected_HQ1
 switchport trunk allowed vlan 10,19,20,99,200
 switchport mode trunk
 channel-group 1 mode on
!
interface GigabitEthernet0/22
 description PortChan_connected_HQ1
 switchport trunk allowed vlan 10,19,20,99,200
 switchport mode trunk
 channel-group 1 mode on

Cisco EtherChannel

 

 

In EtherChannel, you can combine multiple physical links between switches into a single logical link
to increase the bandwidth size.

You can combine maximum eight physical links into one etherchannel link for the purpose of
high speed communication and load balancing between switches
.

Etherchannel can be configured using one of these modes :

Port Aggregation Protocol (PAgP) and Link Aggregation Control Protocol (LACP)

LACP allows a network device to negotiate an automatic bundling of links by sending LACP packets
to the peer (directly connected device that also implements LACP).

While STP is helping us by preventing switching loops, STP is also hurting us by preventing us
from using a perfectly valid path between SW1 and SW2.
We could literally double the bandwidth available between the two switches if we could use that
path that is currently being blocked.

The secret to using the currently blocked path is configuring an Etherchannel.
An Etherchannel is simply a logical bundling of 2 – 8 physical connections between two Cisco switches.

Configuring an Etherchannel is actually quite simple. Use the command “channel-group 1 mode on“ on
every port you want to be placed into the Etherchannel. Of course, this must be done on both switches
if you configure an
Etherchannel on one switch and don’t do so on the correct ports on the other switch,
the line protocol will go down and stay there
.

The beauty of an Etherchannel is that STP sees the Etherchannel as one connection.
If any of the physical connections inside the Etherchannel go down, STP does not see this,
and STP will not recalculate. While traffic flow between the two switches will obviously be slowed,
the delay in transmission caused by an STP recalculation is avoided.
An Etherchannel also allows us to use multiple physical connections at one time.

Here’s how to put these ports into an Etherchannel:

SW1 :

config t
interface fa0/45
channel-group 1 mode on
!
interface fa0/46
channel-group 1 mode on
!
interface fa0/47
channel-group 1 mode on
!
interface fa0/48
channel-group 1 mode on
!

Creating a
Port-Channel Interface Port-Channel 1
!
SW2 :
!
 
 config t
interface fa0/1
channel-group 1 mode on
!
interface fa0/2
channel-group 1 mode on
!
interface fa0/3
channel-group 1 mode on
!
interface fa0/4
channel-group 1 mode on
!
 
show etherchannel – command to display port-channel information after configuration
!

Configuration in the Cisco 3560 Catalyst Switch 1 :

 

config t
interface port-channel 1
no switchport
no shutdown
ip address 192.168.1.1 255.255.255.0

!
config t
interface range gigabitEthernet 0/45 – 48
(config-if-range)no switchport
(config-if-range)no ip address
(config-if-range)channel-group 1 mode desirable
!
(config-if-range)channel-protocol lacp
Note: LACP protocol is configured to be used in this channel
 

Note: This example shows how to configure Gigabit Ethernet ports 0/45- 0/48 into port channel 1
with PAgP mode desirable

 

Configuration in the Cisco 3560 Catalyst Switch 2 :

config t
interface port-channel 1
no switchport
no shutdown
ip address 192.168.1.2 255.255.255.0

 

!
config t
interface range gigabitEthernet 0/1 – 4
(config-if-range)# no switchport
(config-if-range)# no ip address
(config-if-range)# channel-group 1 mode auto
!
(config-if-range)channel-protocol lacp
Note: LACP protocol is configured to be used in this channel 

 

Cisco Multilayer Switch+EtherChannel

Implementation of an MPLS Router  Cisco 3900 Connected to a
Cisco 2960G MultiLayer Switch Running HSRP. Cisco 2960 Multilayer switch
further providing Trunk to Cisco 2960G MultiLayer Switch providing
routing of 4 Vlan’s with EtherChannel configured part of channel-group 1 & 2.
!
EtherChannel provides incremental trunk speeds between Fast Ethernet,
Gigabit Ethernet, and 10 Gigabit Ethernet. EtherChannel combines multiple Fast
Ethernet up to 800Mbps, Gigabit Ethernet up to 8Gbps , and 10 Gigabit Ethernet
up to 80Gbps.
!
Fast EtherChannel is a technology-leveraging, standards-based Fast Ethernet
used in parallel to provide the additional bandwidth network backbones require today.
It provides flexible, scalable bandwidth with resiliency and load sharing across links
for switches, router interfaces and servers. Supports up to eight links per channel.
!
!
HQ GW1-Cisco-2960-PRI-HSRP

track 1 interface Port-channel1 line-protocol
!
interface Loopback200
description WW_management
ip address 85.234.95.197 255.255.255.255
!
!
interface Port-channel1
no ip address
!
interface Port-channel1.10
description amari_it_vlan
encapsulation dot1Q 10
ip address 10.1.1.7 255.255.0.0
ip ospf network point-to-multipoint
ip ospf cost 10
ip ospf 1 area 0
standby 1 ip 10.1.1.6
standby 1 priority 120
standby 1 preempt
standby 1 track 1 decrement 10
!
interface Port-channel1.19
description amari_it_office_vlan
encapsulation dot1Q 19
ip address 10.99.1.7 255.255.0.0
standby 3 ip 10.99.1.6
standby 3 priority 120
standby 3 preempt
standby 3 track 1 decrement 10
!
interface Port-channel1.20
description amari_st_vlan
encapsulation dot1Q 20
ip address 10.33.1.7 255.255.0.0
standby 2 ip 10.33.1.6
standby 2 priority 120
standby 2 preempt
standby 2 track 1 decrement 10
!
interface Port-channel1.99
description amari_bt_mgmt_vlan
encapsulation dot1Q 99
ip address 10.214.1.7 255.255.0.0
standby 4 ip 10.214.1.6
standby 4 priority 120
standby 4 preempt
standby 4 track 1 decrement 10
!
interface GigabitEthernet0/0
description ww_mgmt_access
ip address 172.200.200.1 255.255.255.0
!
!
interface GigabitEthernet0/1
description etherchannel_channel-port1_member
no ip address
channel-group 1
!
interface GigabitEthernet0/2
description etherchannel_channel-port1_member
no ip address
channel-group 1
!
ip route 0.0.0.0 0.0.0.0 10.200.0.1
!
router ospf 1
log-adjacency-changes
redistribute static subnets
passive-interface Port-channel1.19
passive-interface Port-channel1.20
passive-interface Port-channel1.99
!
!
ip access-list extended reroute
permit ip any 10.3.0.0 0.0.0.255
permit ip any object-group reroute log
!
route-map reroute permit 10
match ip address reroute
set ip next-hop 10.1.1.1
!
!
HQ GW2-Cisco-2960-SEC-HSRP

interface Loopback200
description WW_management
ip address 85.234.95.198 255.255.255.255
!
!
interface Port-channel1
no ip address
!
interface Port-channel1.10
description amari_it_vlan
encapsulation dot1Q 10
ip address 10.1.1.8 255.255.0.0
ip ospf network point-to-multipoint
ip ospf cost 100
ip ospf 1 area 0
standby 1 ip 10.1.1.6
standby 1 priority 110
standby 1 preempt
standby 1 track 1 decrement 10
!
interface Port-channel1.19
description amari_it_office_vlan
encapsulation dot1Q 19
ip address 10.99.1.8 255.255.0.0
standby 3 ip 10.99.1.6
standby 3 priority 110
standby 3 preempt
standby 3 track 1 decrement 10
!
interface Port-channel1.20
description amari_st_vlan
encapsulation dot1Q 20
ip address 10.33.1.8 255.255.0.0
standby 2 ip 10.33.1.6
standby 2 priority 110
standby 2 preempt
standby 2 track 1 decrement 10
!
interface Port-channel1.99
description amari_bt_mgmt_vlan
encapsulation dot1Q 99
ip address 10.214.1.8 255.255.0.0
standby 4 ip 10.214.1.6
standby 4 priority 110
standby 4 preempt
standby 4 track 1 decrement 10
!
interface GigabitEthernet0/0
description ww_mgmt_access
ip address 172.200.200.2 255.255.255.0
!
!
interface GigabitEthernet0/1
description etherchannel_channel-port1_member
no ip address
channel-group 1
!
!
interface GigabitEthernet0/2
description etherchannel_channel-port1_member
no ip address
channel-group 1
!
ip route 0.0.0.0 0.0.0.0 10.200.0.1
!
router ospf 1
log-adjacency-changes
redistribute connected subnets
redistribute static subnets
passive-interface Port-channel1.19
passive-interface Port-channel1.20
passive-interface Port-channel1.99
!
!
!
HQ SW1-Cisco-2960-EtherChannel :

spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 10
name Amari_IT_Vlan
!
vlan 19
name Amari_IT_Office_Vlan
!
vlan 20
name Amari_ST_Vlan
!
vlan 99
name Amari_BT_mgmt
!
vlan 200
name Management
!
!
!
interface Loopback200
description WW_management
ip address 85.234.95.199 255.255.255.255
!
interface Port-channel1
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
!
interface Port-channel2
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
!
interface GigabitEthernet0/1
description Link_TO_Customer_Lan
switchport trunk allowed vlan 10,19,20,99
switchport mode trunk
!
!
interface GigabitEthernet0/19
description ww_mgmt
switchport access vlan 200
switchport mode access
speed 1000
duplex full
!
interface GigabitEthernet0/20
description Connected_To_amari_hq_lan_mpls_gw
switchport trunk allowed vlan 10,200
switchport mode trunk
speed 1000
duplex full
!
interface GigabitEthernet0/21
description PortChan_connected_amari_hq_lan_sw2
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet0/22
description PortChan_connected_amari_hq_lan_sw2
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet0/23
description PortChan_connected_amari_hq_lan_gw1
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 2 mode on
!
interface GigabitEthernet0/24
description PortChan_connected_amari_hq_lan_gw1
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 2 mode on
!
!
interface Vlan1
no ip address
no ip route-cache
!
interface Vlan200
ip address 172.200.200.4 255.255.255.0
ip access-group ww_mgmt in
!
ip default-gateway 172.200.200.6
!
!
!
HQ SW2-Cisco-2960-EtherChannel :
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 10
name Amari_IT_Vlan
!
vlan 19
name Amari_IT_Office_Vlan
!
vlan 20
name Amari_ST_Vlan
!
vlan 99
name Amari_BT_mgmt_Vlan
!
vlan 200
name Management_Vlan
!
!
!
interface Loopback12
no ip address
!
interface Loopback200
ip address 85.234.95.200 255.255.255.255
!
interface Port-channel1
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
!
interface Port-channel2
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
!
interface GigabitEthernet0/1
description Link_to_Customer_Lan
switchport trunk allowed vlan 10,19,20,99
switchport mode trunk
!
interface GigabitEthernet0/19
description ww_mgmt
switchport access vlan 200
switchport mode access
speed 1000
duplex full
!
interface GigabitEthernet0/20
description Link_To_amari_hq_lan_mpls_gw
switchport trunk allowed vlan 10,200
switchport mode trunk
speed 1000
duplex full
!
interface GigabitEthernet0/21
description PortChan_Connected_amari_hq_lan_sw1
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet0/22
description PortChan_Connected_amari_hq_lan_sw1
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet0/23
description PortCh_connected_amari_hq_lan_gw2
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 2 mode on
!
interface GigabitEthernet0/24
description PortCh_connected_amari_hq_lan_gw2
switchport trunk allowed vlan 10,19,20,99,200
switchport mode trunk
channel-group 2 mode on
!
interface Vlan1
no ip address
no ip route-cache
!
interface Vlan200
ip address 172.200.200.5 255.255.255.0
ip access-group ww_mgmt in
!
ip default-gateway 172.200.200.6