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/11/03 15:57] alfred [Discover IP's] |
wiki2:linux-networking-tools [2020/11/04 12:04] (actual) |
||
|---|---|---|---|
| Línea 123: | Línea 123: | ||
| </code> | </code> | ||
| - | ===== Emulate problems ===== | + | ===== Emulate network problems ===== |
| * https://medium.com/@docler/network-issues-simulation-how-to-test-against-bad-network-conditions-b28f651d8a96 | * https://medium.com/@docler/network-issues-simulation-how-to-test-against-bad-network-conditions-b28f651d8a96 | ||
| * https://wiki.linuxfoundation.org/networking/netem | * https://wiki.linuxfoundation.org/networking/netem | ||
| Línea 134: | Línea 134: | ||
| For example, to simulate problems with dockers you will do the next: | For example, to simulate problems with dockers you will do the next: | ||
| - | - ''docker inspect container'' --> And take the value for the IPAddress | + | - ''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 ==== | ||