CCNP BCMSN Spanning Tree

Document Sample
CCNP BCMSN Spanning Tree Powered By Docstoc
					                                                                        BCMSN LAB 5
                                                             Spanning Tree Protocol

          Lab 5: Spanning Tree Protocol
          Objective
          Observe the default spanning tree, configure the Spanning Tree Protocol, and verify the spanning
          tree configuration.

          Lab Topology
          For this lab, your network design will include two pods of devices. You will be responsible for
          configuring the devices in both pods. The devices on the left side of the topology are in Pod 1.
          The devices on the right side of the topology are in Pod 2. P1PC1 and P2PC2 are PC workstations.
          P1ASW1 and P2ASW2 are access-layer switches. P1DSW1 and P2DSW2 are distribution-layer
          switches. The access and distribution layers are two of the three layers in the Cisco three-layer
          hierarchical network model, which also includes the core layer.
          The Topology diagram below represents the NetMap in the Simulator. To access each of the devices
          from within the Simulator, select the device name from the appropriate menu in the Simulator. For
          example, to access P1ASW1, click the eSwitches button and select P1ASW1 from the drop-down menu.


                              VLAN 11                                             VLAN 12
                             172.16.11.1                                         172.16.12.2

        Note:                     P1PC1                    Note:                      P2PC2
     ASW has a                                          ASW has a
        VLAN                                               VLAN
    interface for                                      interface for
   each VLAN; IP                                      each VLAN; IP
     address is                                         address is
  172.16.x.10 /16,                                   172.16.x.20 /16,
     where x is                                         where x is
     the VLAN                                           the VLAN
      number
                     P1ASW1                              number
                                                                        P2ASW2
                      172.16.1.10                                           172.16.1.20




      Note:                                                                                                  Note:
   DSW has a                                                                                              DSW has a
      VLAN                                                                                                   VLAN
  interface for                                                                                          interface for
 each VLAN; IP                                                                                          each VLAN; IP
   address is                                                                                             address is
172.16.x.100 /16,
   where x is        P1DSW1                                             P2DSW2                         172.16.x.200 /16,
                                                                                                          where x is
   the VLAN                                                                                               the VLAN
    number           172.16.1.100                                       172.16.1.200                       number
          BCMSN LAB 5
            Spanning Tree Protocol

Command Summary
                      Command                                                    Description
interface fastethernet slot/port                           configures an interface
interface range fastethernet slot/starting_port            configures a range of interfaces
– ending_port
show interface stats                                       displays statistics for packets and the switching method
                                                           used
show spanning-tree vlan vlan                               displays spanning tree for a VLAN
show spanning-tree vlan vlan detail                        displays spanning tree detail
shutdown; no shutdown                                      disables an interface; enables an interface
spanning-tree vlan vlan_id {root {primary |                configures spanning tree root bridge
secondary]
show spanning tree root                                    displays root bridge per VLAN
spanning-tree vlan vlan_id priority priority               sets spanning tree priority for use in the bridge ID
spanning-tree guard root                                   sets root guard
spanning-tree uplinkfast                                   sets uplinkfast
show spanning-tree uplinkfast                              verifies uplinkfast configuration
show interfaces interface_id switchport                    displays the switchport configuration
ping ip_address                                            sends an ICMP echo request

          Lab Tasks
          Task 1: View Default Spanning Tree
              1. Display the spanning tree for VLAN 1. Use the detail option. Use the output to answer
                 questions about the spanning tree.
                 a. Which spanning tree is VLAN 1 executing?
                 _____________________________________________________________
                 b. What is the bridge ID?
                 ____________________________________________________________
                 c. Why is there no root port?
                 _____________________________________________________________
                 d. Why are there no blocked ports for VLAN 1?
                 _____________________________________________________________
                 e. What is the timer value for sending bridge protocol data units (BPDUs)?
                 _____________________________________________________________
                 f. What is the maximum age for a BPDU?
                 _____________________________________________________________
                 g. What is the value of the forward delay timer?
                 _____________________________________________________________
                                                        BCMSN LAB 5
                                                Spanning Tree Protocol

2. Here is the output from a non-root switch.
    P2ASW2#show spanning-tree vlan 1 detail
    VLAN0001 is executing the ieee compatible Spanning Tree protocol
     Bridge Identifier has priority 32768, sysid 1, address 000a.f435.1200
     Configured hello time 5, max age 40, forward delay 30
     Current root has priority 32769, address 000a.41bf.0a40
     Root port is 3 (FastEthernet0/3), cost of root path is 38
     Topology change flag not set, detected flag not set
     Number of topology changes 49 last change occurred 08:43:53 ago
     Times: hold 1, topology change 35, notification 2
          hello 2, max age 20, forward delay 15
     Timers: hello 0, topology change 0, notification 0, aging 300
    Port 1 (FastEthernet0/1) of VLAN0001 is blocking
      Port path cost 19, Port priority 128, Port Identifier 128.1.
      Designated root has priority 32769, address 000a.41bf.0a40
      Designated bridge has priority 32769, address 000b.5f23.ed00
      Designated port id is 128.15, designated path cost 19
      Timers: message age 3, forward delay 0, hold 0
      Number of transitions to forwarding state: 1
      BPDU: sent 43, received 15759
    Port 2 (FastEthernet0/2) of VLAN0001 is blocking
      Port path cost 19, Port priority 128, Port Identifier 128.2.
      Designated root has priority 32769, address 000a.41bf.0a40
      Designated bridge has priority 32769, address 000b.5f23.ed00
      Designated port id is 128.16, designated path cost 19
      Timers: message age 3, forward delay 0, hold 0
      Number of transitions to forwarding state: 1
      BPDU: sent 46, received 15743
    Port 3 (FastEthernet0/3) of VLAN0001 is forwarding
      Port path cost 19, Port priority 128, Port Identifier 128.3.
      Designated root has priority 32769, address 000a.41bf.0a40
      Designated bridge has priority 32769, address 000b.5f23.eb00
      Designated port id is 128.15, designated path cost 19
      Timers: message age 2, forward delay 0, hold 0
      Number of transitions to forwarding state: 1
      BPDU: sent 161, received 15706
    Port 4 (FastEthernet0/4) of VLAN0001 is blocking
      Port path cost 19, Port priority 128, Port Identifier 128.4.
      Designated root has priority 32769, address 000a.41bf.0a40
      Designated bridge has priority 32769, address 000b.5f23.eb00
BCMSN LAB 5
  Spanning Tree Protocol

         Designated port id is 128.16, designated path cost 19
          Timers: message age 2, forward delay 0, hold 0
          Number of transitions to forwarding state: 1
          BPDU: sent 144, received 15692
       Port 5 (FastEthernet0/5) of VLAN0001 is forwarding
          Port path cost 100, Port priority 128, Port Identifier 128.5.
          Designated root has priority 32769, address 000a.41bf.0a40
          Designated bridge has priority 32769, address 000a.f435.1200
          Designated port id is 128.5, designated path cost 38
          Timers: message age 0, forward delay 0, hold 0
          Number of transitions to forwarding state: 1
          BPDU: sent 39928, received 0
       Review the output above, and answer the following questions.
       a. What is the bridge ID?
       ______________________________________________________________
       b. What is the root bridge ID?
       ______________________________________________________________
       c. What is the root port?
       ______________________________________________________________
       d. What is the cost for using the root port?
       ______________________________________________________________
       e. What is the cost of the root path? Why is this cost different?
       ______________________________________________________________
       f. What is the configured value for hello time, max age, and forward delay?
       ______________________________________________________________
       g. Are these the timers that are in effect? Why or why not?
       ______________________________________________________________
Task 2: Configure the Root Bridge
      VLAN Root Bridge           Secondary Root Bridge
      11 P1DSW1                  P2DSW2
      12 P2DSW2                  P1DSW1
   1. Using the table above, assign the proper DSW as the root bridge for your VLAN.
   2. Display the Spanning Tree for your VLAN to verify that it is the root.
   3. Assign the proper DSW as the secondary root bridge for your VLAN. Display the spanning
      tree for your VLAN to verify that it is the secondary root.
                                                           BCMSN LAB 5
                                                   Spanning Tree Protocol

Lab Solutions
Task 1: View Default Spanning Tree
   1. P1ASW1#show spanning-tree vlan 1 detail
       VLAN0001 is executing the ieee compatible Spanning Tree protocol
        Bridge Identifier has priority 32768, sysid 1, address 000a.41bf.0a40
        Configured hello time 2, max age 20, forward delay 15
        We are the root of the spanning tree
        Topology change flag not set, detected flag not set
        Number of topology changes 43 last change occurred 01:55:00 ago
        Times: hold 1, topology change 35, notification 2
             hello 2, max age 20, forward delay 15
        Timers: hello 1, topology change 0, notification 0, aging 300
       Port 1 (FastEthernet0/1) of VLAN0001 is forwarding
         Port path cost 19, Port priority 128, Port Identifier 128.1.
         Designated root has priority 32769, address 000a.41bf.0a40
         Designated bridge has priority 32769, address 000a.41bf.0a40
         Designated port id is 128.1, designated path cost 0
         Timers: message age 0, forward delay 0, hold 0
         Number of transitions to forwarding state: 2
         Link type is point-to-point by default
         BPDU: sent 42807, received 20345
       Port 2 (FastEthernet0/2) of VLAN0001 is forwarding
         Port path cost 19, Port priority 128, Port Identifier 128.2.
         Designated root has priority 32769, address 000a.41bf.0a40
         Designated bridge has priority 32769, address 000a.41bf.0a40
         Designated port id is 128.2, designated path cost 0
         Timers: message age 0, forward delay 0, hold 0
         Number of transitions to forwarding state: 2
         Link type is point-to-point by default
         BPDU: sent 42454, received 20247
       Port 3 (FastEthernet0/3) of VLAN0001 is forwarding
         Port path cost 19, Port priority 128, Port Identifier 128.3.
         Designated root has priority 32769, address 000a.41bf.0a40
         Designated bridge has priority 32769, address 000a.41bf.0a40
         Designated port id is 128.3, designated path cost 0
         Timers: message age 0, forward delay 0, hold 0
         Number of transitions to forwarding state: 1
         Link type is point-to-point by default
         BPDU: sent 3651, received 29
BCMSN LAB 5
 Spanning Tree Protocol

       Port 4 (FastEthernet0/4) of VLAN0001 is forwarding
         Port path cost 19, Port priority 128, Port Identifier 128.4.
         Designated root has priority 32769, address 000a.41bf.0a40
         Designated bridge has priority 32769, address 000a.41bf.0a40
         Designated port id is 128.4, designated path cost 0
         Timers: message age 0, forward delay 0, hold 0
         Number of transitions to forwarding state: 1
         Link type is point-to-point by default
         BPDU: sent 3641, received 6
      Port 5 (FastEthernet0/5) of VLAN0001 is forwarding
         Port path cost 100, Port priority 128, Port Identifier 128.5.
         Designated root has priority 32769, address 000a.41bf.0a40
         Designated bridge has priority 32769, address 000a.41bf.0a40
         Designated port id is 128.5, designated path cost 0
         Timers: message age 0, forward delay 0, hold 0
         Number of transitions to forwarding state: 1
         Link type is shared by default
         BPDU: sent 3768, received 0
      a. VLAN 1 is executing IEEE.
      b. The bridge ID has priority 32768, sysid 1, and address 000a.41bf.0a40.
      c. There is no root port because this is the root bridge.
      d. There are no blocked ports for VLAN 1 because all ports on the root bridge are
      designated ports.
      e. The timer value for sending BPDUs is 2 seconds.
      f. The maximum age for a BPDU is 20 seconds.
      g. The value of the forward delay timer is 15 seconds.
   2. a. The bridge ID has priority 32768, sysid 1, and address 000a.f435.1200.
      b. The current root has priority 32769 and address 000a.41bf.0a40.
      c. The root port is 3 (FastEthernet0/3).
      d. The cost for using the root port is 19.
      e. The cost of the root path is 38. This device is not directly connected to the root.
      Path cost is additive.
      f. The configured hello time is 5, the max age is 40, and the forward delay is 30.
      g. These timers are not in effect. The timers that are in effect are the timers advertised
      by the root bridge.
Task 2: Configure the Root Bridge
   1. spanning-tree vlan 11 root primary
   2. P1DSW1#show spanning-tree vlan 11
       VLAN0011
        Spanning tree enabled protocol ieee
        Root ID Priority 24587
               Address 000b.5f23.ed00
               This bridge is the root
               Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
                                                                BCMSN LAB 5
                                                      Spanning Tree Protocol

     Bridge ID Priority 24587 (priority 24576 sys-id-ext 11)
            Address 000b.5f23.ed00
            Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
            Aging Time 300
   Interface         Port ID                   Designated                  Port ID
   Name              Prio.Nbr       Cost Sts        Cost Bridge ID              Prio.Nbr
   ---------------- -------- --------- --- --------- -------------------- --------
   Fa0/1           128.11            19 FWD            0 24587 000b.5f23.ed00 128.11
   Fa0/2           128.12            19 FWD            0 24587 000b.5f23.ed00 128.12
   Fa0/3           128.15            19 FWD            0 24587 000b.5f23.ed00 128.15
   Fa0/4           128.16            19 FWD            0 24587 000b.5f23.ed00 128.16
3. spanning-tree vlan 11 root secondary
   P2DSW2#show spanning-tree vlan 11
   VLAN0011
    Spanning tree enabled protocol ieee
    Root ID Priority 24587
           Address 000b.5f23.ed00
           Cost     38
           Port     15 (FastEthernet0/15)
           Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
     Bridge ID Priority 28683 (priority 28672 sys-id-ext 11)
            Address 000b.5f23.eb00
            Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
            Aging Time 300
   Interface         Port ID                   Designated                  Port ID
   Name              Prio.Nbr       Cost Sts        Cost Bridge ID              Prio.Nbr
   ---------------- -------- --------- --- --------- -------------------- --------
   Fa0/1           128.11            19 FWD           38 28683 000b.5f23.eb00 128.11
   Fa0/2           128.12            19 FWD           38 28683 000b.5f23.eb00 128.12
   Fa0/3           128.15            19 FWD           19 32779 000a.f435.1200 128.3
   Fa0/4           128.16            19 BLK           19 32779 000a.f435.1200 128.4
           BCMSN LAB 5
              Spanning Tree Protocol

Sample Configuration Scripts
                          P1DSW1                        P1DSW1 (Continued)
version 12.1                             interface FastEthernet0/8
!                                          no ip address
hostname P1DSW1                          !
!                                        interface FastEthernet0/9
ip subnet-zero                             no ip address
no ip domain-lookup                      !
!                                        interface FastEthernet0/10
interface FastEthernet0/1                  no ip address
  description P1DSW1 to P1ASW1           !
  switchport trunk encapsulation dot1q   interface FastEthernet0/23
  no ip address                            switchport trunk encapsulation dot1q
  duplex full                              switchport mode trunk
  speed 100                                no ip address
!                                        !
interface FastEthernet0/2                interface FastEthernet0/24
  description P1DSW1 to P1ASW1             switchport trunk encapsulation dot1q
  switchport trunk encapsulation dot1q     switchport mode trunk
  no ip address                            no ip address
  duplex full                            !
  speed 100                              interface GigabitEthernet0/1
!                                          no ip address
interface FastEthernet0/3                !
  description P1DSW1 to P2ASW2           interface GigabitEthernet0/2
  switchport trunk encapsulation dot1q     no ip address
  no ip address                          !
  duplex full                            interface Vlan1
  speed 100                                ip address 172.16.1.100 255.255.0.0
!                                          shutdown
interface FastEthernet0/4                !
  description P1DSW1 to P2ASW2           interface Vlan99
  switchport trunk encapsulation dot1q     ip address 172.16.99.100 255.255.0.0
  no ip address                          !
  duplex full                            ip classless
  speed 100                              ip http server
!                                        !
interface FastEthernet0/5                line con 0
  no ip address                            password cisco
!                                          login
interface FastEthernet0/6                line vty 0 4
  no ip address                            password cisco
!                                           login
interface FastEthernet0/7                line vty 5 15
  no ip address                            login
!                                        !
                                         end

				
DOCUMENT INFO
Shared By:
Stats:
views:19
posted:9/26/2011
language:English
pages:8
Description: CCNP BCMSN Spanning Tree