tc qdisc с GRE в openwrt

Я пытаюсь реализовать управление трафиком для интерфейса GRE на плате openwrt. Для этого я выполнил следующие шаги,

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 и нашел работу. Также, если я изменю туннель на туннель VPN вместо GRE, он будет работать нормально.

Есть ли какие-то дополнительные вещи, которые мне нужно обработать для реализации tc в GRE?

Любая помощь будет оценена.


person Shihab Pullissery    schedule 27.02.2018    source источник


Ответы (1)


Исправлено !

Добавить курс

tc class add dev eth0 parent 1:1 classid 1:2 htb rate 60kbps ceil 100kbps

затем добавьте sfq для класса

tc qdisc add dev eth0 parent 1:2 handle 20: sfq
person Shihab Pullissery    schedule 28.02.2018