eth0 : connect to internet (address 192.168.1.1)
eth1 : connect local Lan (address 192.168.2.1)
eth2 : connect to DMZ (address 192.168.3.1)
i wanna to control bandwidth of which user in Lan access internet;how could i do
it ?
i had do like follow:
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8
mpu 64
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 100Mbit
avpkt 1000 cell 8 mpu 64
tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 1Mbit
avpkt 1000 cell 8 mpu64 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst
192.168.2.113 flowid 1:2
but it''s didn''t work ;why ? who can tell me ,thanks in advance
---------------------------------
Do You Yahoo!?
"相见不如聊天!不出门一样面对面!网络摄像头对对派送中~赶快用你的雅虎电邮帐号参与吧……
--0-571260397-1052809363=:35197
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit
<P>eth0 : connect to internet (address 192.168.1.1)</P>
<P>eth1 : connect local Lan (address 192.168.2.1)</P>
<P>eth2 : connect to DMZ (address 192.168.3.1)</P>
<P>i wanna to control bandwidth of which user in Lan access internet;how
could i do it ?</P>
<P>i had do like follow:</P>
<P>tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000
cell 8 mpu 64<BR>tc class add dev eth0 parent 1:0 classid 1:1 cbq
bandwidth 10Mbit rate 100Mbit avpkt 1000 cell 8 mpu 64<BR>tc class add dev
eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 1Mbit avpkt 1000 cell 8
mpu64 split 1:0 bounded<BR>tc filter add dev eth0 parent 1:0 protocol ip
prio 2 u32 match ip dst 192.168.2.113 flowid 1:2</P>
<P>but it''s didn''t work ;why ? who can tell me ,thanks
in advance</P><p><br><hr size=1><b>Do You
Yahoo!?</b><br>
<a
href="http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com/">"相见不如聊天!不出门一样面对面!网络摄像头对对派送中~赶快用你的雅虎电邮帐号参与吧……</a>
--0-571260397-1052809363=:35197--
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/