2021-03-19 23:39:19 +01:00
|
|
|
---
|
|
|
|
title: Traffic shaping with tc
|
|
|
|
date: 2019-09-17
|
|
|
|
description: How to use the tc command to shape traffic on linux
|
|
|
|
tags:
|
|
|
|
- linux
|
|
|
|
---
|
|
|
|
|
|
|
|
## How to
|
|
|
|
|
2023-04-23 22:33:49 +02:00
|
|
|
```sh
|
2021-03-19 23:39:19 +01:00
|
|
|
tc qdisc show dev eth0
|
|
|
|
tc qdisc add dev eth0 root netem delay 200ms
|
|
|
|
tc qdisc show dev eth0
|
|
|
|
|
|
|
|
tc qdisc delete dev eth0 root netem delay 200ms
|
|
|
|
tc qdisc show dev eth0
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-03-19 23:39:19 +01:00
|
|
|
|
|
|
|
## References
|
|
|
|
|
|
|
|
- https://www.badunetworks.com/traffic-shaping-with-tc/
|