TC a rozdeleni sitoveho provozu-proc nefunguje script?

Kroko kroko.linux.conf na centrum.cz
Pátek Srpen 1 23:02:13 CEST 2003


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
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


Za odpovedi diky. Pavel Basak

-- 

*****************************
ICQ: 96796103
web: http://www.sweb.cz/kroko



Další informace o konferenci Linux