Ethernet LAN Spanning Tree question

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Spanning Tree question dilan.weerasinghe 09-27-06
Posted by on September 27, 2006, 5:23 am
Please log in for more thread options


Hi

I have a home lab with a couple of Cisco 2924 XL switches that I'm
practising Spanning tree on. I've made 2 connections from each switch
to the other to provide a redundant connection and see ST in action. On

the 2924_A switch, there are also connections to my laptop and a Cisco
PIX firewall, which are labelled.


Here is the output of sh spanning-tree from both switches (omitting
unused ports for clarity)


Switch: 2924_A:


Spanning tree 1 is executing the IEEE compatible Spanning Tree protocol

Bridge Identifier has priority 32768, address 00d0.ba2f.ae00
Configured hello time 2, max age 20, forward delay 15
Current root has priority 32768, address 0002.fdf6.f380
Root port is 23, cost of root path is 19
Topology change flag not set, detected flag not set, changes 10
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0


Interface Fa0/1 (port 13) in Spanning tree 1 is FORWARDING
Port path cost 100, Port priority 128
Designated root has priority 32768, address 0002.fdf6.f380
Designated bridge has priority 32768, address 00d0.ba2f.ae00
Designated port is 13, path cost 19
Timers: message age 0, forward delay 0, hold 0
BPDU: sent 5558, received 0


**link to Cisco PIX Firewall**


Interface Fa0/9 (port 22) in Spanning tree 1 is FORWARDING
Port path cost 19, Port priority 128
Designated root has priority 32768, address 0002.fdf6.f380
Designated bridge has priority 32768, address 00d0.ba2f.ae00
Designated port is 22, path cost 19
Timers: message age 0, forward delay 0, hold 0
BPDU: sent 5506, received 0


**link to laptop**


Interface Fa0/10 (port 23) in Spanning tree 1 is FORWARDING
Port path cost 19, Port priority 128
Designated root has priority 32768, address 0002.fdf6.f380
Designated bridge has priority 32768, address 0002.fdf6.f380
Designated port is 13, path cost 0
Timers: message age 2, forward delay 0, hold 0
BPDU: sent 64, received 770


**link to 2924_B**


Interface Fa0/17 (port 31) in Spanning tree 1 is BLOCKING
Port path cost 19, Port priority 128
Designated root has priority 32768, address 0002.fdf6.f380
Designated bridge has priority 32768, address 0002.fdf6.f380
Designated port is 22, path cost 0
Timers: message age 1, forward delay 0, hold 0
BPDU: sent 41, received 765


**link to 2924_B**


---------------------


Switch: 2924_B


Spanning tree 1 is executing the IEEE compatible Spanning Tree protocol

Bridge Identifier has priority 32768, address 0002.fdf6.f380
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, changes 7
Times: hold 1, topology change 35, notification 2
hello 2, max age 20, forward delay 15
Timers: hello 0, topology change 0, notification 0


Interface Fa0/1 (port 13) in Spanning tree 1 is FORWARDING
Port path cost 19, Port priority 128
Designated root has priority 32768, address 0002.fdf6.f380
Designated bridge has priority 32768, address 0002.fdf6.f380
Designated port is 13, path cost 0
Timers: message age 0, forward delay 0, hold 0
BPDU: sent 722, received 11


**link to 2924_A**


Interface Fa0/9 (port 22) in Spanning tree 1 is FORWARDING
Port path cost 19, Port priority 128
Designated root has priority 32768, address 0002.fdf6.f380
Designated bridge has priority 32768, address 0002.fdf6.f380
Designated port is 22, path cost 0
Timers: message age 0, forward delay 0, hold 0
BPDU: sent 769, received 1


**link to 2924_A**


-------------------


I can see that 2924_B has become the Root Bridge because it has the
lower MAC address.


On the 2924_A switch, there are two connections to the root bridge,
fa0/10 and fa0/17. Based on the information above, it seems that fa0/10

has been placed in Forwarding because it has the lower Port ID.


I do have a couple of questions, however;


i) How is the Port path cost for an interface calculated? I know that
100Mbs is 19 and 10Mbs is 100, but what is actually measured? For
instance, for fa0/1 on the 2924_A switch, the port path cost is 100
[because the PIX inside interface is set to 10BaseT]. But is this
supposed to represent the cost from an extra imaginary cable on that
port to the root bridge?


ii) The interface number, e.g. fa0/10, and the port number (e.g. port
23), for some ports do not corelate. On fa0/10 on 2924_A, the interface

is fa0/10 but the port number is 23. Where is this port number from?


iii) All ports also have a 'Designated Port x, path cost y' in their
information. What does this represent?


Many thanks in advance.


Similar ThreadsPosted
Spanning Tree question September 27, 2006, 5:23 am
Rapid Spanning Tree question March 15, 2007, 9:09 am
Any expert on Spanning Tree Here?Come in please. November 20, 2004, 4:18 am
Spanning Tree Protocol June 5, 2008, 6:38 am
Spanning Tree Port Priority August 31, 2005, 11:05 am
How to test spanning tree protocol July 28, 2006, 1:03 am
Extreme Networks Spanning Tree Protocol (STP) August 8, 2005, 3:54 am
Spanning Tree and Routing gets killed by Desktop switch November 11, 2004, 8:42 pm
Help needed about Implementation of "Spanning Tree Protocol" for switch September 16, 2005, 6:54 pm
STP question October 29, 2004, 1:59 pm
a question about STP 802.1d December 7, 2004, 3:03 pm
NAT question... January 21, 2005, 5:07 am
Question regarding 802.1x March 2, 2005, 7:32 pm
Re: A question for the NG December 11, 2006, 1:44 pm
Re: A question for the NG December 11, 2006, 5:58 pm