Device Interface IP Address Subnet Mask Default Gateway. Ports Assignment Network

Similar documents
Lab 5.5.2: Challenge Spanning Tree Protocol

PT Activity 4.4.1: Basic VTP Configuration

Lab 6.4.1: Basic Inter-VLAN Routing

Lab 5: Basic VLAN Configuration

Lab 5: Inter-VLANs Routing

PT Activity 2.5.1: Basic Switch Configuration

LAN Switching and Wireless

Instructor: Wasi ur Rehman

Device Interface IP Address Subnet Mask Default Gateway. Ports Assignment Network

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

Lab Troubleshooting VTP Configuration

Buy full file at

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

CCNA Semester 3 labs. Labs for chapters 2 10

CCNA Semester 3 labs. Part 1 of 1 Labs for chapters 1 8

Lab Configuring and Testing the Rapid Spanning Tree Prototype

Lab 6.4.2: Challenge Inter-VLAN Routing

TELECOMMUNICATION MANAGEMENT AND NETWORKS

Lab Configuring the Management VLAN on a Single Switch

Lab - Troubleshooting VLAN Configurations (Instructor Version Optional Lab)

Lab Analyzing a Test Plan and Performing a Test

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

Chapter 3 Lab 3-1, Spanning Tree Protocol (STP) Default Behavior

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

PT Activity 4.3.3: Configure VTP

KIM DONNERBORG / RTS. Cisco Lab Øvelse Af Kim Donnerborg / RTS. Side 0 af 8

Lab Catalyst 2950T and 3550 Series Basic Setup

Lab Inter-VLAN Routing with the Internal Route Processor

If this is your first time configuring the switch, you will notice that the Switch IOS is almost identical to Router IOS.

Lab Managing the MAC Address Table 2900XL Series

Lab - Configuring VLANs and Trunking

Lab Configuring Per-Interface Inter-VLAN Routing (Solution)

CCNA Layer 2 switching. Revision no.: PPT/2K605/03

Lab Configuring Per-Interface Inter-VLAN Routing (Instructor Version)

Lab - Configuring a Switch Management Address

Chapter 1 Introduction to Scaling Networks

Lab - Configuring VLANs and Trunking

Lab 3-2 Modifying Default Spanning Tree Behavior

Default Gateway Fa0/ N/A. Device Interface IP Address Subnet Mask

RealCiscoLAB.com. Multiple Spanning Tree. Topology. Objective. Background. CCNPv6 SWITCH. Observe the behavior of multiple spanning tree (MST).

RealCiscoLAB.com. Configuring EtherChannel. Topology. Objective. Background. Required Resources. CCNPv6 Switch. Configure EtherChannel.

Lab - Configuring VLANs and Trunking (Solution)

Device Interface IP Address Subnet Mask R1 G0/ N/A

CS IT ports switch basic configuration. Lecture (01) Introduction to 24 ports managed switches By: Dr. Ahmed ElShafee.

The objective of this lab is to become familiar with Cisco switches as well as the Spanning Tree Protocol.

Lecture (08) STP - CDP. Dr. Ahmed M. ElShafee CDP STP. tweak this simple design to make it more resilient by adding

Chapter 4 Lab 4-2 Multiple Spanning Tree INSTRUCTOR VERSION

Device Interface IP Address Subnet Mask Default Gateway

Lab 8-2 Securing Spanning Tree Protocol

Chapter 3 Lab 3-3, Per-VLAN Spanning Tree Behavior

Lab : Challenge OSPF Configuration Lab. Topology Diagram. Addressing Table. Default Gateway. Device Interface IP Address Subnet Mask

Configuring Spanning Tree Protocol

Lab Spanning-Tree Recalculation

RealCiscoLAB.com. Observe the behavior of a separate spanning tree instance per VLAN. Change spanning tree mode to rapid spanning tree.

VLANs. Traditional Campus Networks. Performance Issues. Broadcast Issues. Bridges terminate collision domains

Lab 1. CLI Navigation. Scenario. Initial Configuration for R1

VLANs. 2003, Cisco Systems, Inc. All rights reserved. 2-1

VLANs. 2003, Cisco Systems, Inc. All rights reserved. 2-1

Lab Configuring EtherChannel

RealCiscoLAB.com. Securing Spanning Tree Protocol. Topology. Objectives. Background. CCNPv6 SWITCH

