语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,7 +3,7 @@
<h2 id="补充说明">补充说明</h2>
<p>ethtool命令用于获取以太网卡的配置信息或者修改这些配置。这个命令比较复杂功能特别多。</p>
<h3 id="语法">语法</h3>
<pre><code>ethtool [ -a | -c | -g | -i | -d | -k | -r | -S |] ethX
<pre><code class="language-bash">ethtool [ -a | -c | -g | -i | -d | -k | -r | -S |] ethX
ethtool [-A] ethX [autoneg on|off] [rx on|off] [tx on|off]
ethtool [-C] ethX [adaptive-rx on|off] [adaptive-tx on|off] [rx-usecs N] [rx-frames N] [rx-usecs-irq N] [rx-frames-irq N] [tx-usecs N] [tx-frames N] [tx-usecs-irq N] [tx-frames-irq N] [stats-block-usecs N][pkt-rate-low N][rx-usecs-low N] [rx-frames-low N] [tx-usecs-low N] [tx-frames-lowN] [pkt-rate-high N] [rx-usecs-high N] [rx-frames-high N] [tx-usecs-high N] [tx-frames-high N] [sample-interval N]
ethtool [-G] ethX [rx N] [rx-mini N] [rx-jumbo N] [tx N]
@@ -15,7 +15,7 @@ ethtool [-t] ethX [offline|online]
ethtool [-s] ethX [speed 10|100|1000] [duplex half|full] [autoneg on|off] [port tp|aui|bnc|mii] [phyad N] [xcvr internal|external]
[wol p|u|m|b|a|g|s|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N]</code></pre>
<h3 id="选项">选项</h3>
<pre><code>-a 查看网卡中 接收模块RX、发送模块TX和Autonegotiate模块的状态启动on 或 停用off。
<pre><code class="language-bash">-a 查看网卡中 接收模块RX、发送模块TX和Autonegotiate模块的状态启动on 或 停用off。
-A 修改网卡中 接收模块RX、发送模块TX和Autonegotiate模块的状态启动on 或 停用off。
-c display the Coalesce information of the specified ethernet card。
-C Change the Coalesce setting of the specified ethernet card。
@@ -189,18 +189,18 @@ get_ethtool_stats
<p>由上可见ethtool命令用于显示/配置网卡硬件(寄存器)。  </p>
<h3 id="实例">实例</h3>
<p>查看机器上网卡的速度:百兆还是千兆,请输入:</p>
<pre><code>ethool eth0</code></pre>
<pre><code class="language-bash">ethool eth0</code></pre>
<p>操作完毕后,输出信息中<code>Speed:</code>这一项就指示了网卡的速度。停止网卡的发送模块TX请输入</p>
<pre><code>ethtool -A tx off eth0</code></pre>
<pre><code class="language-bash">ethtool -A tx off eth0</code></pre>
<p>操作完毕后,可输入<code>ethtool -a eth0</code>查看tx模块是否已被停止。查看网卡eth0采用了何种驱动请输入</p>
<pre><code>ethtool -i eth0</code></pre>
<pre><code class="language-bash">ethtool -i eth0</code></pre>
<p>操作完毕后,显示 driver: bnx2version: 1.4.30 等信息。关闭网卡对收到的数据包的校验功能,请输入:</p>
<pre><code>ethtool -K eth0 rx off</code></pre>
<pre><code class="language-bash">ethtool -K eth0 rx off</code></pre>
<p>操作完毕后,可输入<code>ethtool k eth0</code>查看校验功能是否已被停止。如果机器上安装了两块网卡那么eth0对应着哪块网卡呢输入</p>
<pre><code>ethtool -p eth0 10</code></pre>
<pre><code class="language-bash">ethtool -p eth0 10</code></pre>
<p>操作完毕后看哪块网卡的led灯在闪eth0就对应着哪块网卡。查看网卡在接收/发送数据时,有没有出错?请输入:</p>
<pre><code>ethtool S eth0</code></pre>
<pre><code class="language-bash">ethtool S eth0</code></pre>
<p>将千兆网卡的速度降为百兆,请输入:</p>
<pre><code>ethtool -s eth0 speed 100   
<pre><code class="language-bash">ethtool -s eth0 speed 100   
</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->