shaper compile

1. shaper compile

Robson
futura-net

(usa KUbuntu)

Enviado em 07/05/2010 - 21:24h

root@urubu:/sbin# /etc/init.d/shaper compile
find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

/sbin/tc qdisc del dev eth1 root
/sbin/tc qdisc add dev eth1 root handle 1 cbq bandwidth 600Kbit avpkt 1000 cell 8

/sbin/tc class add dev eth1 parent 1: classid 1:10 cbq bandwidth 600Kbit rate 60Kbit weight 6Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
/sbin/tc qdisc add dev eth1 parent 1:10 handle 10 tbf rate 60Kbit buffer 10Kb/8 limit 15Kb mtu 1500
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.99.1 classid 1:10
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.99.8 classid 1:10

/sbin/tc class add dev eth1 parent 1: classid 1:10 cbq bandwidth 600Kbit rate 30Kbit weight 3Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
/sbin/tc qdisc add dev eth1 parent 1:10 handle 10 tbf rate 30Kbit buffer 10Kb/8 limit 15Kb mtu 1500
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip src 192.168.99.1 classid 1:10
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip src 192.168.99.8 classid 1:10

echo "shaper."

Socorro mi ajude! o que devo fazer????



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts