tylertreat / comcast

Simulating shitty network connections so you can build better systems.
Apache License 2.0
10.31k stars 384 forks source link

sudo tc qdisc show | grep "netem" sudo tc qdisc add dev eth0 handle 10: root htb default 1 I couldn't setup the packet rules: exit status 2 #68

Open liAnita opened 4 years ago

talikan commented 4 years ago

I see nearly the same issue on Ubuntu 64-bit 19.10:

~/go/bin/comcast --latency=250 --target-bw=1000 --packet-loss=10%

sudo tc qdisc show | grep "netem" sudo tc qdisc add dev eth0 handle 10: root htb default 1 I couldn't setup the packet rules: exit status 1

ethanf commented 4 years ago

If you run the commands directly, you can see the command output. For me:

sudo tc qdisc add dev eth0 handle 10: root htb default 1
Cannot find device "eth0" <--
RaedAlyan commented 1 year ago

I've faced the same issue, and I've fixed it. The fix is: