All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] throttling individual dhcpd clients
@ 2003-03-02 21:21 Paul Evans
  2003-03-08 20:14 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Evans @ 2003-03-02 21:21 UTC (permalink / raw)
  To: lartc

I have 2 multipathed external links and one internal link which has dhcpd on 
it and is masqueraded.

I have begun with ahu's script on the two external links and things look good 
there too.

At this point I am only using the ingress policer on each external, but want 
to use a tbf (or recommendation) on the internal interface instead.

The thing is, it is needed that each lease be given a certain amount of 
bandwidth with borrowing. I don't think there is any good way to do this 
other than building each of them their own qdisc.

I wonder if anyone has any tips one how to keep the rules in sync with the 
dynamic nature of the ip's? I suppose, one could just build for all 
possibilities. Also, I read somewhere that a script could be named dhcpd.exe 
which would run after each lease and thought that might be the way to go.

Thoughts? I'd especially like to hear someone call me an idiot for thinking it 
would have to be that complicated...

-- 
Regards, Paul Evans


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] throttling individual dhcpd clients
  2003-03-02 21:21 [LARTC] throttling individual dhcpd clients Paul Evans
@ 2003-03-08 20:14 ` Stef Coene
  0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-03-08 20:14 UTC (permalink / raw)
  To: lartc

On Sunday 02 March 2003 22:21, Paul Evans wrote:
> I have 2 multipathed external links and one internal link which has dhcpd
> on it and is masqueraded.
>
> I have begun with ahu's script on the two external links and things look
> good there too.
>
> At this point I am only using the ingress policer on each external, but
> want to use a tbf (or recommendation) on the internal interface instead.
>
> The thing is, it is needed that each lease be given a certain amount of
> bandwidth with borrowing. I don't think there is any good way to do this
> other than building each of them their own qdisc.
You have to add a htb qdisc and 1 class.  That class holds all traffic leaving 
the box.  You also have to create 1 class for each dhcp client and put it's 
traffic in that class.

> I wonder if anyone has any tips one how to keep the rules in sync with the
> dynamic nature of the ip's? I suppose, one could just build for all
> possibilities. Also, I read somewhere that a script could be named
> dhcpd.exe which would run after each lease and thought that might be the
> way to go.
>
> Thoughts? I'd especially like to hear someone call me an idiot for thinking
> it would have to be that complicated...
You can create for each ip a class and put the traffic to that ip in it's own 
class.  If each dhcp client has the same bandwidth, you can create a set of 
static filter rules so each ip end up in it's class.  If you have different 
bandwidth requirements you have to update the filter rules so traffic for a 
pc always end in the same class.  I have no idea how you can trigger dhcpd to 
do this.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2003-03-08 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-02 21:21 [LARTC] throttling individual dhcpd clients Paul Evans
2003-03-08 20:14 ` Stef Coene

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.