From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexandru Coseru" Date: Wed, 05 Nov 2003 11:38:42 +0000 Subject: [LARTC] HTB with both fwmark and IP MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0068_01C3A3A2.20834890" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0068_01C3A3A2.20834890 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello.. How can I specify a class for htb based on a fwmark and user ip ? For instance: I have some routes marked with fwmark and their are very-high speed = connections... But only to some IP's.. For the rest , I must limit the user to 64Kbits Now , how can I limit the high speed connections ? I must create a rule and take in account both fwmark and IP ? To be more specific , I want to limit the user 10.0.0.1 to 1Mbit for the = routes marked with fwmark 1 (thoose are taken from zebra) The rules I have now are: tc filter add dev eth0 protocol ip parent 1:0 prio 2 u32 match ip dst = 10.0.0.1/32 flowid 1:20 tc filter add dev eth0 parent 1:0 prio 99 protocol ip handle 2 fw flowid = 1:99 I've tried this: class: 1:20 - 64 kbit class 1:99 - 100Mbit class 1:30 - 1 Mbit =20 tc filter add dev eth0 protocol ip parent 1:0 prio 2 u32 match ip dst = 10.0.0.1/32 protocol ip handle 2 fw flowid 1:30 but it failed.. Anybody can help me ? Thanks Alex ------=_NextPart_000_0068_01C3A3A2.20834890 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello..
 
How can I specify a class for htb  = based on a=20 fwmark and user ip ?
 
For instance:
 
 
I have some routes marked with fwmark = and their are=20 very-high speed connections... But only to some IP's..
For the rest , I must limit the user to = 64Kbits
 
 
Now , how can I limit the high speed = connections=20 ?
I must create a rule and take in = account both=20 fwmark and IP ?
To be more specific , I want to limit = the user=20 10.0.0.1 to 1Mbit for the routes marked with fwmark 1  (thoose are = taken=20 from zebra)
 
 
The rules I have now are:
 
tc filter add dev eth0 protocol ip = parent 1:0 prio=20 2 u32 match ip dst 10.0.0.1/32 flowid 1:20
tc filter add dev eth0 parent 1:0 prio = 99 protocol=20 ip handle 2 fw flowid 1:99
 
 
I've tried this:
 
class: 1:20  - 64 = kbit
class 1:99  - = 100Mbit
class 1:30  - 1 Mbit
 
tc filter add dev eth0 protocol ip = parent 1:0 prio=20 2 u32 match ip dst 10.0.0.1/32 protocol ip=20 handle 2 fw flowid 1:30
 
but it failed..
 
Anybody can help me ?
 
 
Thanks
    = Alex
------=_NextPart_000_0068_01C3A3A2.20834890-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/