Lab Objective:
The focus of this lab is to understand EtherChannel (LACP, PAgP) and Multiple Spanning Tree (MST) implementation and configuration in Cisco IOS Catalyst switches.
Lab Topology:
The lab network topology is illustrated below:
|
IMPORTANT NOTE If you are using the www.howtonetwork.net racks, please begin each and every lab by shutting down all interfaces on all switches and then manually re-enabling only the interfaces that are illustrated in this topology. |
Task 1
Disable VTP on all switches. All switches should support the configuration, modification and deletion of VLANs.
Task 2
Configure EtherChannel trunks on the switches illustrated in the topology. Only switches DLS1 and DLS2 should actively initiate channel establishment; switches ALS1 and ALS2 should be configured as passive links that will should not actively attempt to establish an EtherChannel. The EtherChannels should be configured as follows:
- The two ports between DLS1 and DLS2 belong to channel group 1 and use mode on
- The two ports between DLS1 and ALS1 belong to channel group 2 and use LACP
- The two ports between DLS1 and ALS2 belong to channel group 3 and use PAgP
- The two ports between DLS2 and ALS1 belong to channel group 4 and use LACP
- The two ports between DLS2 and ALS2 belong to channel group 5 and use PAgP
Task 3
Following the EtherChannel configuration, protect the switched network from any future misconfigurations by ensuring misconfigured EtherChannels are automatically disabled. Additionally, configure the switches to automatically bring up EtherChannels that were disabled due to misconfigurations after 10 minutes.
Task 4
Configure VLANs 100, 200, 300, 400, 500, 600, 700, and 800 all switches. Use the default VLAN names or specify your own names, if so desired.
Task 5
Selecting your own name and revision number, configure Multiple STP as follows:
- VLANs 100 and 200 will be mapped to MST Instance # 1: Switch DLS1 should be root
- VLANs 300 and 400 will be mapped to MST Instance # 2: Switch DLS2 should be root
- VLANs 500 and 600 will be mapped to MST Instance # 3: Switch ALS1 should be root
- VLANs 700 and 800 will be mapped to MST Instance # 4: Switch ALS2 should be root
Task 6
Configure Spanning Tree so that interface cost values appear to the 802.1t (long) version
Lab Validation
Task 1
| DLS1(config)#vtp mode transparent Setting device to VTP TRANSPARENT mode. |
| DLS2(config)#vtp mode transparent Setting device to VTP TRANSPARENT mode. |
| ALS1(config)#vtp mode transparent Setting device to VTP TRANSPARENT mode. |
| ALS2(config)#vtp mode transparent Setting device to VTP TRANSPARENT mode. |
Task 2
| DLS1(config)#interface range fa 0/11 – 12 DLS1(config-if-range)#switchport DLS1(config-if-range)#switchport mode trunk DLS1(config-if-range)#switchport trunk encapsulation dot1q DLS1(config-if-range)#switchport mode trunk DLS1(config-if-range)#channel-group 1 mode on Creating a port-channel interface Port-channel 1 DLS1(config-if-range)#exit DLS1(config)#interface range fa 0/7 – 8 DLS1(config-if-range)#switchport DLS1(config-if-range)#switchport trunk encapsulation dot1q DLS1(config-if-range)#switchport mode trunk DLS1(config-if-range)#channel-group 2 mode active Creating a port-channel interface Port-channel 2 DLS1(config-if-range)#exit DLS1(config)#interface range fa 0/9 – 10 DLS1(config-if-range)#switchport DLS1(config-if-range)#switchport trunk encapsulation dot1q DLS1(config-if-range)#switchport mode trunk DLS1(config-if-range)#channel-group 3 mode desirable Creating a port-channel interface Port-channel 3 DLS1(config-if-range)#exit |
| DLS2(config)#interface range fa 0/11 – 12 DLS2(config-if-range)#switchport DLS2(config-if-range)#switchport trunk encapsulation dot1q DLS2(config-if-range)#switchport mode trunk DLS2(config-if-range)#channel-group 1 mode on Creating a port-channel interface Port-channel 1 DLS2(config-if-range)#exit DLS2(config)#interface range fa 0/9 – 10 DLS2(config-if-range)#switchport DLS2(config-if-range)#switchport trunk encapsulation dot1q DLS2(config-if-range)#switchport mode trunk DLS2(config-if-range)#channel-group 4 mode active Creating a port-channel interface Port-channel 4 DLS2(config-if-range)#exit DLS2(config)#interface range fa 0/7 – 8 DLS2(config-if-range)#switchport DLS2(config-if-range)#switchport trunk encapsulation dot1q DLS2(config-if-range)#switchport mode trunk DLS2(config-if-range)#channel-group 5 mode desirable Creating a port-channel interface Port-channel 5 DLS2(config-if-range)#exit |
| ALS1(config)#interface range f0/7 – 8 ALS1(config-if-range)#switchport mode trunk ALS1(config-if-range)#channel-group 2 mode passive Creating a port-channel interface Port-channel 2 ALS1(config-if-range)#exit ALS1(config)#interface range fa 0/9 – 10 ALS1(config-if-range)#switchport mode trunk ALS1(config-if-range)#channel-group 4 mode passive Creating a port-channel interface Port-channel 4 ALS1(config-if-range)#exit |
| ALS2(config)#interface range f0/9 – 10 ALS2(config-if-range)#switchport mode trunk ALS2(config-if-range)#channel-group 3 mode auto Creating a port-channel interface Port-channel 3 ALS2(config-if-range)#exit ALS2(config)#interface range f0/7 – 8 ALS2(config-if-range)#switchport mode trunk ALS2(config-if-range)#channel-group 5 mode auto Creating a port-channel interface Port-channel 5 ALS2(config-if-range)#exit |
Verify your configuration using the show etherchannel summary and the show interfaces trunk Cisco IOS Catalyst switch commands
| DLS1#show etherchannel summary Flags: D – down P – bundled 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 M – not in use, minimum links not met
Number of channel-groups in use: 3 Group Port-channel Protocol Ports DLS1#show interfaces trunk Port Mode Encapsulation Status Native vlan |
| DLS2#show etherchannel summary Flags: D – down P – bundled 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 M – not in use, minimum links not met
Number of channel-groups in use: 3 Group Port-channel Protocol Ports DLS2#show interfaces trunk Port Mode Encapsulation Status Native vlan |
| ALS1#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 – unsuitable for bundling U – in use f – failed to allocate aggregator d – default port Number of channel-groups in use: 2 Group Port-channel Protocol Ports ALS1#show interfaces trunk Port Mode Encapsulation Status Native vlan |
| ALS2#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 – unsuitable for bundling U – in use f – failed to allocate aggregator d – default port Number of channel-groups in use: 2 Group Port-channel Protocol Ports ALS2#show interfaces trunk Port Mode Encapsulation Status Native vlan |
Task 3
This task calls for the configuration of the EtherChannel guard feature. This feature places the port(s) into an err-disabled state if EtherChannel configurations are mismatched, e.g. EtherChannel parameters are not the same, which can result in loops within the network.
The second part of this task requires the configuration of the errdisable recovery feature for EtherChannel misconfigurations. The feature’s timer should be set to 600 seconds (10 mins).
| DLS1(config)#spanning-tree etherchannel guard misconfig DLS1(config)#errdisable recovery cause channel-misconfig DLS1(config)#errdisable recovery interval 600 |
| DLS2(config)#spanning-tree etherchannel guard misconfig DLS2(config)#errdisable recovery cause channel-misconfig DLS2(config)#errdisable recovery interval 600 |
| ALS1(config)#spanning-tree etherchannel guard misconfig ALS1(config)#errdisable recovery cause channel-misconfig ALS1(config)#errdisable recovery interval 600 |
| ALS2(config)#spanning-tree etherchannel guard misconfig ALS2(config)#errdisable recovery cause channel-misconfig ALS2(config)#errdisable recovery interval 600 |
You can use the show spanning-tree summary command to verify that the EtherChannel guard feature has been enabled. You can use the show errdisable recovery command to verify configured errdisable recovery feature settings:
| DLS1#show spanning-tree summary Switch is in pvst mode Root bridge for: none Extended system ID is enabled Portfast Default is disabled PortFast BPDU Guard Default is disabled Portfast BPDU Filter Default is disabled Loopguard Default is disabled EtherChannel misconfig guard is enabled UplinkFast is disabled BackboneFast is disabled Configured Pathcost method used is short |
| DLS1#show errdisable recovery ErrDisable Reason Timer Status —————– ————– arp-inspection Disabled bpduguard Disabled channel-misconfig Enabled dhcp-rate-limit Disabled dtp-flap Disabled gbic-invalid Disabled l2ptguard Disabled link-flap Disabled mac-limit Disabled link-monitor-fail Disabled loopback Disabled oam-remote-failur Disabled pagp-flap Disabled port-mode-failure Disabled psecure-violation Disabled security-violatio Disabled sfp-config-mismat Disabled storm-control Disabled udld Disabled unicast-flood Disabled vmps Disabled Timer interval: 600 seconds Interfaces that will be enabled at the next timeout: |
Task 4
| DLS1(config)#vlan 100 DLS1(config-vlan)#exit DLS1(config)#vlan 200 DLS1(config-vlan)#exit DLS1(config)#vlan 300 DLS1(config-vlan)#exit DLS1(config)#vlan 400 DLS1(config-vlan)#exit DLS1(config)#vlan 500 DLS1(config-vlan)#exit DLS1(config)#vlan 600 DLS1(config-vlan)#exit DLS1(config)#vlan 700 DLS1(config-vlan)#exit DLS1(config)#vlan 800 DLS1(config-vlan)#exit |
| DLS2(config)#vlan 100 DLS2(config-vlan)#exit DLS2(config)#vlan 200 DLS2(config-vlan)#exit DLS2(config)#vlan 300 DLS2(config-vlan)#exit DLS2(config)#vlan 400 DLS2(config-vlan)#exit DLS2(config)#vlan 500 DLS2(config-vlan)#exit DLS2(config)#vlan 600 DLS2(config-vlan)#exit DLS2(config)#vlan 700 DLS2(config-vlan)#exit DLS2(config)#vlan 800 DLS2(config-vlan)#exit |
| ALS1(config)#vlan 100 ALS1(config-vlan)#exit ALS1(config)#vlan 200 ALS1(config-vlan)#exit ALS1(config)#vlan 300 ALS1(config-vlan)#exit ALS1(config)#vlan 400 ALS1(config-vlan)#exit ALS1(config)#vlan 500 ALS1(config-vlan)#exit ALS1(config)#vlan 600 ALS1(config-vlan)#exit ALS1(config)#vlan 700 ALS1(config-vlan)#exit ALS1(config)#vlan 800 ALS1(config-vlan)#exit |
|
ALS2(config)#vlan 100 ALS2(config-vlan)#exit ALS2(config)#vlan 200 ALS2(config-vlan)#exit ALS2(config)#vlan 300 ALS2(config-vlan)#exit ALS2(config)#vlan 400 ALS2(config-vlan)#exit ALS2(config)#vlan 500 ALS2(config-vlan)#exit ALS2(config)#vlan 600 ALS2(config-vlan)#exit ALS2(config)#vlan 700 ALS2(config-vlan)#exit ALS2(config)#vlan 800 ALS2(config-vlan)#exit |
Task 5
| DLS1(config)#spanning-tree mst configuration DLS1(config-mst)#name CCNP DLS1(config-mst)#revision 0 DLS1(config-mst)#instance 1 vlan 100, 200 DLS1(config-mst)#instance 2 vlan 300, 400 DLS1(config-mst)#instance 3 vlan 500, 600 DLS1(config-mst)#instance 4 vlan 700, 800 DLS1(config-mst)#show current Current MST configuration Name [CCNP] Revision 0 Instances configured 5 Instance Vlans mapped |
| DLS2(config)#spanning-tree mst configuration DLS2(config-mst)#name CCNP DLS2(config-mst)#revision 0 DLS2(config-mst)#instance 1 vlan 100, 200 DLS2(config-mst)#instance 2 vlan 300, 400 DLS2(config-mst)#instance 3 vlan 500, 600 DLS2(config-mst)#instance 4 vlan 700, 800 DLS2(config-mst)#show current Current MST configuration Name [CCNP] Revision 0 Instances configured 5 Instance Vlans mapped |
| ALS1(config)#spanning-tree mst configuration ALS1(config-mst)#name CCNP ALS1(config-mst)#revision 0 ALS1(config-mst)#instance 1 vlan 100, 200 ALS1(config-mst)#instance 2 vlan 300, 400 ALS1(config-mst)#instance 3 vlan 500, 600 ALS1(config-mst)#instance 4 vlan 700, 800 ALS1(config-mst)#show current Current MST configuration Name [CCNP] Revision 0 Instances configured 5 Instance Vlans mapped |
| ALS2(config)#spanning-tree mst configuration ALS2(config-mst)#name CCNP ALS2(config-mst)#revision 0 ALS2(config-mst)#instance 1 vlan 100, 200 ALS2(config-mst)#instance 2 vlan 300, 400 ALS2(config-mst)#instance 3 vlan 500, 600 ALS2(config-mst)#instance 4 vlan 700, 800 ALS2(config-mst)#show current Current MST configuration Name [CCNP] Revision 0 Instances configured 5 Instance Vlans mapped |
Following this configuration, use the show spanning-tree mst command to verify MST:
| DLS1#show spanning-tree mst 1
##### MST1 vlans mapped: 100,200 Interface Role Sts Cost Prio.Nbr Type DLS1#show spanning-tree mst 2 ##### MST2 vlans mapped: 300,400 Interface Role Sts Cost Prio.Nbr Type DLS1#show spanning-tree mst 3 ##### MST3 vlans mapped: 500,600 Interface Role Sts Cost Prio.Nbr Type DLS1#show spanning-tree mst 4 ##### MST4 vlans mapped: 700,800 Interface Role Sts Cost Prio.Nbr Type |
Task 6
By default, the 802.1D specification assigns a 16-bit (short) default port cost values to each port that is based on the bandwidth. The 802.1t standard assigns a 32-bit (long) default port cost values to each port using a formula that is based on the bandwidth of the port. The formula for obtaining default 32-bit port costs is to divide the bandwidth of the port by 200,000,000. To complete this task you will need to change the default 802.1D cost method as follows:
| DLS1(config)#spanning-tree pathcost method long |
| DLS1(config)#spanning-tree pathcost method long |
| DLS1(config)#spanning-tree pathcost method long |
| DLS1(config)#spanning-tree pathcost method long |
Verify the current cost method using the show spanning-tree pathcost method command
| DLS1#show spanning-tree pathcost method Spanning tree default pathcost method used is long |
| DLS1(config)#spanning-tree pathcost method long |
Final Switch Configurations
DLS1
|
DLS1#term len 0 Current configuration : 4639 bytes DLS1# |
DLS2
|
DLS2#term len 0 Current configuration : 4639 bytes DLS2# |
ALS1
|
ALS1#term len 0 Current configuration : 1488 bytes ALS1# |
ALS2
|
ALS2#term len 0 Current configuration : 1476 bytes ALS2# |
