DWQA 问题分类: 问题centos7上tc -s class show命令缺少rate字段,无法显示当前带宽
护花使者护花使者 用户 提问于 2月 以前

tc -s class show dev ifb0这条命令在centos7上的回显缺少了rate字段(centos6.3上有rate字段)
class htb 1:10 parent 1:1 prio 6 rate 8bit ceil 1073Mbit burst 225b cburst 1342b
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 2147483647 ctokens: 171
 
centos6.3上的回显:
class htb 1:10 parent 1:1 prio 6 rate 8bit ceil 1074Mbit burst 225b cburst 1342b
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: -769803776 ctokens: 171
请问centos7上该如何获取当前tc实列的带宽值呢?