Linux - Traffic shaper tc command example, Tc command example
Traffic shaper tc command example
To check if there is no traffic shaper run the command tc class show dev eth0# tc class show dev eth0
If there is no output the traffic shaper is disabled.
How to stop traffic shaper in paralles
# service vz shaperoff
tc command helps you to shape or control, HTTP Outgoing Traffic (Port 80 Traffic Shaping).
How to slow down outbound traffic on port 80. How do I limit bandwidth allocation to http service 5Mbps?
tc command can be used to shape the traffic. You can only apply traffic shaping to outgoing or forwarding traffic i.e. you do not have any control for incoming traffic to server. However, tc can do policing controls for arriving traffic. Policing thus occurs on ingress.
tc command to list existing rules,
# tc -s qdisc ls dev eth0Below command helps you to to slow down traffic by 200 ms
# tc qdisc add dev eth0 root netem delay 200ms
Again to list, tc rules type below tc command
# tc -s qdisc ls dev eth0
TO delete all traffic shaper rules, use below tc command
# tc qdisc del dev eth0 root # tc -s qdisc ls dev eth0
The topic on Linux - Traffic shaper tc command example is posted by - Math
Hope you have enjoyed, Linux - Traffic shaper tc command exampleThanks for your time