查看sail-imx6q网卡是百兆还是千兆
查看sail-imx6q网卡是百兆还是千兆网卡是一块被设计用来允许计算机在计算机网络上进行通讯的计算机硬件。由于其拥有MAC地址,因此属于OSI模型的第2层。它使得用户可以通过电缆或无线相互连接。每一个网卡都有一个被称为MAC地址的独一无二的48位串行号,它被写在卡上的一块ROM中。在网络上的每一个计算机都必须拥有一个独一无二的MAC地址。没有任何两块被生产出来的网卡拥有同样的地址。这是因为电气电子工程师协会(IEEE)负责为网络接口控制器(网卡)销售商分配唯一的MAC地址。因此查看网卡是百兆还是千兆也是十分重要的。使用ethtool命令ethtool是Linux下用于查询及设置网卡参数的命令输入指令如下所示:rootimx6qdlsolo:# ethtool eth0Settings for eth0: Supported ports: TP MII Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: Symmetric Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Link partner advertised pause frame use: Symmetric Link partner advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: external Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: yesrootimx6qdlsolo:#详细参数参考:(/后面是注释,是原文的译文)ethtool ethX /ethtool h /显示ethtool的命令帮助(help)ethtool i ethX /查询ethX网口的相关信息ethtool d ethX /查询ethX网口注册性信息ethtool r ethX /重置ethX网口到自适应模式ethtool S ethX /查询ethX网口收发包统计ethtool s ethX speed 10|100|1000 /设置网口速率10/100/1000Mduplex half|full /设置网口半/全双工autoneg on|off /设置网口是否自协商port tp|aui|bnc|mii /设置网口类型大家学会了就赶快去测试自己的网卡吧,想要了解更多就在www.dianyu.net!