All of lore.kernel.org
 help / color / mirror / Atom feed
* standby port at the bridge firewall ?
@ 2003-02-17  4:31 SB CH
  2003-02-17  6:26 ` Arnt Karlsen
  2003-02-17  6:46 ` Arnt Karlsen
  0 siblings, 2 replies; 3+ messages in thread
From: SB CH @ 2003-02-17  4:31 UTC (permalink / raw)
  To: netfilter


Hello, all.

I would like to set standby switch like this.
So if a main switch is down, I would like to service with standby switch 
instead of main switch.
(traffic using only main switch and just connects with standby switch at 
normal state)
and I connected main switch with eth0, Sub switch with eth1,
and additionally connects standby switch with eth2 at the bridge firewall.


       Main Switch               Standby Switch 
            |                         |
            |                         |
            ---------------------------
                        |
                   Bridge Firewall
  
                        |
                     Sub Switch 


Then, How can I change this brctl script?

### pre configuration just using eth0 and eth1
brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth0 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
ifconfig br0 211.1.1.1 promisc up
route add default gw 211.1.1.1

should do I change like this to us standby switch?
Will it works well?
doesn't do loop?

## modified configuration using eth0, eth1 and eth2.
 
brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 eth1
brctl addif br0 eth2
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth2 down
ifconfig eth0 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
ifconfig eth2 0.0.0.0 promisc up
ifconfig br0 211.1.1.1 promisc up
route add default gw 211.1.1.1

So sorry my poor english.




_________________________________________________________________
상큼한 만남과 따뜻한 공동체 생활...  지금 MSN 커뮤니티에서 시작하세요!   
http://groups.msn.com/?pgmarket=ko-kr  



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: standby port at the bridge firewall ?
  2003-02-17  4:31 standby port at the bridge firewall ? SB CH
@ 2003-02-17  6:26 ` Arnt Karlsen
  2003-02-17  6:46 ` Arnt Karlsen
  1 sibling, 0 replies; 3+ messages in thread
From: Arnt Karlsen @ 2003-02-17  6:26 UTC (permalink / raw)
  To: netfilter

On Mon, 17 Feb 2003 04:31:30 +0000, 
"SB CH" <chulmin2@hotmail.com> wrote in message 
<F93GsRbHozNNrUIY7Hp0001b6f5@hotmail.com>:

> 
> Hello, all.
> 
> I would like to set standby switch like this.
> So if a main switch is down, I would like to service with standby
> switch instead of main switch.
> (traffic using only main switch and just connects with standby switch
> at normal state)
> and I connected main switch with eth0, Sub switch with eth1,
> and additionally connects standby switch with eth2 at the bridge
> firewall.
> 
> 
>        Main Switch               Standby Switch 
>             |                         |
>             |                         |
>             ---------------------------
>                         |
>                    Bridge Firewall
>   
>                         |
>                      Sub Switch 
> 
> 
> Then, How can I change this brctl script?
> 
> ### pre configuration just using eth0 and eth1
> brctl addbr br0
> brctl stp br0 off
> brctl addif br0 eth0
> brctl addif br0 eth1
> ifconfig eth0 down
> ifconfig eth1 down
> ifconfig eth0 0.0.0.0 promisc up
> ifconfig eth1 0.0.0.0 promisc up
> ifconfig br0 211.1.1.1 promisc up

..drop this:

> route add default gw 211.1.1.1

..let the bridge _learn_ about the two other routes.

> should do I change like this to us standby switch?
> Will it works well?
> doesn't do loop?

..try 'brctl --help' for syntax, you want to set the "path cost" 
low to the main switch, and high to the standby switch.  

..yeah, I know, 'brctl' does the same thing, it shows usage.  ;-)

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: standby port at the bridge firewall ?
  2003-02-17  4:31 standby port at the bridge firewall ? SB CH
  2003-02-17  6:26 ` Arnt Karlsen
@ 2003-02-17  6:46 ` Arnt Karlsen
  1 sibling, 0 replies; 3+ messages in thread
From: Arnt Karlsen @ 2003-02-17  6:46 UTC (permalink / raw)
  To: netfilter

...oi, forget my first message, I screwed up.

On Mon, 17 Feb 2003 04:31:30 +0000, 
"SB CH" <chulmin2@hotmail.com> wrote in message 
<F93GsRbHozNNrUIY7Hp0001b6f5@hotmail.com>:

> 
> Hello, all.
> 
> I would like to set standby switch like this.
> So if a main switch is down, I would like to service with standby
> switch instead of main switch.
> (traffic using only main switch and just connects with standby switch
> at normal state)
> and I connected main switch with eth0, Sub switch with eth1,
> and additionally connects standby switch with eth2 at the bridge
> firewall.
> 
> 
>        Main Switch               Standby Switch 
>             |                         |
>             |                         |
>             ---------------------------
>                         |
>                    Bridge Firewall
>   
>                         |
>                      Sub Switch 
 
..<snip old setup/>

> ## modified configuration using eth0, eth1 and eth2.
>  
> brctl addbr br0
> brctl stp br0 off
> brctl addif br0 eth0
> brctl addif br0 eth1
> brctl addif br0 eth2
> ifconfig eth0 down
> ifconfig eth1 down
> ifconfig eth2 down
> ifconfig eth0 0.0.0.0 promisc up
> ifconfig eth1 0.0.0.0 promisc up
> ifconfig eth2 0.0.0.0 promisc up
> ifconfig br0 211.1.1.1 promisc up


..try 'brctl --help' for syntax, you want to set the "path cost" 
low to the main switch, and high to the standby switch, and let 
the bridge _learn_ about the two routes, as they change.

..to avoid bridging between the two switches outside your firewall
bridge, set the cost impossibly high, or make this thread on-topic
using iptables to reject (or drop) all packages going between them. 

..drop this, use it on boxes inside your sub switch:
> route add default gw 211.1.1.1
> 
> So sorry my poor english.

..heh, it was me not reading your 2'nd setup properly.  ;-)

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-17  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-17  4:31 standby port at the bridge firewall ? SB CH
2003-02-17  6:26 ` Arnt Karlsen
2003-02-17  6:46 ` Arnt Karlsen

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.