Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Delete root qdisc
- tc qdisc del dev enp8s0.100 root
- tc qdisc del dev bond0 root
- tc qdisc add dev enp8s0.100 root handle 1: htb default 30
- tc qdisc add dev bond0 root handle 1: htb default 30
- tc class add dev enp8s0.100 parent 1: classid 1:1 htb rate 1gbit burst 15k
- tc class add dev bond0 parent 1: classid 1:1 htb rate 1gbit burst 15k
- tc class add dev enp8s0.100 parent 1:1 classid 1:10 htb rate 1mbit burst 15k
- tc class add dev enp8s0.100 parent 1:1 classid 1:20 htb rate 2mbit ceil 2mbit burst 15k
- tc class add dev enp8s0.100 parent 1:1 classid 1:30 htb rate 3mbit ceil 3mbit burst 15k
- tc class add dev bond0 parent 1:1 classid 1:10 htb rate 1mbit burst 15k
- tc class add dev bond0 parent 1:1 classid 1:20 htb rate 2mbit ceil 2mbit burst 15k
- tc class add dev bond0 parent 1:1 classid 1:30 htb rate 3kbit ceil 3mbit burst 15k
- tc qdisc add dev enp8s0.100 parent 1:10 handle 10: sfq perturb 10
- tc qdisc add dev enp8s0.100 parent 1:20 handle 20: sfq perturb 10
- tc qdisc add dev enp8s0.100 parent 1:30 handle 30: sfq perturb 10
- tc qdisc add dev bond0 parent 1:10 handle 10: sfq perturb 10
- tc qdisc add dev bond0 parent 1:20 handle 20: sfq perturb 10
- tc qdisc add dev bond0 parent 1:30 handle 30: sfq perturb 10
- tc filter add dev enp8s0.100 protocol ip parent 1: prio 2 u32 match ip dport 80 0xffff flowid 1:10
- tc filter add dev enp8s0.100 protocol ip parent 1: prio 2 u32 match ip dport 443 0xffff flowid 1:10
- tc filter add dev bond0 protocol ip parent 1: prio 2 u32 match ip dport 80 0xffff flowid 1:10
- tc filter add dev bond0 protocol ip parent 1: prio 2 u32 match ip dport 443 0xffff flowid 1:10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement