Snížení rychlosti linky

Z Varhoo
(Rozdíly mezi verzemi)
Přejít na: navigace, hledání
(Založena nová stránka: simulate slow bandwidth: tc qdisc del dev eth0 root # erase all setting tc qdisc add dev eth0 root handle 1: htb default 1 # add some class tc class add dev eth0 pa…)
 

Aktuální verze z 25. 10. 2012, 12:32

simulate slow bandwidth:

tc qdisc del dev eth0 root   # erase all setting
tc qdisc add dev eth0 root handle 1: htb default 1   # add some class
tc class add dev eth0 parent 1: classid 1:1 htb rate 2kbit   # set up class, then its too slowwww
tc qdisc add dev eth0 root netem delay 100ms
tc qdisc change dev eth0 root netem delay 100ms 10ms

after tests

tc qdisc del dev eth0 root   # erase all setting

Poznámka: u nejakeho prikazu to hasi chybu, muzes to ingorovat. Kdyz to omezis pod 2kbit, tak je pak trochu problem i s ssh.

Osobní nástroje