Description
-
unzip chaosd binary from chaosd-latest-linux-adm64.tar.gz
chaosd version
Chaosd Version: version.Info(GitVersion:"v1.4.0", GitCommit:"19a157239.......", BuildDate:"2023-02-08T09:03:38Z", GoVersion:"go1.18.2", Compiler:"gc", Platform:"linux/amd64") -
cp chaosd to /usr/bin, which is the default execution path.
-
inject network fault, and reports success.sudo chaosd attack network delay --device eth0 --ip 192.168.1.100 --latency 100ms
-
verify the result from another machine,
ping 192.168.1.100, which turns out that there is no any delay.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.421ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.479ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=64 time=0.392ms
...... -
check the tc rules, it seems that it already adds a rule.
sudo tc qdisc shwo dev eth0
qdisc netem 5: parent 1:4 limit 1000 delay 100.0ms -
not sure what's going on. any suggestions?