我正在尝试在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?
任何帮助将不胜感激。
固定!
添加类
tc类添加dev eth0 parent 1:1 classid 1:2 htb速率60kbps ceil 100kbps
然后为类添加SFQ
tc qdisc add dev eth0 parent 1:2 handle 20: sfq