在 openwrt 中使用 GRE 的 tc qdisc
tc qdisc with GRE in openwrt
我正在尝试对openwrt板中的GRE接口实施流量控制。为此,我遵循了以下步骤,
Create GRE interface named gre1 in both tunnel end devices.
Tested reachability with ping, Success.
create qdisc using following command.
tc qdisc add dev gre1 root handle 1: default 2
Before creating tc classes i tired to ping the tunnel interface but this failed.
I tried to capture packet in gre1 but found 0 packets.
Monitored the statistics of qdisc using the command
tc -p -s -d qdisc show dev gre1
found that packet drop count is increasing.
我已经在 Ubuntu PC 上测试过,发现可以正常工作。另外,如果我将隧道更改为 VPN 隧道而不是 GRE,它工作正常。
在 GRE 中实现 tc 还需要处理其他事情吗?
任何帮助将不胜感激。
已修复!
添加class
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 60kbps ceil 100kbps
然后为 class
添加 sfq
tc qdisc add dev eth0 parent 1:2 handle 20: sfq
我正在尝试对openwrt板中的GRE接口实施流量控制。为此,我遵循了以下步骤,
Create GRE interface named gre1 in both tunnel end devices.
Tested reachability with ping, Success.
create qdisc using following command.
tc qdisc add dev gre1 root handle 1: default 2
Before creating tc classes i tired to ping the tunnel interface but this failed.
I tried to capture packet in gre1 but found 0 packets.
Monitored the statistics of qdisc using the command
tc -p -s -d qdisc show dev gre1
found that packet drop count is increasing.
我已经在 Ubuntu PC 上测试过,发现可以正常工作。另外,如果我将隧道更改为 VPN 隧道而不是 GRE,它工作正常。
在 GRE 中实现 tc 还需要处理其他事情吗?
任何帮助将不胜感激。
已修复!
添加class
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 60kbps ceil 100kbps
然后为 class
添加 sfqtc qdisc add dev eth0 parent 1:2 handle 20: sfq