linux 查看网卡 万兆,Linux 查看网络带宽是千兆还是万兆

2017-01-22 回答

查看机器网络端口

[trafodion@n12 ~]$ ifconfig

eth1 link encap:ethernet hwaddr 5c:b9:01:9a:48:5d

inet addr:10.10.11.12 bcast:10.10.11.255 mask:255.255.255.0

inet6 addr: fe80::5eb9:1ff:fe9a:485d/64 scope:link

up broadcast running multicast mtu:1500 metric:1

rx packets:18033924355 errors:0 dropped:857504 overruns:0 frame:0

tx packets:52425526574 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

rx bytes:66937144646066 (60.8 tib) tx bytes:60037314294532 (54.6 tib)

lo link encap:local loopback

inet addr:127.0.0.1 mask:255.0.0.0

inet6 addr: ::1/128 scope:host

up loopback running mtu:65536 metric:1

rx packets:1192347276 errors:0 dropped:0 overruns:0 frame:0

tx packets:1192347276 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

rx bytes:9188133537474 (8.3 tib) tx bytes:9188133537474 (8.3 tib)

查看端口带宽(root或sudo权限),通过下面输出可以看到speed那一行,表示万兆网。

[trafodion@n12 ~]$ sudo ethtool eth1

settings for eth1:

supported ports: [ fibre ]

supported link modes: 10000baset/full

supported pause frame use: no

supports auto-negotiation: no

advertised link modes: 10000baset/full

advertised pause frame use: no

advertised auto-negotiation: no

speed: 10000mb/s

duplex: full

port: fibre

phyad: 0

transceiver: external

auto-negotiation: off

supports wake-on: d

wake-on: d

current message level: 0x00000007 (7)

drv probe link

link detected: yes

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值