Chapter 2: Layer 2 Technologies

LAN Troubleshooting. Ethernet Troubleshooting

Basic switch configuration

Lab Configuring 802.1Q Trunk-Based Inter-VLAN Routing Topology

Question 5.1. Every port on a switch is a collision domain. Every port on a router is a collision domain.

Packet Tracer - Configuring Initial Switch Settings

Lab Correcting RIPv2 Routing Problems

Lab Catalyst 2950 and 3550 Series Intra-VLAN Security

Configuring STP and RSTP

CCNA Routing & Switching Lab Workbook - Full-Scale Lab 1

Lab Configuring OSPF Timers 2500 Series

Lab Troubleshooting LAN Connectivity

CCENT Study Guide. Chapter 11 VLANs and Inter-VLAN Routing

RealCiscoLAB.com. Observe what happens when the default spanning tree behavior is modified.

Lab Configuring 802.1Q Trunk-Based Inter-VLAN Routing (Instructor Version Optional Lab)

Lab 5.6.2: Challenge RIP Configuration

Lab Configuring OSPF Authentication 2500 Series

Packet Tracer - Connect a Router to a LAN (Instructor Version)

EtherSwitch Service Module (ES) Configuration Example

Configuring HSRP. Global Knowledge Training LLC L5-1

Lab Using the CLI to Gather Network Device Information Topology

Lab Hot Standby Router Protocol

Lab 9.6.2: Challenge EIGRP Configuration Lab

Lab Catalyst 2950T and 3550 Series VTP Domain and VLAN Trunking

Lecture (06) Design and Configuration LAN Practicing, working on CISCO equipment. By: Dr. Ahmed ElShafee

Lab Selecting the Root Bridge

Lecture (04) VTP Ports Security

CCNA Semester 2 labs. Labs for chapters 2 10

The following graphic shows a single switch VLAN configuration.

configuring and connecting 24

Lecture (01) configuring and connecting 24 ports switch

VLANs. CCNA Exploration Semester 3 Chapter Sep-13

Lab Securing Network Devices

Lab Configuring HSRP and GLBP Topology

Lab Add, Move, and Change MAC Addresses

Lab Multigroup Hot Standby Router Protocol

Lab Configuring Basic Switch Settings (Solution)

LAB. Spanning Tree Protocol

Nexus 7000 Peer Switch Configuration (Hybrid Setup)

LAB MANUAL for Computer Network

Transcription:

Felix Rohrer Topology Diagram Addressing Table Device Interface IP Address Subnet Mask Default Gateway S1 VLAN 99 172.17.99.11 255.255.255.0 N/A S2 VLAN 99 172.17.99.12 255.255.255.0 N/A S3 VLAN 99 172.17.99.13 255.255.255.0 N/A PC1 NIC 172.17.10.21 255.255.255.0 172.17.10.12 PC2 NIC 172.17.20.22 255.255.255.0 172.17.20.12 PC3 NIC 172.17.30.23 255.255.255.0 172.17.30.12 Port Assignments S2 Ports Assignment Network Fa0/1-0/5 802.1q Trunks (Native VLAN 99) 172.17.99.0 /24 Fa0/6-0/10 VLAN 30 Guest(Default) 172.17.30.0 /24 Fa0/11-0/17 VLAN 10 Faculty/Staff 172.17.10.0 /24 Fa0/18-0/24 VLAN 20 - Students 172.17.20.0 /24 All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 12

Learning Objectives Perform basic switch configurations. Configure the Ethernet interfaces on the host PCs. Configure VLANs. Configure spanning tree. Optimizing STP. Introduction In this activity, you will perform basic switch configurations, configure addressing on PCs, configure VLANs, examine the Spanning Tree Protocol and learn how to optimize it. Task 1: Perform Basic Switch Configurations Configure the S1, S2, and S3 switches according to the following guidelines and save all your configurations: Configure the switch hostname as indicated on the topology. Disable DNS lookup. Configure an encrypted privileged EXEC mode password of class. Configure a password of cisco for console connections. Configure a password of cisco for vty connections. Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S1 S1(config)#enable secret class S1(config)#no ip domain-lookup S1(config)#line console 0 S1(config-line)#password cisco S1(config-line)#login S1(config-line)#line vty 0 15 S1(config-line)#password cisco S1(config-line)#login S1(config-line)#end %SYS-5-CONFIG_I: Configured from console by console S1#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Your completion results should be 18 percent. If not, check for missing configuration statements. done All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 12

Task 2: Configure the Ethernet Interfaces on the Host PCs From the Desktop tab, use the IP Configuration window to configure the Ethernet interfaces of PC1, PC2, and PC3 with the IP address, subnet mask, and gateway indicated in the addressing table. Your completion results should be 26 percent. If not, check for missing configuration steps. done Task 3: Configure VLANs Step 1. Enable the user ports on S2 in access mode. Refer to the topology diagram to determine which switch ports on S2 are activated for end-user device access. These three ports will be configured for access mode and enabled with the no shutdown command. S2(config)#interface fa0/6 S2(config-if)#switchport mode access S2(config-if)#no shutdown S2(config-if)#interface fa0/11 S2(config-if)#switchport mode access S2(config-if)#no shutdown S2(config-if)#interface fa0/18 S2(config-if)#switchport mode access S2(config-if)#no shutdown Step 2. Configure VTP. Configure VTP on the three switches using the following table. Remember that VTP domain names and passwords are case-sensitive. The default operating mode is server. Switch Name VTP Operating Mode VTP Domain VTP Password S1 Server Lab5 cisco S2 Client Lab5 cisco S3 Client Lab5 cisco S1(config)#vtp mode server Device mode already VTP SERVER. S1(config)#vtp domain Lab5 Changing VTP domain name from NULL to Lab5 S1(config)#vtp password cisco Setting device VLAN database password to cisco S1(config)#end S2(config)#vtp mode client Setting device to VTP CLIENT mode S2(config)#vtp domain Lab5 Changing VTP domain name from NULL to Lab5 S2(config)#vtp password cisco Setting device VLAN database password to cisco S2(config)#end All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 12

S3(config)#vtp mode client Setting device to VTP CLIENT mode S3(config)#vtp domain Lab5 Changing VTP domain name from NULL to Lab5 S3(config)#vtp password cisco Setting device VLAN database password to cisco S3(config)#end Step 3. Configure Trunk Links and Native VLAN. Configure trunking ports and native VLAN. For each switch, configure ports Fa0/1 through Fa0/5 as trunking ports. Designate VLAN 99 as the native VLAN for these trunks. When this activity was started, these ports were disabled and must be re-enabled now using the no shutdown command. Only the commands for the FastEthernet0/1 interface on each switch are shown, but the commands should be applied up to the FastEthernet0/5 interface. S1(config)#interface fa0/1 S1(config-if)#switchport mode trunk S1(config-if)#switchport trunk native vlan 99 S1(config-if)#no shutdown S1(config)#end S2(config)#interface fa0/1 S2(config-if)#switchport mode trunk S2(config-if)#switchport trunk native vlan 99 S2(config-if)#no shutdown S2(config-if)#end S3(config)#interface fa0/1 S3(config-if#switchport mode trunk S3(config-if)#switchport trunk native vlan 99 S3(config-if)#no shutdown S3(config-if-#end Step 4. Configure the VTP server with VLANs. VTP allows you to configure VLANs on the VTP server and have those VLANs populated to the VTP clients in the domain. This ensures consistency in the VLAN configuration across the network. Configure the following VLANS on the VTP server: VLAN VLAN 99 VLAN 10 VLAN 20 VLAN 30 VLAN Name management faculty-staff students guest S1(config)#vlan 99 S1(config-vlan)#name management S1(config)#vlan 10 S1(config-vlan)#name faculty-staff S1(config)#vlan 20 S1(config-vlan)#name students S1(config)#vlan 30 S1(config-vlan)#name guest All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 12

