Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
wiki2:linux-networking-tools [2020/10/31 12:22] alfred [DNS] |
wiki2:linux-networking-tools [2020/11/04 12:04] (actual) |
||
|---|---|---|---|
| Línea 123: | Línea 123: | ||
| </code> | </code> | ||
| + | ===== Emulate network problems ===== | ||
| + | * https://medium.com/@docler/network-issues-simulation-how-to-test-against-bad-network-conditions-b28f651d8a96 | ||
| + | * https://wiki.linuxfoundation.org/networking/netem | ||
| + | You will use "tc" command: | ||
| + | <code> | ||
| + | sudo tc qdisc add dev eth0 root netem delay 1s | ||
| + | sudo tc qdisc del dev eth0 root | ||
| + | </code> | ||
| + | |||
| + | For example, to simulate problems with dockers you will do the next: | ||
| + | - ''docker inspect container'' -> And take the value for the IPAddress | ||
| + | - ''route -n'' -> To see which device is used for that container | ||
| + | - ''sudo tc qdisc add dev <device> root netem delay 1s'' | ||
| + | - Test it with a ping. | ||
| + | - ''sudo tc qdisc del dev <device> root'' | ||
| + | |||
| + | |||
| + | ==== Other examples ==== | ||
| + | <code> | ||
| + | tc qdisc add dev eth0 root netem loss 5% | ||
| + | tc qdisc change dev eth0 root netem corrupt 2% | ||
| + | tc qdisc change dev eth0 root netem duplicate 1% | ||
| + | </code> | ||
| ===== How to... ===== | ===== How to... ===== | ||
| ==== Update DNS in Ubuntu 18.04 ==== | ==== Update DNS in Ubuntu 18.04 ==== | ||