linux下查看网卡的速度-dmesg的应用

论坛 期权论坛 脚本     
匿名网站用户   2020-12-20 07:57   11   0
首先给出查看网卡速度的命令
dmesg |grep eth0(查看eth0的网卡信息)
dmesg |grep eth1(查看eth1的网卡信息)
dmesg |grep eth(查看所有网卡的信息)

-------------------------------------
[root@ms-storage ~]#dmesg |grep eth0
divert: allocating divert_blk for eth0
eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 92000000, IRQ 177, node addr 5cf3fcbaff58
bnx2: eth0: using MSI
ADDRCONF(NETDEV_UP): eth0: link is not ready
bnx2: eth0 NIC Copper Link is Up,1000 Mbpsfull duplex(千M全双工)
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
--------------------------------------------------------
[root@ms-storage ~]#dmesg |grep eth1
divert: allocating divert_blk for eth1
eth1: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem 94000000, IRQ 74, node addr 5cf3fcbaff5a
bnx2: eth1: using MSI
ADDRCONF(NETDEV_UP): eth1: link is not ready
bnx2: eth1 NIC Copper Link is Up,100 Mbpsfull duplex(百M全双工)
ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
bnx2: eth1 NIC Copper Link is Down
bnx2: eth1 NIC Copper Link is Up, 100 Mbps full duplex
bnx2: eth1 NIC Copper Link is Down
bnx2: eth1 NIC Copper Link is Up, 100 Mbps full duplex
bnx2: eth1 NIC Copper Link is Down
bnx2: eth1 NIC Copper Link is Up, 100 Mbps full duplex
bnx2: eth1 NIC Copper Link is Down
bnx2: eth1 NIC Copper Link is Up, 100 Mbps full duplex
bnx2: eth1 NIC Copper Link is Down
eth1: no IPv6 routers present
bnx2: eth1 NIC Copper Link is Up, 100 Mbps full duplex
--------------------------------------------------------
Linux命令dmesg用来显示开机信息,kernel会将开机信息存储在ring buffer中。您若是开机时来不及查看信息,可利用dmesg来查看。开机信息亦保存在/var/log目录中,名称为dmesg的文件里。
应用dmesg可以得到所有设备的信息,包括CPU信息,外挂磁盘,网卡信息等。
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP