LinuxQuestions.org
Review your favorite Linux distribution.
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-31-2007, 05:50 AM   #1
eth777
LQ Newbie
 
Registered: Sep 2005
Distribution: gentoo
Posts: 6

Rep: Reputation: 0
Question STP loops


Hi,

I have 2 computers, each with 2 NICs. I've used brctl to create bridges and turned on STP on both computers.
I don't know if I'm right but I suppose that when I use 2 cables to connect computers there is some kind of loop between created bridges so STP should close one link.
How to check which link is used to send packets?
 
Old 10-31-2007, 06:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what's your motiviation for what you've done..? are you confusing bridging and interface bonding? you should *never* have any reason to use spanning tree on a real server at all.
 
Old 10-31-2007, 06:44 AM   #3
eth777
LQ Newbie
 
Registered: Sep 2005
Distribution: gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
THX for response

I wanted to figure out what happens if I'd replace some bridges with linux machines. Of course I'd like to use more then 2 computers and make same traffic analysis between network segments. I just want to see which paths are blocked and check how it's changing when I set different priorities.
 
Old 10-31-2007, 07:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, well just check what brctl says about spanning tree...
Code:
 # brctl showstp br549
 br549
  bridge id              8000.00004c9f0bd2
  designated root        0000.000480295a00
  root port                 1                    path cost                104
  max age                  20.00                 bridge max age           200.00
  hello time                2.00                 bridge hello time         20.00
  forward delay           150.00                 bridge forward delay      15.00
  ageing time             300.00                 gc interval                0.00
  hello timer               0.00                 tcn timer                  0.00
  topology change timer     0.00                 gc timer                   0.33
  flags
 
 eth0 (1)
  port id                8001                    state                   forwarding
  designated root        0000.000480295a00       path cost                100
  designated bridge      001e.00048026b901       message age timer         17.84
  designated port        80c1                    forward delay timer        0.00
  designated cost           4                    hold timer                 0.00
  flags
 
 eth1 (2)
  port id                8002                    state                   disabled
  designated root        8000.00004c9f0bd2       path cost                100
  designated bridge      8000.00004c9f0bd2       message age timer          0.00
  designated port        8002                    forward delay timer        0.00
  designated cost           0                    hold timer                 0.00
  flags
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what are *.stp files? irfanhab Programming 1 10-03-2006 10:37 PM
how to open file with stp extention in SuSE 10.1 riba43 SUSE / openSUSE 2 07-24-2006 11:55 AM
STP (Spanning Tree) on Bridge slacky Linux - Networking 5 12-06-2005 09:15 AM
while loops + while : blizunt7 Linux - General 3 12-04-2004 05:27 PM
Linux bridge with iptables and STP wkm001 Linux - Networking 1 02-04-2004 01:37 PM

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

All times are GMT -5. The time now is 05:39 PM.

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