From: Daniel Gheorghica <gheodan@gmail.com>
To: Bridge@lists.osdl.org
Subject: [Bridge] STP problem
Date: Fri, 2 Sep 2005 20:25:35 +0300 [thread overview]
Message-ID: <434f7cd7050902102561a0cc84@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2195 bytes --]
Hi all,
I have to use STP function between too bridges. The network topology are:
/--------------\ / ------ Wireless Link ----\ /--------------------\
|==LAN1==| ---- | BRIDGE 1| | BRIDGE 2| -----| ===LAN 2=== |
\---------------/ \ -----TINC vpn tunnel ------/ \---------------------/
When one of link failed the ping from one to other site stop to works.
I use bridge-utils-1.0.6 and tinc-1.0.4
I wait any suggestion about this
Daniel
The bridege setup script is:
#! /bin/bash
PATH=$PATH:/usr/local/sbin:/sbin
BR=br0
IP="172.16.3.223 <http://172.16.3.223>"
MASK="255.255.252.0 <http://255.255.252.0>"
BROADCAST="172.16.3.255 <http://172.16.3.255>"
return=$rc_done
case "$1" in
start)
echo "Starting service bridge $BR"
tincd -n vpn
brctl addbr $BR
brctl setbridgeprio $BR 0 || return=$rc_failed
brctl addif $BR eth0 || return=$rc_failed
brctl addif $BR eth1 || return=$rc_failed
brctl addif $BR vpn || return=$rc_failed
ifconfig eth0 0.0.0.0 <http://0.0.0.0> || return=$rc_failed
ifconfig eth1 0.0.0.0 <http://0.0.0.0> || return=$rc_failed
ifconfig vpn 0.0.0.0 <http://0.0.0.0> || return=$rc_failed
brctl sethello $BR 1 || return=$rc_failed
brctl setmaxage $BR 4 || return=$rc_failed
brctl setpathcost $BR eth1 100 || return=$rc_failed
brctl setpathcost $BR vpn 100 || return=$rc_failed
brctl setportprio $BR eth1 20 || return=$rc_failed
brctl setportprio $BR vpn 20 || return=$rc_failed
# brctl setageing $BR 20 || return=$rc_failed
brctl setfd $BR 4 || return=$rc_failed
brctl stp $BR on
/sbin/ifconfig $BR inet $IP netmask $MASK broadcast $BROADCAST up
echo -e "$return"
;;
stop)
tincd -k -n vpn
/sbin/ifconfig $BR down
echo "Shutting down service bridge $BR"
brctl delif $BR vpn || return=$rc_failed
brctl delif $BR eth0 || return=$rc_failed
brctl delif $BR eth1 || return=$rc_failed
brctl delbr $BR || return=$rc_failed
rmmod bridge || return=$rc_failed
echo -e "$return"
;;
status)
ifconfig $BR
brctl showstp $BR
brctl show
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
esac
test "$return" = "$rc_done" || exit 1
exit 0
[-- Attachment #2: Type: text/html, Size: 5670 bytes --]
next reply other threads:[~2005-09-02 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-02 17:25 Daniel Gheorghica [this message]
2005-09-04 6:00 ` [Bridge] STP problem Zoran s
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434f7cd7050902102561a0cc84@mail.gmail.com \
--to=gheodan@gmail.com \
--cc=Bridge@lists.osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.