Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I couldn't setup the packet rules: %s exit status 2 #41

Open
god-pane opened this issue Nov 27, 2015 · 6 comments
Open

I couldn't setup the packet rules: %s exit status 2 #41

god-pane opened this issue Nov 27, 2015 · 6 comments

Comments

@god-pane
Copy link

root@ubuntu:~# comcast --device=eth0 --latency=250 --target-bw=1000 --packet-loss=10%
sudo tc qdisc show | grep "netem"
sudo tc qdisc add dev eth0 handle 10: root htb
I couldn't setup the packet rules: %s exit status 2

@tylertreat
Copy link
Owner

Can you run the commands manually?

sudo tc qdisc show | grep "netem"
sudo tc qdisc add dev eth0 handle 10: root htb

@god-pane
Copy link
Author

root@ubuntu:~# tc qdisc add dev eth0 handle 10: root htb
RTNETLINK answers: File exists

@bbigras
Copy link

bbigras commented Oct 24, 2016

I have a similiar problem on Arch.

comcast --device=enp2s0 --packet-loss=100% --target-addr=ip --target-proto=tcp --target-port=22

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

sudo tc qdisc show | grep "netem"
sudo tc qdisc add dev enp2s0 handle 10: root htb

RTNETLINK answers: No such file or directory

@ghost
Copy link

ghost commented Nov 10, 2016

With those parameters, these are the generated commands (you can get the raw command output if you use the --dry-run paramter)

sudo tc qdisc add dev eth0 handle 10: root htb default 1
sudo tc class add dev eth0 parent 10: classid 10:1 htb rate 1000000kbit
sudo tc class add dev eth0 parent 10: classid 10:10 htb rate 1000kbit
sudo tc qdisc add dev eth0 parent 10:10 handle 100: netem delay 250ms rate 1000k

Can you try to set those up and see which one it falls over with?

@bbigras
Copy link

bbigras commented Dec 1, 2016

I updated comcast and comcast --device=enp2s0 --packet-loss=100% --target-addr=<ip> --target-proto=tcp --target-port=22 worked. Thanks.

@DanielRuf
Copy link

Here sudo tc qdisc show | grep "netem" returns nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants