查看linux服务器网卡带宽

   centos/redhat服务器的的网络配置主要在  /etc/sysconfig/network-scripts/ifcfg-xxx

 至于是  ifcfg-xxx是那个需要查看系统安装时的配置,如果未知,可以执行ifconfig,查看inet ip为你已知的节点的ip前的端口名称,

xxx01:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:87:DB:AE
          inet addr:172.27.129.217  Bcast:172.27.143.255  Mask:255.255.240.0
          inet6 addr: fe80::5054:ff:fe87:dbae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:117789846 errors:0 dropped:109125 overruns:0 frame:0
          TX packets:63451802 errors:0 dropped:0 overruns:0 carrier:0
          collisions:282650359 txqueuelen:1000
          RX bytes:71185182214 (67887.4 Mb)  TX bytes:33331745785 (31787.6 Mb)

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:24576327 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24576327 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:14827347085 (14140.4 Mb)  TX bytes:14827347085 (14140.4 Mb)

eth0为例,查看该网卡设备的带宽  ethtool eth0

xxx01:~ # ethtool eth0
Settings for eth0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	Advertised pause frame use: Symmetric
	Advertised auto-negotiation: Yes
	Link partner advertised link modes:  10baseT/Half 10baseT/Full
	                                     100baseT/Half 100baseT/Full
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: No
	Speed: 100Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 32
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000007 (7)
			       drv probe link
	Link detected: yes

查看关键字speed:得知该服务器的网口带宽是100Mb/s

猜你喜欢

转载自blog.csdn.net/liuleinevermore/article/details/84134405
今日推荐