You can limit the outgoing bandwidth on
server with the tc tool as shown below
(1) Limit the bandwidth to 1MBps on the
node(Xen node with brdge network)
#tc qdisc add dev peth0 handle 1: root
htb default 11
#tc class add dev peth0 parent 1:1
classid 1:11 htb rate 1Mbit
#tc -s qdisc ls dev peth0
Note: peth0 is the bridge name. For a
dedicated server it should be eth0
(2) bandwidth limiting With a Xen PV
VM.
#tc qdisc add dev viftest1.0 handle 1:
root htb default 11
#tc class add dev viftest1.0 parent 1:1
classid 1:11 htb rate 1Mbit
#tc -s qdisc ls dev peth0
0 comments:
Post a Comment