Linux/centos How to view network card information __linux

Source: Internet
Author: User
Tags http request

Linux/centos How to see if the NIC is 100M or 1000M. Check the 100 gigabit or gigabit (1GBPS) bandwidth access, please see the command below

[root@www.ctohome.com]# mii-tool-v
MII-TOOL.C 1.9 2000/04/28 00:56:08 (David Hinds)
Siocgmiireg on eth0 failed:input/output error
eth0:negotiated 100basetx-fd, link ok


[root@www.ctohome.com]# mii-tool-v
Siocgmiireg on eth0 failed:input/output error
eth0:negotiated 100basetx-fd, link ok
Product Info:vendor 00:aa:00, model Rev 0
Basic Mode:autonegotiation Enabled
Basic status:autonegotiation complete, link OK
CAPABILITIES:100BASETX-FD 100BASETX-HD 10BASET-FD 10BASET-HD
ADVERTISING:100BASETX-FD 100BASETX-HD 10baset-fd 10BASET-HD Flow-control
Link PARTNER:100BASETX-FD 100basetx-hd 10baset-fd 10baset-hd


[root@www.ctohome.com]# ethtool eth0
Settings for eth0:
Supported ports: [TP]
Supported Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Supports Auto-negotiation:yes
Advertised Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Advertised Auto-negotiation:yes
speed:100mb/s
Duplex:full
Port:twisted Pair
Phyad:1
Transceiver:internal
Auto-negotiation:on
Supports Wake-on:pumbag
Wake-on:g
Current message level:0x00000001 (1)
Link Detected:yes

to test whether it is a 1000M port, the most safe to say with wget test a partner's bandwidth is large enough to download the address:

wget http://cachefly.cachefly.net/100mb.test
--2011-03-14 22:19:12--Http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net ... 205.234.175.175
Connecting to cachefly.cachefly.net|205.234.175.175|:80 ... Connected.
HTTP request sent, awaiting response ... OK
length:104857600 (100M) [Application/octet-stream]
Saving to: ' 100mb.test.2 '

100%[========================================================================================================== =========>] 104,857,600 39.1m/s in 2.6s

2011-03-14 22:19:14 (39.1 MB/s)-' 100mb.test.2 ' saved [104857600/104857600]

If the download speed can exceed the 15mb/s, then is not 100M port, usually is the 1000M port

If you are a stand-alone server, you can verify the network card port by following the command:


[Root@www.ctohome.com]# Ethtool eth0
Settings for eth0:
Supported ports: [TP]
Supported Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Supports Auto-negotiation:yes
Advertised Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Advertised Auto-negotiation:yes
speed:1000mb/s
Duplex:full
Port:twisted Pair
Phyad:1
Transceiver:internal
Auto-negotiation:on
Supports Wake-on:pumbag
Wake-on:g
Current message level:0x00000001 (1)
Link Detected:yes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.