如何在Linux上获取txqueuelen的当前值


4

我知道可以txqueuelen在Linux中设置以下命令:

ifconfig eth1 txqueuelen 4096

但是,如何才能获得txqueuelen特定接口的最新信息?我试过ifconfig eth1 txqueuelen,它只返回ifconfig命令的用法。

谁能给我一些想法?非常感谢!

Answers:


6

就像在ifconfig那里写的那样运行。例如:

user @ host:〜$ ifconfig 
eth0链接封装:以太网HWaddr 04:00:32:00:00:01  
          inet addr:170.0.0.0 Bcast:170.0.255.255掩码:255.255.192.0
          inet6 addr:fe80 :: 999:zaga:fe78:7901/64范围:链接
          UP BROADCAST RUNNING MULTICAST MTU:1500公制:1
          RX数据包:11857875616错误:0丢弃:0超限:0帧:0
          TX数据包:8490937839错误:0丢弃:0超限:0载波:0
          碰撞:0 txqueuelen:1000
          RX字节:4817771645749(4.8 TB)TX字节:2541531991948(2.5 TB)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.