|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Redundant Bridging and STP
I have 2 OpenBSD, every one has few Ethernet interfaces,
and I want to create two ethernet connection between them, as two link between two switches: BSD TEST-A em0 <--------> em0 BSD TEST-B BSD TEST-A em1 <--------> em1 BSD TEST-B device TEST-A: test-a /etc>cat hostname.em0 inet 10.10.10.1 255.255.255.0 NONE up test-a /etc>cat hostname.em1 up test-a /etc>cat hostname.bridge0 add em0 add em1 blocknonip em0 blocknonip em1 stp em0 stp em1 up test-a /etc> device TEST-B: test-b /etc>cat hostname.em0 inet 10.10.10.2 255.255.255.0 NONE up test-b /etc>cat hostname.em1 up test-b /etc>cat hostname.bridge0 add em0 add em1 blocknonip em0 blocknonip em1 stp em0 stp em1 up test-b /etc> So, if one link is out of function, then traffic will pass throuhtg anohter one. But it is not working, if: test-a /etc>ping 10.10.10.2 is working on em0, until: test-a /etc>ifconfig em0 down then pinging stops, it seems RSTP is not working, i.e. traffic is not translated on em1-em1 link. any idea? |
|
|||
At this moment I don't have all the required equipment, so I cannot test it myself. Could you configure the following setup and see if that works?
Code:
SERVER | | +--------+ | switch | +--------+ / \ / \ / \ / \ / \ +----------+ +----------+ | re0 | | fxp0 | | | | | | bridge-1 | | bridge-2 | | | | | | re1 | | fxp1 | +----------+ +----------+ \ / \ / \ / \ / \ / +--------+ | switch | +--------+ | | | WORKSTATION
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Configuration is something as:
Code:
LAN1 | | | +-------------+ | em0 | | | | BSD-1 | | | | em1 em2 | +-------------+ | | | | | | |L1 |L2 | | | | +-------------+ | em1 em2 | | | | BSD-2 | | | | em0 | +-------------+ | | | LAN2 Redundancy is not used for BSD bridges, redundancy is used for links. Idea is as follows: em1 & em2 are forming bridge0 on BSD-a, and on BSD-2. RSTP is enable on em1 and em2. So, if link L1 is down, then traffic is pass on L2 and vice verse. according to picture, config is as: BSD-1 /etc>cat hostname.bridge0 add em1 add em2 blocknonip em1 blocknonip em2 stp em1 stp em2 up |
|
|||
It is working better if add -learn em1, -learn em2 :
bsd-2 /etc>cat hostname.bridge0 add em1 add em2 blocknonip em1 blocknonip em2 -learn em1 -learn em2 stp em1 stp em2 up |
|
|||
Thanks jggimi !
trunk is right solution for me !! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does bridging reinforce privacy? | daemonfowl | OpenBSD Security | 8 | 1st April 2012 12:32 PM |
Bridging firewall with OPenBSD 5.0 | scrummie02 | OpenBSD Security | 4 | 23rd January 2012 03:49 AM |
OpenBSD, PF, bridging and 10gE | mbw | OpenBSD Security | 6 | 5th January 2012 08:51 PM |
wired and wifi sharing but cant use bridging | domdurocher | OpenBSD General | 8 | 6th October 2011 01:47 AM |
requesting help with "New" way to do Bridging in OpenBSD 4.7 | mbw | OpenBSD Installation and Upgrading | 1 | 30th May 2010 12:06 AM |