* Re: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
2006-11-07 6:25 [LARTC] linux-2.4.22 + bridge + traffic control by MAC Henry Bin
@ 2006-11-07 9:50 `
2006-11-08 9:25 ` Henry Bin
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: @ 2006-11-07 9:50 UTC (permalink / raw)
To: lartc
В Вто, 07/11/2006 в 14:25 +0800, Henry Bin пишет:
> Dear all,
>
> I am working on a linux box (2.4.22 kernel) which is used as a
> bridge. And I want to add traffic control rules on it by client's MAC. Does anyone has such experience on how to do that? Thank you very much!!
bridge-utils
iptables
ebtables
--
Покотиленко Костик <casper@meteor.dp.ua>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
2006-11-07 6:25 [LARTC] linux-2.4.22 + bridge + traffic control by MAC Henry Bin
2006-11-07 9:50 `
@ 2006-11-08 9:25 ` Henry Bin
2006-11-08 11:49 ` Mohan Sundaram
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Henry Bin @ 2006-11-08 9:25 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
On 11/7/06, Покотиленко Костик <casper@meteor.dp.ua> wrote:
> В Вто, 07/11/2006 в 14:25 +0800, Henry Bin пишет:
> > Dear all,
> >
> > I am working on a linux box (2.4.22 kernel) which is used as a
> > bridge. And I want to add traffic control rules on it by client's MAC. Does anyone has such experience on how to do that? Thank you very much!!
>
> bridge-utils
> iptables
> ebtables
>
Oh, could you please give me a example about how to do that?
What's I want is to limit the bandwidth for specified MAC. For
example, I just want to give 3Mbps bandwidth to the PC which has MAC
address--00:40:33:44:23:44.
Thanks a lot!
> --
> Покотиленко Костик <casper@meteor.dp.ua>
>
>
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
2006-11-07 6:25 [LARTC] linux-2.4.22 + bridge + traffic control by MAC Henry Bin
2006-11-07 9:50 `
2006-11-08 9:25 ` Henry Bin
@ 2006-11-08 11:49 ` Mohan Sundaram
2006-11-08 21:57 ` Leigh Sharpe
2006-11-10 2:45 ` Henry Bin
4 siblings, 0 replies; 6+ messages in thread
From: Mohan Sundaram @ 2006-11-08 11:49 UTC (permalink / raw)
To: lartc
Henry Bin wrote:
> On 11/7/06, Покотиленко Костик <casper@meteor.dp.ua> wrote:
>> В Вто, 07/11/2006 в 14:25 +0800, Henry Bin пишет:
>> > Dear all,
>> >
>> > I am working on a linux box (2.4.22 kernel) which is used as a
>> > bridge. And I want to add traffic control rules on it by client's
>> MAC. Does anyone has such experience on how to do that? Thank you very
>> much!!
>>
>> bridge-utils
>> iptables
>> ebtables
>>
> Oh, could you please give me a example about how to do that?
> What's I want is to limit the bandwidth for specified MAC. For
> example, I just want to give 3Mbps bandwidth to the PC which has MAC
> address--00:40:33:44:23:44.
>
> Thanks a lot!
>> --
>> Покотиленко Костик <casper@meteor.dp.ua>
>>
You can mark (fwmark) a packet based on the source MAC in
iptables/ebtables. In the case of bridge, the packet needs to be marked
by ebtables. tc allows classification by fwmark.
Create a class and assign 3Mbps rate to it. Create a tc filter to send
all traffic with fwmark 1 to this class. Create a ebtables rule that
marks all packets coming from MAC address--00:40:33:44:23:44 with fwmark 1.
Mohan
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
2006-11-07 6:25 [LARTC] linux-2.4.22 + bridge + traffic control by MAC Henry Bin
` (2 preceding siblings ...)
2006-11-08 11:49 ` Mohan Sundaram
@ 2006-11-08 21:57 ` Leigh Sharpe
2006-11-10 2:45 ` Henry Bin
4 siblings, 0 replies; 6+ messages in thread
From: Leigh Sharpe @ 2006-11-08 21:57 UTC (permalink / raw)
To: lartc
Here:
http://ebtables.sourceforge.net/examples/example5.html
Is exactly what you want to do.
Regards,
Leigh
Leigh Sharpe
Network Systems Engineer
Pacific Wireless
Ph +61 3 9584 8966
Mob 0408 009 502
email lsharpe@pacificwireless.com.au
web www.pacificwireless.com.au
-----Original Message-----
From: Henry Bin [mailto:henry.bin@gmail.com]
Sent: Wednesday, November 08, 2006 8:26 PM
To: casper@meteor.dp.ua
Cc: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
On 11/7/06, Покотиленко Костик <casper@meteor.dp.ua> wrote:
> В Вто, 07/11/2006 в 14:25 +0800, Henry Bin пишет:
> > Dear all,
> >
> > I am working on a linux box (2.4.22 kernel) which is used as a
> > bridge. And I want to add traffic control rules on it by client's MAC. Does anyone has such experience on how to do that? Thank you very much!!
>
> bridge-utils
> iptables
> ebtables
>
Oh, could you please give me a example about how to do that?
What's I want is to limit the bandwidth for specified MAC. For
example, I just want to give 3Mbps bandwidth to the PC which has MAC
address--00:40:33:44:23:44.
Thanks a lot!
> --
> Покотиленко Костик <casper@meteor.dp.ua>
>
>
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
2006-11-07 6:25 [LARTC] linux-2.4.22 + bridge + traffic control by MAC Henry Bin
` (3 preceding siblings ...)
2006-11-08 21:57 ` Leigh Sharpe
@ 2006-11-10 2:45 ` Henry Bin
4 siblings, 0 replies; 6+ messages in thread
From: Henry Bin @ 2006-11-10 2:45 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1415 bytes --]
Great! It should be helpful! Thanks a lot!
Best Regards,
Henry
On 11/9/06, Leigh Sharpe <lsharpe@pacificwireless.com.au> wrote:
> Here:
>
> http://ebtables.sourceforge.net/examples/example5.html
>
> Is exactly what you want to do.
>
> Regards,
> Leigh
>
> Leigh Sharpe
> Network Systems Engineer
> Pacific Wireless
> Ph +61 3 9584 8966
> Mob 0408 009 502
> email lsharpe@pacificwireless.com.au
> web www.pacificwireless.com.au
>
> -----Original Message-----
> From: Henry Bin [mailto:henry.bin@gmail.com]
> Sent: Wednesday, November 08, 2006 8:26 PM
> To: casper@meteor.dp.ua
> Cc: lartc@mailman.ds9a.nl
> Subject: Re: [LARTC] linux-2.4.22 + bridge + traffic control by MAC.
>
> On 11/7/06, Покотиленко Костик <casper@meteor.dp.ua> wrote:
> > В Вто, 07/11/2006 в 14:25 +0800, Henry Bin пишет:
> > > Dear all,
> > >
> > > I am working on a linux box (2.4.22 kernel) which is used as a
> > > bridge. And I want to add traffic control rules on it by client's MAC. Does anyone has such experience on how to do that? Thank you very much!!
> >
> > bridge-utils
> > iptables
> > ebtables
> >
> Oh, could you please give me a example about how to do that?
> What's I want is to limit the bandwidth for specified MAC. For
> example, I just want to give 3Mbps bandwidth to the PC which has MAC
> address--00:40:33:44:23:44.
>
> Thanks a lot!
> > --
> > Покотиленко Костик <casper@meteor.dp.ua>
> >
> >
>
>
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 6+ messages in thread