中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁(yè) > news >正文

做網(wǎng)站待遇/什么是企業(yè)營(yíng)銷型網(wǎng)站

做網(wǎng)站待遇,什么是企業(yè)營(yíng)銷型網(wǎng)站,id怎么轉(zhuǎn)wordpress,查看網(wǎng)站外鏈文章目錄 一、ethtool1.1 常見操作1.1.1 展示設(shè)備屬性1.1.2 改變網(wǎng)卡屬性1.1.2.1 Auto-negotiation1.1.2.2 Speed 1.1.3 展示網(wǎng)卡驅(qū)動(dòng)設(shè)置1.1.4 只展示 Auto-negotiation, RX and TX1.1.5 展示統(tǒng)計(jì)1.1.7 排除網(wǎng)絡(luò)故障1.1.8 通過(guò)網(wǎng)口的 LED 區(qū)分網(wǎng)卡1.1.9 持久化配置&#xff08…

在這里插入圖片描述

文章目錄

  • 一、ethtool
    • 1.1 常見操作
      • 1.1.1 展示設(shè)備屬性
      • 1.1.2 改變網(wǎng)卡屬性
        • 1.1.2.1 Auto-negotiation
        • 1.1.2.2 Speed
      • 1.1.3 展示網(wǎng)卡驅(qū)動(dòng)設(shè)置
      • 1.1.4 只展示 Auto-negotiation, RX and TX
      • 1.1.5 展示統(tǒng)計(jì)
      • 1.1.7 排除網(wǎng)絡(luò)故障
      • 1.1.8 通過(guò)網(wǎng)口的 LED 區(qū)分網(wǎng)卡
      • 1.1.9 持久化配置(無(wú)需 reboot)

一、ethtool

ethtool is used to query and control network device driver and hardware settings, particularly for wired Ethernet devices.

devname is the name of the network device on which ethtool should operate.

man 文檔
參考

1.1 常見操作

1.1.1 展示設(shè)備屬性

# root@ubuntu:~# ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536# ethtool eno1
Settings for eno1:Supported ports: [ TP	 MII ]Supported link modes:   10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullSupported pause frame use: Symmetric Receive-onlySupports auto-negotiation: YesSupported FEC modes: Not reportedAdvertised link modes:  10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/FullAdvertised pause frame use: Symmetric Receive-onlyAdvertised auto-negotiation: YesAdvertised FEC modes: Not reportedSpeed: Unknown!Duplex: Unknown! (255)Auto-negotiation: onmaster-slave cfg: preferred slavemaster-slave status: unknownPort: Twisted PairPHYAD: 0Transceiver: externalMDI-X: UnknownSupports Wake-on: pumbgWake-on: dLink detected: no# ethtool docker0
Settings for docker0:Supported ports: [  ]Supported link modes:   Not reportedSupported pause frame use: NoSupports auto-negotiation: NoSupported FEC modes: Not reportedAdvertised link modes:  Not reportedAdvertised pause frame use: NoAdvertised auto-negotiation: NoAdvertised FEC modes: Not reportedSpeed: 10000Mb/sDuplex: Unknown! (255)Auto-negotiation: offPort: OtherPHYAD: 0Transceiver: internalLink detected: yes# ethtool lo
Settings for lo:Link detected: yes

其中全雙工、半雙工、自動(dòng)協(xié)商的區(qū)別如下:

  • Full duplex : Enables sending and receiving of packets at the same time. This mode is used when the ethernet device is connected to a switch(交換機(jī)).
  • Half duplex : Enables either sending or receiving of packets at a single point of time. This mode is used when the ethernet device is connected to a hub(集線器).
  • Auto-negotiation : If enabled, the ethernet device itself decides whether to use either full duplex or half duplex based on the network the ethernet device attached to.

1.1.2 改變網(wǎng)卡屬性

1.1.2.1 Auto-negotiation

上文展示的 Auto-negotiation 為 true,可通過(guò) -s autoneg 關(guān)閉它。

# ifdown eth0eth0      device: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)eth0      configuration: eth-bus-pci-0000:0b:00.0# ethtool -s eth0 autoneg off # -s 指定網(wǎng)卡名稱, 設(shè)置 autoneg = off# ethtool eno1
Settings for eno1:Supported ports: [ TP	 MII ]Supported link modes:   10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full1000baseT/Full。。。Auto-negotiation: off # 此處信息已變?yōu)?offLink detected: down # 此處信息已變?yōu)?down# ifup eno1

1.1.2.2 Speed

改變網(wǎng)卡速度,注意不要設(shè)置超過(guò)網(wǎng)卡的 limited capacity

# ethtool eth0 | grep SpeedSpeed: 1000Mb/s# ethtool -s eth0 speed 100 autoneg off# ethtool eth0 | grep SpeedSpeed: Unknown! (65535) # 注意:如果網(wǎng)卡在 online 時(shí),被改了 speed 則會(huì)自動(dòng)變?yōu)?offline,此時(shí)需要手動(dòng) ifup# ifup eth0eth0      device: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)eth0      configuration: eth-bus-pci-0000:0b:00.0Checking for network time protocol daemon (NTPD):                     running# ethtool eth0 | grep SpeedSpeed: 100Mb/s# 可看到設(shè)置后從 1000Mb/s 變?yōu)?100Mb/s

可通過(guò) ifconfig 設(shè)置 MTU

1.1.3 展示網(wǎng)卡驅(qū)動(dòng)設(shè)置

# ethtool  -i eno1
driver: r8169
version: 5.19.1-051901-generic
firmware-version: rtl8168h-2_0.0.2 02/26/15
expansion-rom-version:
bus-info: 0000:59:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

1.1.4 只展示 Auto-negotiation, RX and TX

# ethtool -a eno1
Pause parameters for eno1:
Autonegotiate:	on
RX:		off
TX:		off# 參數(shù)含義如下:
-a --show-pauseQueries the specified Ethernet device for pause parameter information.

1.1.5 展示統(tǒng)計(jì)

# ethtool -S eno1
NIC statistics:tx_packets: 6199rx_packets: 16548tx_errors: 0rx_errors: 1rx_missed: 0align_errors: 0tx_single_collisions: 0tx_multi_collisions: 0unicast: 4228broadcast: 10859multicast: 1461tx_aborted: 0tx_underrun: 0

1.1.7 排除網(wǎng)絡(luò)故障

連接成功后,我們期望 Speed 是明確的值,Duplex 是 Full/Half,Link detection 是 Yes。如果不是(如Speed、Duplex 為 Unknow 時(shí),Link detection 為 No 時(shí)),可能交換機(jī)或網(wǎng)絡(luò)設(shè)置有問(wèn)題。

此時(shí)可以用 tcpdump 抓包分析。

1.1.8 通過(guò)網(wǎng)口的 LED 區(qū)分網(wǎng)卡

如果機(jī)器有很多網(wǎng)口,設(shè)置后,對(duì)應(yīng)的網(wǎng)口即會(huì)亮燈,即可區(qū)分對(duì)應(yīng)關(guān)系

ethtool -p eth0# 參數(shù)含義如下:-p --identifyInitiates adapter-specific action intended to enable an operator to easily identify the adapter by sight.  Typically this involves blinking one or more LEDs on the specific network port.啟動(dòng)特定于適配器的操作,以使操作員能夠輕松地通過(guò)視覺(jué)識(shí)別適配器。這通常涉及閃爍特定網(wǎng)絡(luò)端口上的一個(gè)或多個(gè)LED。[N]   Length of time to perform phys-id, in seconds.

1.1.9 持久化配置(無(wú)需 reboot)

通過(guò) ethtool 設(shè)置后,reboot 仍會(huì)恢復(fù)為設(shè)置前的狀態(tài)。但可通過(guò)寫配置文件的方式來(lái)持久化。

  • ubuntu 設(shè)置如下:在 /etc/network/interfaces 配置則會(huì)持久化。
# vim /etc/network/interfaces
post-up ethtool -s eno1 speed 1000 duplex full autoneg off # 此行應(yīng)為本文件的最后一行
  • SUSE 設(shè)置如下:
    modify the /etc/sysconfig/network/ifcfg-eth-id file and include a new script using POST_UP_SCRIPT variable as shown below. Include the below line as the last line in the corresponding eth1 adpater config file.
# vim /etc/sysconfig/network/ifcfg-eth-id
POST_UP_SCRIPT='eth1'

Then, create a new file scripts/eth1 as shown below under /etc/sysconfig/network directory. Make sure that the script has execute permission and ensure that the ethtool utility is present under /sbin directory.

# cd /etc/sysconfig/network/# vim scripts/eth1
#!/bin/bash
/sbin/ethtool -s duplex full speed 100 autoneg off
http://www.risenshineclean.com/news/274.html

相關(guān)文章:

  • 做網(wǎng)站每頁(yè)面費(fèi)用/bing搜索引擎國(guó)際版
  • 企業(yè)網(wǎng)站建設(shè)話術(shù)/營(yíng)銷網(wǎng)站
  • wordpress pdf生成/手機(jī)端網(wǎng)站優(yōu)化
  • 工信部外國(guó)網(wǎng)站備案/b站在線觀看人數(shù)在哪
  • wordpress 時(shí)尚主題/駐馬店百度seo
  • 嘉興網(wǎng)站排名優(yōu)化價(jià)格/北京網(wǎng)站
  • 網(wǎng)站建設(shè)部門/網(wǎng)站軟件下載
  • 建立收費(fèi)網(wǎng)站/網(wǎng)絡(luò)銷售面試問(wèn)題有哪些
  • 做搞基視頻網(wǎng)站/網(wǎng)絡(luò)營(yíng)銷的案例有哪些
  • 網(wǎng)站怎么做下載連接/百度長(zhǎng)尾關(guān)鍵詞挖掘
  • 網(wǎng)站彈窗客服代碼/刷推廣鏈接
  • 政府網(wǎng)站公眾號(hào)建設(shè)方案/谷歌瀏覽器 安卓下載2023版
  • wordpress tutorial/seo優(yōu)化排名服務(wù)
  • 網(wǎng)站被谷歌降權(quán)/廣州seo招聘網(wǎng)
  • 網(wǎng)站聊天怎么做/最新軍事報(bào)道
  • 成都微信端網(wǎng)站建/蘇州seo按天扣費(fèi)
  • 網(wǎng)站沒(méi)有百度快照/全網(wǎng)絡(luò)品牌推廣
  • 制作企業(yè)網(wǎng)站需要注意的事項(xiàng)/地推是什么
  • 資料填寫網(wǎng)站類型怎么做/新聞發(fā)稿公司
  • 免費(fèi)建網(wǎng)站撫順/win10優(yōu)化大師有用嗎
  • 萬(wàn)盛網(wǎng)站建設(shè)公司/當(dāng)下最流行的營(yíng)銷方式
  • 下載好看影視大全極速版/seo是什么工作內(nèi)容
  • 重慶響應(yīng)式網(wǎng)站建設(shè)公司/哪個(gè)軟件可以自動(dòng)排名
  • python源碼分享網(wǎng)站/深度搜索
  • 龍華網(wǎng)站建設(shè)方案表/免費(fèi)海報(bào)模板網(wǎng)站
  • 關(guān)鍵詞seo優(yōu)化/優(yōu)化大師官方免費(fèi)下載
  • 百度指數(shù) 網(wǎng)站/杭州優(yōu)化公司哪家好
  • 哈爾濱市建設(shè)網(wǎng)站/寧波網(wǎng)絡(luò)推廣產(chǎn)品服務(wù)
  • 湛江網(wǎng)站建設(shè)哪家好/網(wǎng)絡(luò)營(yíng)銷公司全網(wǎng)推廣公司
  • 個(gè)人可以做淘寶客網(wǎng)站嗎/網(wǎng)絡(luò)營(yíng)銷首先要進(jìn)行