当前位置: 首页 > news >正文

网站付费推广竞价市场营销比较好写的论文题目

网站付费推广竞价,市场营销比较好写的论文题目,建设一个视频网站需要什么条件,沈阳做网站的公司排行文章目录 一、ethtool1.1 常见操作1.1.1 展示设备属性1.1.2 改变网卡属性1.1.2.1 Auto-negotiation1.1.2.2 Speed 1.1.3 展示网卡驱动设置1.1.4 只展示 Auto-negotiation, RX and TX1.1.5 展示统计1.1.7 排除网络故障1.1.8 通过网口的 LED 区分网卡1.1.9 持久化配置&#xff08…

在这里插入图片描述

文章目录

  • 一、ethtool
    • 1.1 常见操作
      • 1.1.1 展示设备属性
      • 1.1.2 改变网卡属性
        • 1.1.2.1 Auto-negotiation
        • 1.1.2.2 Speed
      • 1.1.3 展示网卡驱动设置
      • 1.1.4 只展示 Auto-negotiation, RX and TX
      • 1.1.5 展示统计
      • 1.1.7 排除网络故障
      • 1.1.8 通过网口的 LED 区分网卡
      • 1.1.9 持久化配置(无需 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 展示设备属性

# 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

其中全双工、半双工、自动协商的区别如下:

  • 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(交换机).
  • 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 改变网卡属性

1.1.2.1 Auto-negotiation

上文展示的 Auto-negotiation 为 true,可通过 -s autoneg 关闭它。

# 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 指定网卡名称, 设置 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 # 此处信息已变为 offLink detected: down # 此处信息已变为 down# ifup eno1

1.1.2.2 Speed

改变网卡速度,注意不要设置超过网卡的 limited capacity

# ethtool eth0 | grep SpeedSpeed: 1000Mb/s# ethtool -s eth0 speed 100 autoneg off# ethtool eth0 | grep SpeedSpeed: Unknown! (65535) # 注意:如果网卡在 online 时,被改了 speed 则会自动变为 offline,此时需要手动 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# 可看到设置后从 1000Mb/s 变为 100Mb/s

可通过 ifconfig 设置 MTU

1.1.3 展示网卡驱动设置

# 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# 参数含义如下:
-a --show-pauseQueries the specified Ethernet device for pause parameter information.

1.1.5 展示统计

# 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 排除网络故障

连接成功后,我们期望 Speed 是明确的值,Duplex 是 Full/Half,Link detection 是 Yes。如果不是(如Speed、Duplex 为 Unknow 时,Link detection 为 No 时),可能交换机或网络设置有问题。

此时可以用 tcpdump 抓包分析。

1.1.8 通过网口的 LED 区分网卡

如果机器有很多网口,设置后,对应的网口即会亮灯,即可区分对应关系

ethtool -p eth0# 参数含义如下:-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.启动特定于适配器的操作,以使操作员能够轻松地通过视觉识别适配器。这通常涉及闪烁特定网络端口上的一个或多个LED。[N]   Length of time to perform phys-id, in seconds.

1.1.9 持久化配置(无需 reboot)

通过 ethtool 设置后,reboot 仍会恢复为设置前的状态。但可通过写配置文件的方式来持久化。

  • ubuntu 设置如下:在 /etc/network/interfaces 配置则会持久化。
# vim /etc/network/interfaces
post-up ethtool -s eno1 speed 1000 duplex full autoneg off # 此行应为本文件的最后一行
  • SUSE 设置如下:
    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.yidumall.com/news/74453.html

相关文章:

  • 美女做暖暖暖视频网站新闻播报最新
  • 无锡建设工程项目代码申请网站互联网营销师证书查询入口
  • 2022贵州疫情最新消息今天又封了seo流程
  • 营销型网站的优势深圳推广公司哪家正规
  • 1核1g服务器做网站网站推广主要是做什么
  • 域名到期换个公司做网站桂平seo关键词优化
  • 做网站公司共有几处密码做网站用哪个软件
  • 加快实施创新驱动发展战略沈阳网络seo公司
  • 网站代更新windows优化
  • php做网站要多久建网站的流程
  • 崇州网站建设公司域名注册步骤
  • 做时时彩网站平台集客营销软件官方网站
  • Wordpress建站安装教程图解网站外链查询
  • python做网站模板会计培训
  • 前端网站开发毕设类型做网站用什么软件好
  • icp备案 网站备案泉州关键词优化报价
  • 新疆分享是官方网站吗?谷歌搜索网页版入口
  • 做网站改变图片位置中国新闻网最新消息
  • 网站怎么做英语和中文的口碑营销的优势
  • 资深的网站推广武汉官网优化公司
  • 企业建筑网站全网搜索引擎
  • 西安响应式网站建设公司企业推广策划书
  • 上海网站建设公司选哪家好网站推广的主要方式
  • 做外贸做的很好的网站学电脑培训班
  • 深圳做网站补贴计算机培训班培训费用
  • 电影网站权重怎么做网络营销毕业论文8000字
  • 网站的域名可以修改吗大数据精准获客软件
  • 中国建设银行掌上银行官方网站做seo需要哪些知识
  • 如何查看网站建设时间南宁网站seo大概多少钱
  • 网站开发哪个好东莞今天新增加的情况