S1(config-vlan)#end Step 5. Verify the VLANs. Use the show vlan brief command on S2 and S3 to verify that all four VLANs have been distributed to the client switches. S2#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ----------------------------- 1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12,Fa0/13 Fa0/14, Fa0/15, Fa0/16,Fa0/17 Fa0/18, Fa0/19, Fa0/20,Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gi0/1 Gi0/2 10 faculty/staff active 20 students active 30 guest active 99 management active S3#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ----------------------------- 1 default active Fa0/1, Fa0/2, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/10, Fa0/11, Fa0/12,Fa0/13 Fa0/14, Fa0/15, Fa0/16,Fa0/17 Fa0/18, Fa0/19, Fa0/20,Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gi0/1 Gi0/2 10 faculty/staff active 20 students active 30 guest active 99 management active Step 6. Configure the management interface address on all three switches. S1(config)#interface vlan99 S1(config-if)#ip address 172.17.99.11 255.255.255.0 S2(config)#interface vlan99 S2(config-if)#ip address 172.17.99.12 255.255.255.0 S3(config)#interface vlan99 S3(config-if)#ip address 172.17.99.13 255.255.255.0 Verify that the switches are correctly configured by pinging between them. From S1, ping the management interface on S2 and S3. From S2, ping the management interface on S3. Were the pings successful? If not, troubleshoot the switch configurations and try again. All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 12

Step 7. Assign switch ports to the VLANs. Port assignments are listed in the table at the beginning of the activity. However, since Packet Tracer 4.11 does not support the interface range command, only assign the first port from each range. S2(config)#interface fa0/6 S2(config-if)#switchport access vlan 30 S2(config-if)#interface fa0/11 S2(config-if)#switchport access vlan 10 S2(config-if)#interface fa0/18 S2(config-if)#switchport access vlan 20 S2(config-if)#end S2#copy running-config startup-config Destination filename [startup-config]? [enter] Building configuration... [OK] S2# Your completion results should be 99 percent. If not, check for missing configuration statements. done Task 4: Configure Spanning Tree Step 1. Examine the default configuration of 802.1D Spanning Tree Protocol (STP). On each switch, display the spanning tree table with the show spanning-tree command. The output is shown for S1 only. Root selection varies depending on the default BID of each switch. In this activity S3 is currently the root. S1#show spanning-tree VLAN0001 Root ID Priority 32769 Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) VLAN0010 Root ID Priority 32778 Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 12

VLAN0020 Root ID Priority 32788 Bridge ID Priority 32788 (priority 32768 sys-id-ext 20) VLAN0030 Root ID Priority 32798 Bridge ID Priority 32798 (priority 32768 sys-id-ext 30) Root ID Priority 32867 Bridge ID Priority 32867 (priority 32768 sys-id-ext 99) Note that there are five instances of STP on each switch. Examine the VLAN 99 spanning tree for all three switches: S1#show spanning-tree vlan 99 All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 12

Root ID Priority 32867 Bridge ID Priority 32867 (priority 32966 sys-id-ext 99) S2#show spanning-tree vlan 99 Root ID Priority 32867 Bridge ID Priority 32867 (priority 32966 sys-id-ext 99) Address 00E0.F7AE.7258 Fa0/3 Altn BLK 19 128.3 Shr Fa0/4 Altn BLK 19 128.3 Shr S3#show spanning-tree vlan 99 Root ID Priority 32867 This bridge is the root Bridge ID Priority 32867 (priority 32966 sys-id-ext 99) Fa0/1 Desg FWD 19 128.3 Shr Fa0/2 Desg FWD 19 128.3 Shr All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 12

Step 2. Examine the output. Answer the following questions based on the output. What is the priority for switches S1, S2, and S3 on VLAN 99? Priority: 32867 What is the priority for S1 on VLANs 10, 20, 30, and 99? S1 Vlan 10 Priority: 32778 S1 Vlan 20 Priority: 32788 S1 Vlan 30 Priority: 32798 S1 Vlan 99 Priority: 32867 Which ports are blocking VLAN 99 on the root switch? keiner Fa0/1 Desg FWD 19 128.1 P2p Fa0/2 Desg FWD 19 128.2 P2p Fa0/3 Desg FWD 19 128.3 P2p Fa0/4 Desg FWD 19 128.4 P2p Which ports are blocking VLAN 99 on the non-root switches? S1: Fa0/1 Root FWD 19 128.1 P2p Fa0/4 Desg FWD 19 128.4 P2p Fa0/2 Altn BLK 19 128.2 P2p Fa0/3 Desg FWD 19 128.3 P2p S2: Fa0/2 Altn BLK 19 128.2 P2p Fa0/3 Altn BLK 19 128.3 P2p Fa0/4 Altn BLK 19 128.4 P2p Fa0/1 Root FWD 19 128.1 P2p How does STP select the root? Anhand der tiefsten BID (Bridge-ID), 8Byte, 2Byte für die Priorität und 6Byte für die MAC-Addresse Since the bridge priorities are all the same, what else does the switch use to determine the root? MAC-Adresse All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 12

