comcast
comcast copied to clipboard
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
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
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" <--
I've faced the same issue, and I've fixed it. The fix is:
-
make sure the tc tool was installed on the setup (to install it run this command: sudo yum install -y iproute-tc)
-
make sure the NetEm was installed on the setup (to install it run this commmand: yum -y install kernel-modules-extra)