1. Goal
Limit bandwidth or make a link more predictable with qdisc and simple rules.
2. Files and components involved
/sbin/tc
eth0
/etc/rc.d/rc.local
3. Operational flow
tc qdisc add dev eth0 root tbf rate 20mbit burst 32kbit latency 400ms
add command in rc.local
4. Operational verification
tc -s qdisc show dev eth0
iperf3 -c host
ping gateway
5. Practical notes
Apply network changes from a local console or with an emergency session ready, so you do not lose SSH access.
Every network change should have a rollback path ready: a second console, KVM access, or a temporary command to remove.
Quick checklist
[ ] Backup or copy of the existing configuration completed
[ ] Files and commands updated as expected
[ ] Local test completed successfully
[ ] Logs or final output verified
[ ] Rollback procedure documented