[CentOS] Bandwith limiting

Jason Pyeron jpyeron at pdinc.us
Fri Feb 26 08:43:12 UTC 2010


I found out how to limit all traffic on a give nic:

[root at mirrors html]# tc qdisc add dev eth1 handle 1:0 root dsmark indices 1
default_index 0
[root at mirrors html]# tc qdisc add dev eth1 handle 2:0 parent 1:0 tbf burst 2048
limit 2048 mtu 1514 rate 3200bps


But I do not know how to persist this.

Trying to understand:
http://www.redhat.com/mirrors/LDP/HOWTO/Traffic-Control-tcng-HTB-HOWTO/examples.
html

And the following files:

/etc/iproute2
/etc/iproute2/ematch_map
/etc/iproute2/rt_dsfield
/etc/iproute2/rt_protos
/etc/iproute2/rt_realms
/etc/iproute2/rt_scopes
/etc/iproute2/rt_tables
/etc/sysconfig/cbq
/etc/sysconfig/cbq/avpkt
/etc/sysconfig/cbq/cbq-0000.example


I am lost. Any suggestions?



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.




More information about the CentOS mailing list