Question: Rate Limiting Per Subnet

"Shane McKinley" <[email protected]>
Newsgroups gmane.linux.network.routing
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.