Conceptual question ;-)

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ehlo list,

I'm willing to shape ppp users e.g. each pppX interface to get XXX kbits
I classify traffic going to ppp+ interfaces like this:
iptables -t mangle -A POSTROUTING -o ppp+ -j CLASSIFY --set-class 0002:0020

then i have a file which is executed when a ppp inteface is up and first
argument parsed to that file ($1) is the ppp number (e.g. 35 for ppp35).
it generally looks like this:

tc qdisc del dev ppp$1 root
tc qdisc add dev ppp$1 root handle 2: htb
tc class add dev ppp$1 parent 2: classid 2:2 htb rate XXXkbit
tc class add dev ppp$1 parent 2:2 classid 2:20 htb rate XXXkbit
tc qdisc add dev ppp$1 parent 2:20 handle 20: sfq perturb 10

The question is, when for example 10 ppp interfaces are up will they
each get XXX kbits.

-- 
regards,
Georgi Alexandrov

Key Server = http://pgp.mit.edu/ :: KeyID = 37B4B3EE
Key Fingerprint = E429 BF93 FA67 44E9 B7D4  F89E F990 01C1 37B4 B3EE

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux