网络设定的几个命令说明
ethtool:网卡的物理属性
查看网卡工作情况。
# ethtool eth1 Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s //传输速率为100Mb/s。
Duplex: Full //工作方式为全双工。
Port: Twisted Pair
PHYAD: 1
Transceiver: internalAuto-negotiation: on //自适应打开。
Supports Wake-on: g Wake-on: d
Current message level: 0x000000ff (255)Link detected: yes //网线连接正常,即有网线连接。如果为no时,表示此网卡没有激活、启用或网线没有连接。
ifconfig:网卡的配置内容
时间: 2024-10-21 02:49:52