LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-12-2010, 12:33 AM   #1
magodiafano
LQ Newbie
 
Registered: Oct 2010
Posts: 28

Rep: Reputation: 0
Spanning tree help


Hi I need help to create a spanning tree for a report! my problem is how understand which the lowest bridge ID! I'm very n00b

So these are the results I have obtained, how should be the spanning tree?

Shakti
The root ID is: 8000.00:00:0c:76:4a:3e
Root path cost: 0
The bridgeID is: 8000.00:00:0c:76:4a:3e
Port ID: 8003

Agni
The root ID is: 8000.00:e0:b0:63:f5:58
Root path cost: 0
The bridgeID is: 8000.00:e0:b0:63:f5:58
Port ID: 8003

Yachi
The root ID is: 8000.00:10:7b:81:cd:68
Root path cost: 0
The bridgeID is: 8000.00:10:7b:81:cd:68
Port ID: 8002

Kenchi
The root ID is: 8000.00:03:e3:2a:4a:60
Root path cost: 0
The bridgeID is: 8000.00:03:
e3:2a:4a:60
Port ID: 8003

Vayu
The root ID is: 8000.00:00:0c:76:4a:3e
Root path cost: 0
The bridgeID is: 8000.00:00:0c:76:4a:3e
Port ID: 8002


Apah
The root ID is: 8000.00:00:0c:76:4a:3e
Root path cost: 0
The bridgeID is: 8000.00:00:0c:76:4a:3e
Port ID: 8002

Fenchi
The root ID is: 8000.00:e0:b0:63:f5:5
Root path cost: 0
The bridgeID is: 8000.00:e0:b0:63:f5:5
Port ID: 8002

Guchi
The root ID is: 8000.00:03:e3:2a:4a:60
Root path cost: 0
The bridgeID is: 8000.00:03:e3:2a:4a:60
Port ID: 8004
 
Old 10-12-2010, 10:02 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by magodiafano View Post
my problem is how understand which the lowest bridge ID!
The lowest bridge ID is the one with the lowest (hexadecimal) address (assuming equal priority).
 
Old 10-12-2010, 11:07 PM   #3
magodiafano
LQ Newbie
 
Registered: Oct 2010
Posts: 28

Original Poster
Rep: Reputation: 0
i know it... but how could i see which is the lowest hexadecimal number?
 
Old 10-12-2010, 11:24 PM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by magodiafano View Post
i know it... but how could i see which is the lowest hexadecimal number?
You write the address out in full, and leaving out the ':'. This will give you a hexadecimal number, for example, the digits of:
Code:
8000.00:00:0c:76:4a:3e
are
Code:
00000C764A3E
Just treat this as a number (with each digit in the range 0123456789ABCDEF meaning zero to fifteen), and compare them.

Last edited by neonsignal; 10-13-2010 at 02:28 AM.
 
Old 10-13-2010, 12:56 AM   #5
magodiafano
LQ Newbie
 
Registered: Oct 2010
Posts: 28

Original Poster
Rep: Reputation: 0
it is not clear the fact you added some zeros:

Could I do in this way?

Example
Shakti
The root ID is: 8000.00:00:0c:76:4a:3e

Agni
The root ID is: 8000.00:e0:b0:63:f5:58

Yachi
The root ID is: 8000.00:10:7b:81:cd:68

Kenchi
The root ID is: 8000.00:03:e3:2a:4a:60

Vayu
The root ID is: 8000.00:00:0c:76:4a:3e


Apah
The root ID is: 8000.00:00:0c:76:4a:3e


Fenchi
The root ID is: 8000.00:e0:b0:63:f5:5


Guchi
The root ID is: 8000.00:03:e3:2a:4a:60


So i could write

800000000c764a3e --- 9223372037063854000
800000e0b063f558 --- 9223373001886792000
800000107b81cd68 --- 9223372107646358000
80000003e32a4a60 --- 9223372053550877000
800000000c764a3e --- 9223372037063854000
800000000c764a3e --- 9223372037063854000
80000003e32a4a60 --- 9223372053550877000
80000003e32a4a60 --- 9223372053550877000

So kentchi is the root id!

Are right my reckons? and then, once i have the root ID, how could i build the spanning tree?
 
Old 10-13-2010, 02:41 AM   #6
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by magodiafano View Post
it is not clear the fact you added some zeros
sorry, my mistake, i have fixed it in the post above

Quote:
Could I do in this way?
Code:
800000000c764a3e --- 9223372037063854000
800000e0b063f558 --- 9223373001886792000
800000107b81cd68 --- 9223372107646358000
80000003e32a4a60 --- 9223372053550877000
800000000c764a3e --- 9223372037063854000
800000000c764a3e --- 9223372037063854000
80000003e32a4a60 --- 9223372053550877000
80000003e32a4a60 --- 9223372053550877000
Yes, except the one you marked is not the smallest, and the ID you have for Fenchi is not right. Incidentally, you don't have to convert to decimal in order to do the comparison; just compare the numbers as you would in decimal from left to right.

Quote:
i have the root ID, how could i build the spanning tree?
You will have to know the path costs in order to build the rest of the tree (you have them all as zero, which doesn't seem right).

Last edited by neonsignal; 10-13-2010 at 02:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tutorial: Networking 101: Understanding Spanning Tree LXer Syndicated Linux News 0 08-27-2008 08:10 PM
What is spanning tree protocol inaki Linux - Networking 3 01-02-2006 02:49 PM
STP (Spanning Tree) on Bridge slacky Linux - Networking 5 12-06-2005 09:15 AM
Spanning Tree query balajee Linux - Networking 2 09-29-2005 03:40 AM
Spanning tree (for bridge)????? RWild Linux - Networking 8 02-21-2003 12:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration