局域网怎么限速
40kbps
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.11/32 flowid 1:11 过滤器
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.12/32 flowid 1:12
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.13/32 flowid 1:21
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.14/32 flowid 1:22
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.15/32 flowid 1:31
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.16/32 flowid 1:32
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.17/32 flowid 1:41
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.1.18/32 flowid 1:42
tc qdisc add dev eth1 parent 1:11 handle 10: pfifo limit 5 优先级
tc qdisc add dev eth1 parent 1:12 handle 20: pfifo limit 5
tc qdisc add dev eth1 parent 1:21 handle 30: pfifo limit 5
tc qdisc add dev eth1 parent 1:22 handle 40: pfifo limit 5
tc qdisc add dev eth1 parent 1:31 handle 50: pfifo limit 5
tc qdisc add dev eth1 parent 1:32 handle 60: pfifo limit 5
tc qdisc add dev eth1 parent 1:41 handle 70: pfifo limit 5
tc qdisc add dev eth1 parent 1:42 handle 80: pfifo limit 5
tc qdisc add dev eth1 parent 1:99 handle 90: sfq perturb 10
|