我知道可以txqueuelen在 Linux 中设置以下命令:
ifconfig eth1 txqueuelen 4096
Run Code Online (Sandbox Code Playgroud)
但是我怎样才能获得txqueuelen特定接口的电流呢?我试过了ifconfig eth1 txqueuelen,它只返回 ifconfig 命令的用法。
谁能给我一些想法?非常感谢!
小智 7
只需ifconfig按照那里写的方式运行即可。例如:
用户@主机:~$ ifconfig
eth0 链接封装:以太网 HWaddr 04:00:32:00:00:01
inet 地址:170.0.0.0 Bcast:170.0.255.255 掩码:255.255.192.0
inet6 地址:fe80::999:zaga:fe78:7901/64 范围:链接
上行广播运行多播 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)
| 归档时间: |
|
| 查看次数: |
8085 次 |
| 最近记录: |