gpt4 book ai didi

linux - 使用 TC 优先处理流量

转载 作者:太空宇宙 更新时间:2023-11-04 12:52:02 32 4
gpt4 key购买 nike

我想让流量控制 TC 优先处理流量。例如,我需要 TCP 通过 band0,UDP 通过 band1,其他流量通过 band3。

我按如下方式创建 qdisc:

tc qdisc add dev eth0 root handle 1: priotc qdisc add dev eth0 parent 1:1 handle 10: sfqtc qdisc add dev eth0 parent 1:1 handle 20: sfqtc qdisc add dev eth0 parent 1:1 handle 30: sfq

但是当我添加过滤器时,例如

tc filter add dev eth0 protocol ip parent 1:1 sfq 1 u32 match ip protocol 6 0xff flowid 1:10

出现问题“未知过滤器“sfq”,因此选项“1”无法解析”

最佳答案

没有“sfq 1”。tc filter add dev eth0 protocol ip parent 1:1 u32 匹配ip protocol 6 0xff flowid 1:10

关于linux - 使用 TC 优先处理流量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36901748/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com