[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re[3]: dzielenie lacza



> Btw chce tez ograniczyc ogolnie caly interface shaperem (modul z
> jajka).
> wszystko robie tak jak w przykladzie i po route nie mam sieci ;)
>
> shapecfg attach shaper0 eth1
> shapecfg speed shaper0 64000
> ifconfig shaper0 192.168.7.1 netmask 255.255.255.0 broadcast 192.168.7.255
up
> route add -net 192.168.7.0 netmask 255.255.255.0 dev shaper0
>
> Co jest nie tak?

ograniczanie ruchu wychodzacego na calym interface np eth0/500kbitów:
tc qdisc add dev eth0 root handle 1: tbf buffer 10KB limit 10kB rate 500kbit

kasowanie : tc qdisc del dev eth0 root
status: tc -s qdisc

polecenie tc z pakietu iproute

pozdr
M.





Reply to: