新聞中心
1、使用ifconfig命令查看網(wǎng)卡信息
望花網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián),望花網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為望花數(shù)千家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)營銷網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的望花做網(wǎng)站的公司定做!
ifconfig是linux中用于顯示或配置網(wǎng)絡(luò)設(shè)備(網(wǎng)絡(luò)接口卡)的命令,英文全稱是network interfaces configuring。ifconfig可設(shè)置網(wǎng)絡(luò)設(shè)備的狀態(tài),或是顯示當(dāng)前的設(shè)置。
示例:
2、使用ethtool查看網(wǎng)卡
Ethtool是Linux下用于查詢及設(shè)置網(wǎng)卡參數(shù)的命令。
使用概要:
ethtool ethx //查詢ethx網(wǎng)口基本設(shè)置,其中 x 是對應(yīng)網(wǎng)卡的編號,如eth0、eth2等等
ethtool –h //顯示ethtool的命令幫助(help)
ethtool –i ethX //查詢ethX網(wǎng)口的相關(guān)信息
ethtool –d ethX //查詢ethX網(wǎng)口注冊性信息
ethtool –r ethX //重置ethX網(wǎng)口到自適應(yīng)模式
ethtool –S ethX //查詢ethX網(wǎng)口收發(fā)包統(tǒng)計
ethtool –s ethX [speed 10|100|1000] [duplex half|full] [autoneg on|off] //設(shè)置網(wǎng)口速率10/100/1000M、設(shè)置網(wǎng)口半/全雙工、設(shè)置網(wǎng)口是否自協(xié)商
示例:
[root@CentOS76 ~]# ethtool ens192 Settings for ens192: Supported ports: [ TP ] Supported link modes: 1000baseT/Full 10000baseT/Full Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 10000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: off MDI-X: Unknown Supports Wake-on: uag Wake-on: d Link detected: yes [root@CentOS76 ~]#
以上就是linux如何查看網(wǎng)卡信息的詳細內(nèi)容,更多請關(guān)注創(chuàng)新互聯(lián)其它相關(guān)文章!
當(dāng)前文章:linux查看網(wǎng)卡信息的命令是什么
本文路徑:http://www.ef60e0e.cn/article/ggdjhp.html