Discussion:
Question: Rate Limiting Per Subnet
Shane McKinley
2008-01-21 16:06:59 UTC
Permalink
If I do something like this:

========================================================================
==

tc qdisc add dev eth1 root handle 1: htb default 12
tc class add dev eth1 parent 1: classid 1:1 htb rate 25mbit ceil 27mbit
tc class add dev eth1 parent 1:1 classid 1:11 htb rate 5mbit ceil 7mbit
tc class add dev eth1 parent 1:1 classid 1:12 htb rate 25mbit ceil
27mbit
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 \
match ip dst 0.0.0.0 flowid 1:12
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 \
match ip dst 1.1.1.0/24 flowid 1:11
tc qdisc add dev eth1 parent 1:11 handle 3: sfq
tc qdisc add dev eth1 parent 1:12 handle 4: sfq

========================================================================
==

NOTICE: match ip dst 1.1.1./24 flowid 1:11

Question:

Will this share the rate between everyone on the subnet or give each
host guaranteed 5mbit?

Shane

Loading...