tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil 1024kbit
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 256kbit ceil 512kbit
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 10.20.10.80 flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 10.20.10.85 flowid 1:20
### egress
tc qdisc add dev eth1 root handle 1: htb default 12
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 512kbit ceil 1024kbit
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 256kbit ceil 512kbit
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip src 10.20.10.80 flowid 1:10
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip src 10.20.10.85 flowid 1:20
No comments:
Post a Comment