Jump to content
Калькуляторы

shape htb tc Решено

Коллеги, привествую! 

 

Написал вот такой шейпер, до перехода c виртуалки все отлично работало, а сейчас с переходом на debian(физический сервер) непонятные затыки...

 

Может я где-то ошибся? 

 

 

 

/sbin/tc qdisc del root dev eth1
/sbin/tc qdisc del root dev eth1.300
/sbin/tc qdisc del root dev eth1.311


/sbin/tc qdisc add dev eth0 root handle 1: htb default 30
/sbin/tc qdisc add dev eth1.300 root handle 2: htb default 30
/sbin/tc qdisc add dev eth1.311 root handle 3: htb default 30


/sbin/tc  class add dev eth0 parent 1: classid 1:1 htb rate 2mbit
/sbin/tc  class add dev eth1.300 parent 2: classid 2:1 htb rate 2mbit

/sbin/tc  filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 1.1.1.1/32 flowid 1:1
/sbin/tc  filter add dev eth1.300 protocol ip parent 2:0 prio 1 u32 match ip dst 1.1.1.1/32 flowid 2:1

 

Может все сливается в определенный класс? 

 

Таких ип для шейпа около 200
 

Update: указал r2q 300. Посмотрим как дальше пойдет.

 

 

[15911.026493] HTB: quantum of class 10804 is big. Consider r2q change.
[15911.032873] HTB: quantum of class 10806 is big. Consider r2q change.
[15911.034253] HTB: quantum of class 30807 is big. Consider r2q change.
[15911.038332] HTB: quantum of class 10808 is big. Consider r2q change.
[15911.039828] HTB: quantum of class 30809 is big. Consider r2q change.
[16440.055376] HTB: quantum of class 10001 is small. Consider r2q change.
[16441.785901] HTB: quantum of class 10810 is small. Consider r2q change.
[16441.787642] HTB: quantum of class 30811 is small. Consider r2q change.
 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.