TC a rozdeleni sitoveho provozu-proc nefunguje script?

Jan Kasprzak kas na informatics.muni.cz
Pondělí Srpen 4 12:18:44 CEST 2003


Kroko wrote:
: Dobry den.
: 
: Potrebuju rovnomeren rozdelit sitovy provoz ze serveru (eth1) na tri stanice
: Mam nasledujici script, bohuzel to nefunguje, funguje to uplne stejne, jako 
: kdyby tam zadne podminky nebyly. Co je blbe?
: Dik za rady
: 
: tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell 8
: 
: tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 128kbit 
: weight 13kbit prio 2 allot 1514 cell 8 maxburst 20 avpkt 1000
: 
: tc class add dev eth1 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 42kbit 
: weight 4kbit prio 4 allot 1514 cell 8 maxburst 20 avpkt 1000
: tc class add dev eth1 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate 42kbit 
: weight 4bit prio 4 allot 1514 cell 8 maxburst 20 avpkt 1000
         ^^^ kbit?

: tc class add dev eth1 parent 1:1 classid 1:4 cbq bandwidth 10Mbit rate 42kbit 
: weight 4kbit prio 4 allot 1514 cell 8 maxburst 20 avpkt 1000
: 
: tc filter add dev eth1 parent 1:0 prio 8 protocol ip u32
: tc filter add dev eth1 parent 1:0 prio 8 handle 1: u32 divisor 256
: tc filter add dev eth1 parent 1:0 prio 8 u32 match ip dst 10.0.0.1 flowid 1:2
: tc filter add dev eth1 parent 1:0 prio 8 u32 match ip dst 10.0.0.10 flowid 1:3
: tc filter add dev eth1 parent 1:0 prio 8 u32 match ip dst 10.0.0.11 flowid 1:4

	Co rika tc -s?

-Y.

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|  I actually have a lot of admiration and respect for the PATA knowledge  |
| embedded in drivers/ide. But I would never call it pretty:) -Jeff Garzik |


Další informace o konferenci Linux