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

Can't change rate incoming with tcset #167

Open
nobitran opened this issue Oct 25, 2022 · 5 comments
Open

Can't change rate incoming with tcset #167

nobitran opened this issue Oct 25, 2022 · 5 comments

Comments

@nobitran
Copy link

nobitran commented Oct 25, 2022

Same with me.
image

Step:

  • sudo tcset tun0 --direction incoming --rate 10Mbps --src-network 10.8.0.6/32
  • I want to change the rate from 10 -> 15Mbps
    sudo tcset tun0 --direction incoming --rate 15Mbps --src-network 10.8.0.6/32 --change
    but it got error (image above)
    [INFO] clipping specified bandwidth rate limit with the tun0 maximum bandwidth rate
    (15.0Mbps -> 10.0Mbps)

[ERROR] command execution failed
command=/sbin/tc qdisc add dev tun0 ingress
stderr=Error: Exclusivity flag on, cannot modify.

[ERROR] command execution failed
command=/sbin/tc qdisc change dev ifb7038 parent 1b7e:2 handle 243f: netem
stderr=Error: NLM_F_REPLACE needed to override.

Additional: With outgoing, the flag --change run sometimes it run success, sometime can't update.

Originally posted by @nobitran in #131 (comment)

@tu-nv
Copy link

tu-nv commented Oct 28, 2022

same error in my case.

@stale
Copy link

stale bot commented Nov 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 12, 2022
@LukeLIN-web
Copy link

sudo tc qdisc add dev enp0s1 root fq limit 1000 I try to change the queue limit, but fail
Error: Exclusivity flag on, cannot modify.

@nodjoy
Copy link

nodjoy commented Apr 9, 2024

same error...

@nodjoy
Copy link

nodjoy commented Apr 10, 2024

use ethtool -s tun0 speed 1000 modify the default speed value

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

No branches or pull requests

5 participants