Networking Forums

Networking Forums > Computer Networking > Linux Networking > Bridge & tc

Reply
 
 
mike
Guest
Posts: n/a

 
      02-01-2005, 09:15 AM
I have to put a bridge for traffic shaping and traffic accounting.
There's a way to make tc works on the bridge? is there a tool like
CBQinit that works on bridges?

Thanks
Mike
 
Reply With Quote
 
 
 
 
prg
Guest
Posts: n/a

 
      02-01-2005, 04:25 PM

mike wrote:
> I have to put a bridge for traffic shaping and traffic accounting.
> There's a way to make tc works on the bridge? is there a tool like
> CBQinit that works on bridges?
>
> Thanks
> Mike


http://bridge.sourceforge.net/
http://ebtables.sourceforge.net/

2.4 kernels -- need patch
2.6 kernels -- includes ebtables and bridge-nf
..
have fun ;-)
prg
email above disabled

 
Reply With Quote
 
mike
Guest
Posts: n/a

 
      02-01-2005, 05:03 PM
prg wrote:
> http://bridge.sourceforge.net/
> http://ebtables.sourceforge.net/
>

err.. i know ebtables and bridging stuff, i need to know if iproute2
"TC" works on a bridged connection.
And for mental sanity i was looking for a tool like CBQ.init but for
bridges

Mike

 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      02-01-2005, 07:06 PM

mike wrote:
> prg wrote:
> > http://bridge.sourceforge.net/
> > http://ebtables.sourceforge.net/
> >

> err.. i know ebtables and bridging stuff, i need to know if iproute2
> "TC" works on a bridged connection.


It should, but may not depending on how kernel was compiled and whether
there are changes in netfilter code that effects this area. IIRC, some
of the 2.6 changes do effect how iptables rules should be written.

> And for mental sanity i was looking for a tool like CBQ.init but for
> bridges


Can't imagine that it would not, taking into account/making changes
with regard to above. It's just a script.

Try it and see -- no one can assure success ;-)

Personally, I don't like running the Linux stack as a bridge -- just
can't get over the willies of having the nics in promisc mode. Just a
personal foible and not recommended as advice.

Then I have the good fortune of having a few extra Ciscos around at
work to cope in the short run and $ to provide a long term solution.

I think you should be able to get what you need. Easy as flipping a
light switch? Doubt it.
..
good luck,
prg
email above disbled

 
Reply With Quote
 
mike
Guest
Posts: n/a

 
      02-02-2005, 08:32 AM
prg wrote:
> Personally, I don't like running the Linux stack as a bridge -- just
> can't get over the willies of having the nics in promisc mode. Just a
> personal foible and not recommended as advice.


Why you say that? i've seen many linux bridges running without troubles
for years.

> Then I have the good fortune of having a few extra Ciscos around at
> work to cope in the short run and $ to provide a long term solution.


Heh, i don't have money to afford a Cisco just for my interests.

> I think you should be able to get what you need. Easy as flipping a
> light switch? Doubt it.


Naww, i don't want a plug'n'play thing that does all for me.
I want only examples to make my own script, but before that i wanted to
be sure that tc worked ok on a bridge.

Mike
 
Reply With Quote
 
prg
Guest
Posts: n/a

 
      02-02-2005, 01:04 PM

mike wrote:
> prg wrote:
> > Personally, I don't like running the Linux stack as a bridge --

just
> > can't get over the willies of having the nics in promisc mode.

Just a
> > personal foible and not recommended as advice.

>
> Why you say that? i've seen many linux bridges running without

troubles
> for years.


As I said, just my personal feeling, not advice to anyone else. A nic
running full time in promiscuous mode is just too juicy a target for
someone sniffing packets.

> > Then I have the good fortune of having a few extra Ciscos around at
> > work to cope in the short run and $ to provide a long term

solution.
>
> Heh, i don't have money to afford a Cisco just for my interests.


My attitude is "easy" to live with since someone else is paying for the
switches;-)

> > I think you should be able to get what you need. Easy as flipping

a
> > light switch? Doubt it.

>
> Naww, i don't want a plug'n'play thing that does all for me.
> I want only examples to make my own script, but before that i wanted

to
> be sure that tc worked ok on a bridge.


It's been some time -- 2.4.14 kernel? -- since I played with the
bridging code, but it worked OK then. So far as I know, it still
works, but scripts and iptables rules may have to be brought up to date
for 2.6+ kernels. Should not be anything difficult or non-obvious.

IIRC, some of the "shaping" queues (IM?) never worked with bridge + tc
and one or two other approaches need a slight modification, I think.
The script should get you far down the road to success -- maybe a tweak
or two.

have fun
prg
email above disabled

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tell me what is bridge mode and half bridge mode of adsl routers saeedkhan75@gmail.com Linux Networking 0 03-29-2006 11:06 AM
Bridge to Multipoint Bridge, best security? Jac Wireless Internet 3 12-02-2005 10:31 AM
Using an AP as a bridge bitx Wireless Internet 1 10-06-2005 07:15 PM
Bridge/workgroup bridge scenario and channels Chris_D Wireless Internet 3 08-03-2005 08:44 PM
Using XP Ethernet Bridge Mode as Wireless Bridge DrewJ Wireless Internet 0 08-13-2003 10:35 PM



1 2 3 4 5 6 7 8 9 10 11