I have a linux box (Centos 5.5) on which I want to limit the network traffic. I have an application that we distribute to clients and I want to test it on the minimum recommended bandwidth of 256Mbit/sec. So far the tc tutorials I have seen seem to allow you to limit bandwidth according to certain criteria, but I want to limit the bandwidth in all situations (to/from all IP address, no matter what the IP header looks like, etc).
One tutorial suggested I use:
tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2
but I get the following error:
Unknown filter "flowid", hence option 10:2 is unparsable
Any ideas on how to limit bandwidth coming into/out of eth0 in all circumstances?