Task 5: Optimizing STP Because there is a separate instance of the spanning tree for every active VLAN, a separate root election is conducted for each instance. If the default switch priorities are used in root selection, the same root is elected for every spanning tree, as we have seen. This could lead to an inferior design. Some reasons to control the selection of the root switch include: The root switch is responsible for generating BPDUs in STP 802.1D and is the focal point for spanning tree control traffic. The root switch must be capable of handling this additional load. The placement of the root defines the active switched paths in the network. Random placement is likely to lead to suboptimal paths. Ideally the root is in the distribution layer. Consider the topology used in this activity. Of the six trunks configured, only two are carrying traffic. While this prevents loops, it is a waste of resources. Because the root can be defined on the basis of the VLAN, you can have some ports blocking for one VLAN and forwarding for another. This is demonstrated below. In this example, it has been determined that the root selection using default values has led to underutilization of the available switch trunks. Therefore, it is necessary to force another switch to become the root switch for VLAN 99 to impose some load-sharing on the trunks. In the example output below, the default root switch for all VLANs is S3. Selection of the root switch is accomplished by changing the spanning-tree priority for the VLAN. The default priority, as you have observed, is 32768 plus the VLAN ID. The lower number indicates a higher priority for root selection. Set the priority for VLAN 99 on S1 to 4096. S1(config)#spanning-tree vlan 99 priority 4096 S1(config)#exit Give the switches a little time to recalculate the spanning tree and then check the tree for VLAN 99 on switch S3 (the original VLAN 99 root) and switch S1 (the non-root switch selected to become the new VLAN 99 root). S3#show spanning-tree vlan 99 Root ID Priority 4195 Bridge ID Priority 32867 (priority 32966 sys-id-ext 99) S1#show spanning-tree vlan 99 Root ID Priority 4195 All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 12

This bridge is the root Bridge ID Priority 4195 (priority 4294 sys-id-ext 99) Fa0/2 Desg FWD 19 128.3 Shr Fa0/1 Desg FWD 19 128.3 Shr Which switch is the root for VLAN 99? Neu ist es S1. Which ports are blocking VLAN 99 traffic on the new root? Keiner Fa0/1 Desg FWD 19 128.1 P2p Fa0/4 Desg FWD 19 128.4 P2p Fa0/2 Desg LSN 19 128.2 P2p Fa0/3 Desg FWD 19 128.3 P2p Which ports are now blocking VLAN 99 traffic on the old root? Fa0/1 Root FWD 19 128.1 P2p Fa0/2 Altn BLK 19 128.2 P2p Fa0/3 Desg FWD 19 128.3 P2p Fa0/4 Desg FWD 19 128.4 P2p Compare the S1 VLAN 99 spanning tree above with the S1 VLAN 10 spanning tree. S1#show spanning-tree vlan 10 VLAN0010 Root ID Priority 32778 Bridge ID Priority 32778 (priority 32788 sys-id-ext 10) All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 11 of 12

Note that S1 can now use all four ports for VLAN 99 traffic as long as they are not blocked at the other end of the trunk. However, the original spanning tree topology, with one of four S1 ports in blocking mode, is still in place for the four other active VLANs. By configuring groups of VLANs to use different trunks as their primary forwarding path, we retain the redundancy of failover trunks, without having to leaves trunks totally unused. Your completion results should be 100 percent. If not, use Check Results to find any incomplete components. S1#sh spanning-tree vlan 10 VLAN0010 Root ID Priority 32778 Cost 19 Port 1(FastEthernet0/1) Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Aging Time 20 Fa0/1 Root FWD 19 128.1 P2p Fa0/4 Desg FWD 19 128.4 P2p Fa0/2 Altn BLK 19 128.2 P2p Fa0/3 Desg FWD 19 128.3 P2p S1#sh spanning-tree vlan 99 Root ID Priority 4195 This bridge is the root Bridge ID Priority 4195 (priority 4096 sys-id-ext 99) Aging Time 20 Fa0/1 Desg FWD 19 128.1 P2p Fa0/4 Desg FWD 19 128.4 P2p Fa0/2 Desg FWD 19 128.2 P2p Fa0/3 Desg FWD 19 128.3 P2p All contents are Copyright 1992 2007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 12 of 12