Created
February 24, 2012 21:51
-
-
Save avances123/1904004 to your computer and use it in GitHub Desktop.
atiende
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tc qdisc add dev br0 root handle 1: cbq \ | |
avpkt 1000 bandwidth 2mbit | |
tc class add dev br0 parent 1: classid 1:1 cbq \ | |
rate 700kbit allot 1500 prio 5 bounded isolated | |
tc filter add dev br0 parent 1: protocol ip \ | |
prio 16 u32 match ip dst 192.168.1.133 flowid 1:1 | |
tc filter add dev br0 parent 1: protocol ip \ | |
prio 16 u32 match ip src 192.168.1.133 flowid 1:1 | |
These commands will rate limit the IP address 192.168.1.133 to 700 kilobits per second. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment